NI-HSDIO LabVIEW VIs

Table of Contents

niHSDIO Fetch Waveform VI

  • Updated2023-02-21
  • 33 minute(s) read
Installed With: NI-HSDIO

Transfers acquired waveform data from device memory to PC memory. This data was previously written to onboard memory by the hardware after the hardware was initiated.

If the number of samples specified in samples to read is not available after the time duration specified in max time milliseconds, this VI returns no data with a timeout error.

The fetch position can be modified by selecting the appropriate Fetch Relative To and Fetch Offset properties in the niHSDIO Property Node. The default Fetch Relative To value is Current Read Position. The default Fetch Offset value is 0.

The niHSDIO Fetch Waveform VI is not necessary if you use the niHSDIO Read Waveform VI, as the fetch is performed as part of that function.

1D U32

This instance of niHSDIO Fetch Waveform fetches the data as an array of unsigned 32-bit integers and returns the number of samples read.

niHSDIO Fetch Waveform (1D U32)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

ci32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

cu32.gif

record to fetch specifies which record you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

i1du32.gif

data returns the acquired waveform.

ii32.gif

number of samples read returns the number of samples that were successfully acquired and transferred into data.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

1D U16

This instance of niHSDIO Fetch Waveform fetches the data as an array of unsigned 16-bit integers and returns the number of samples read.

niHSDIO Fetch Waveform (1D U16)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

ci32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

cu32.gif

record to fetch specifies which record you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

i1du16.gif

data returns the data for the waveform.

ii32.gif

number of samples read returns the number of samples that were successfully acquired and transferred into data.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

1D U8

This instance of niHSDIO Fetch Waveform fetches the data as an array of unsigned 8-bit integers and returns the number of samples read.

niHSDIO Fetch Waveform (1D U8)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

ci32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

cu32.gif

record to fetch specifies which record you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

i1du8.gif

data returns the data for the waveform.

ii32.gif

number of samples read returns the number of samples that were successfully acquired and transferred into data.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

WDT

This instance of niHSDIO Fetch Waveform fetches the data from the subset of channels listed in the channel list parameter using the waveform data type and returns the number of samples read. The waveform only contains data from the subset of channels specified in the channel list parameter, not from all of the channels listed in the niHSDIO Assign Dynamic Channels VI, unless you leave the channel list parameter blank.

niHSDIO Fetch Waveform (WDT)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

ci32.gif

timestamp type specifies whether the timestamp for the waveform data is relative or absolute.

cstr.gif

channel list specifies the channels from which to fetch waveform data. You must assign all channels that you want to fetch using the niHSDIO Assign Dynamic Channels VI before selecting those channels with this parameter. NI-HSDIO fetches waveform data in the order that you list channels in this parameter, not in the order that those channels are listed in the niHSDIO Assign Dynamic Channels VI. If you leave this parameter blank, NI-HSDIO fetches all channels.

Specify multiple channels by using a channel list or a channel range. A channel list is a comma (,) separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). A channel range is a lower bound channel followed by a hyphen (-) or colon (:) followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, and 2).

ci32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

cu32.gif

record to fetch specifies which record you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

idigwfm.gif

data returns the acquired waveform.

ii32.gif

number of samples read returns the number of samples that were successfully acquired and transferred into data.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Multi Bus 1D WDT

This instance of niHSDIO Fetch Bus Waveform fetches an array of data using the waveform data type and returns an array of waveforms, one for each element in the channel list array. This VI allows you to fetch data in any order or subset that you desire without the need to manipulate the data after fetching it.

niHSDIO Fetch Bus Waveform (WDT)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

ci32.gif

samples to read specifies the number of samples to fetch per waveform.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

c1dstr.gif

channel list specifies the channels from which to fetch waveform data. You must assign all channels that you want to fetch using the niHSDIO Assign Dynamic Channels VI before selecting those channels with this parameter. NI-HSDIO fetches waveform data in the order that you list channels in this parameter, not in the order that those channels are listed in the niHSDIO Assign Dynamic Channels VI. If you leave this parameter blank, NI-HSDIO fetches all channels.

Each element in this array, consisting of its specified channels, is output as a single waveform in the data parameter. Specify multiple channels in each element by using a channel list or a channel range. A channel list is a comma (,) separated sequence of channel names (for example, 0,2 specifies a waveform showing channels 0 and 2). A channel range is a lower bound channel followed by a hyphen (-) or colon (:) followed by an upper bound channel (for example, 0-2 specifies a waveform showing channels 0, 1, and 2).

You can include the same channel in multiple elements of this array. For example, if you choose 0:2 as the first element, 0, 2 as the second element, and 0 as the third element, the data parameter returns three waveforms: the first depicting channels 0 through 2, the second depicting channels 0 and 2, and the third depicting just channel 0.

ci32.gif

timestamp type specifies whether the timestamp for the waveform data is relative or absolute.

ci32.gif

starting record specifies the record at which you want to start fetching data.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

idigwfm.gif

data returns the acquired data as an array of waveforms, one for each element in the channel list parameter.

ii32.gif

number of samples read returns the number of samples that were successfully acquired and transferred into data.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

2D U32

This instance of niHSDIO Fetch Waveform fetches the data as a two-dimensional array of unsigned 32-bit integers and returns the number of samples read.

niHSDIO Fetch Multi Record (2D U32)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

cu32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

ci32.gif

starting record specifies the record at which you want to start fetching data.

ci32.gif

records to fetch specifies how many records you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

i2du32.gif

data returns the data for the waveform.

i1dnclst.gif

wfm info returns the absolute and relative timestamp for the operation, the dt, and the actual number of samples read.

idbl.gif

absolute timestamp returns the absolute timestamp for the operation.

idbl.gif

relative timestamp returns the relative timestamp for the operation.

idbl.gif

dt returns the time between values in the waveform.

ii32.gif

actual samples read returns the number of samples read.

idbl.gif

reserved 1 is reserved for future use.

idbl.gif

reserved 2 is reserved for future use.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

2D U16

This instance of niHSDIO Fetch Waveform fetches the data as a two-dimensional array of unsigned 16-bit integers and returns the number of samples read.

niHSDIO Fetch Multi Record (2D U16)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

cu32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

ci32.gif

starting record specifies the record at which you want to start fetching data.

ci32.gif

records to fetch specifies how many records you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

i2du16.gif

data returns the data for the waveform.

i1dnclst.gif

wfm info returns the absolute and relative timestamp for the operation, the dt, and the actual number of samples read.

idbl.gif

absolute timestamp returns the absolute timestamp for the operation.

idbl.gif

relative timestamp returns the relative timestamp for the operation.

idbl.gif

dt returns the time between values in the waveform.

ii32.gif

actual samples read returns the number of samples read.

idbl.gif

reserved 1 is reserved for future use.

idbl.gif

reserved 2 is reserved for future use.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

2D U8

This instance of niHSDIO Fetch Waveform fetches the data as a two-dimensional array of unsigned 8-bit integers and returns the number of samples read.

niHSDIO Fetch Multi Record (2D U8)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

cu32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

ci32.gif

starting record specifies the record at which you want to start fetching data.

ci32.gif

records to fetch specifies how many records you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

i2du8.gif

data returns the data for the waveform.

i1dnclst.gif

wfm info returns the absolute and relative timestamp for the operation, the dt, and the actual number of samples read.

idbl.gif

absolute timestamp returns the absolute timestamp for the operation.

idbl.gif

relative timestamp returns the relative timestamp for the operation.

idbl.gif

dt returns the time between values in the waveform.

ii32.gif

actual samples read returns the number of samples read.

idbl.gif

reserved 1 is reserved for future use.

idbl.gif

reserved 2 is reserved for future use.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

1D WDT

This instance of niHSDIO Fetch Waveform fetches the data from the subset of channels listed in the channel list parameter as an array of waveform data type data and returns the number of samples read. Each waveform only contains data from the subset of channels specified in the channel list parameter, not from all of the channels listed in the niHSDIO Assign Dynamic Channels VI, unless you leave the channel list parameter blank.

niHSDIO Fetch Multi Record (WDT)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

ci32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

cstr.gif

channel list specifies the channels from which to fetch waveform data. You must assign all channels that you want to fetch using the niHSDIO Assign Dynamic Channels VI before selecting those channels with this parameter. NI-HSDIO fetches waveform data in the order that you list channels in this parameter, not in the order that those channels are listed in the niHSDIO Assign Dynamic Channels VI. If you leave this parameter blank, NI-HSDIO fetches all channels.

Specify multiple channels by using a channel list or a channel range. A channel list is a comma (,) separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). A channel range is a lower bound channel followed by a hyphen (-) or colon (:) followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, and 2).

ci32.gif

timestamp type specifies whether the timestamp for the waveform data is relative or absolute.

ci32.gif

starting record specifies the record at which you want to start fetching data.

ci32.gif

records to fetch specifies how many records you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI.

i1ddigwdt.gif

data returns the data for the waveform.

ii32.gif

actual samples read returns the number of samples read.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Direct DMA

This instance of niHSDIO Fetch Waveform transfers acquired waveform data from device memory directly to PC memory allocated by a Direct DMA-compatible device.

niHSDIO Fetch Waveform (Direct DMA)

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI, the niHSDIO Init Generation Session VI, or the niHSDIO Init Ext Cal VI.

cu32.gif

buffer address specifies the location for the buffer in memory at which to transfer acquired data.

ci32.gif

buffer size specifies the size (in bytes) of the buffer in memory at which to transfer acquired data.

ci32.gif

samples to read specifies the number of samples to fetch.

If you specify a value for samples to read that is greater than the number of samples in the device memory, NI-HSDIO returns the samples that are acquired after max time milliseconds. Setting this parameter to -1 acquires the samples per record specified in the niHSDIO Configure Acquisition Size VI.

ci32.gif

max time milliseconds specifies, in milliseconds, the time allotted for the VI to complete before NI-HSDIO returns a timeout error.

If you set the value to -1, the VI never times out.

If you set this parameter to 0, the VI returns immediately with up to the number of samples specified in samples to read.

If samples to read is greater than the number of samples in the device memory and all the available samples are acquired before a timeout, NI-HSDIO returns the available samples.

cu32.gif

record to fetch specifies which record you want to fetch from onboard memory.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI or the niHSDIO Init Generation Session VI.

iu32.gif

offset to first sample specifies the offset of the first sample acquired within the specified buffer. Data transferred from device memory in 128 byte increments, so the first sample of the acquired data typically occurs at some offset from the start of the buffer when using a Reference trigger.

i1dnclst.gif

wfm info returns the absolute and relative timestamp for the operation, the dt, and the actual number of samples read.

idbl.gif

absolute timestamp returns the absolute timestamp for the operation.

idbl.gif

relative timestamp returns the relative timestamp for the operation.

idbl.gif

dt returns the time between values in the waveform.

ii32.gif

actual samples read returns the number of samples read.

idbl.gif

reserved 1 is reserved for future use.

idbl.gif

reserved 2 is reserved for future use.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Log in to get a better experience