Fetch Capture Waveform (U32)

Fetches a defined number of samples for a specific list of sites.

This node only returns data from sites that are enabled when fetch is called.

Inputs/Outputs

datatype_icon

waveform name

Waveform name you create with the niDigital Create Capture Waveform node.

Use the waveform name parameter with capture_start opcode in your pattern.

datatype_icon

session in

Instrument session obtained from the niDigital Initialize with Optionsnode.

datatype_icon

site list

Site numbers listed as a comma-delimited list of strings of form siteN, where N is the site number.

If you enter an empty string, the node fetches data from all sites.

datatype_icon

timeout

Maximum time (in seconds) allowed for this node to complete.

If this node does not complete within this time interval, this node returns an error.

Default value: 10 s

datatype_icon

samples to read

Number of samples to fetch.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

session out

Handle that identifies the session in all subsequent NI-Digital node calls.

datatype_icon

data

A 2D array of digital states read from the sites in the site list .

Each row in the 2D array corresponds to a site in the list. If a site is disabled, not enabled for burst, or the current instrument does not include any capture pins, the node does not return data for that site.

Use the niDigital Sort Site Results (U32 Waveform) node to order and combine the data to match the site list . You can also use the niDigital Get Site Results Site Numbers node to determine the order of the sites returned from this node call so that you can match the pass array with site numbers.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior