niScope Fetch Measurement (poly)

NI-SCOPE LabVIEW

niScope Fetch Measurement (poly)

Obtains a waveform from the digitizer and returns the specified measurement.

Refer to Using Fetch VIs for more information.

Many of the measurements use the low-, mid-, and high-reference levels. You configure the low, mid, and high references by using a property with Measurement Chan Based Low Ref, Measurement Chan Based Mid Ref, and Measurement Chan Based High Ref to set each channel differently.

Use the pull-down menu to select an instance of this VI.

Measurement Cluster

Obtains a waveform from the digitizer and returns the specified measurement array for a single channel and record as a cluster along with timing data.

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channel is the channel from which to acquire data. For more information, refer to Channel String Syntax.
array measurement is the measurement to perform.

Refer to Array Measurements for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
meas waveform size is the maximum number of samples returned in the measurement waveform array for each waveform measurement.

Default Value: –1 (returns all available samples)

Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement. For more information about when to use this property with the niScope Fetch Measurement VI, refer to the NI KnowledgeBase.
instrument handle out has the same value as the instrument handle.
meas wfm info contains all the timing and scaling information about the waveform.
actualSamples is the actual number of samples in the acquired waveform; this number may be less than numSamples if the number you request is not available.
absoluteInitialX is the timestamp in seconds of the first fetched sample that is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output.
xIncrement indicates the time in seconds between two samples in the acquired waveform.
gain is the gain factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

offset is the offset factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

meas waveform returns a single record for single channel as a cluster for wiring to a graph, including the timing information.
relativeInitialX is the time in seconds from the trigger to the first sample in the fetched waveform.
xIncrement indicates the time in seconds between two samples in the acquired waveform.
measWfm returns a one-dimensional array of data for one waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.

Measurement 1D DBL

Obtains a waveform from the digitizer and returns the specified measurement voltage data for a single channel and record.

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channel is the channel from which to acquire data. For more information, refer to Channel String Syntax.
array measurement is the measurement to perform.

Refer to Array Measurements for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
meas waveform size is the maximum number of samples returned in the measurement waveform array for each waveform measurement.

Default Value: –1 (returns all available samples)

Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement. For more information about when to use this property with the niScope Fetch Measurement VI, refer to the NI KnowledgeBase.
Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement.
instrument handle out has the same value as the instrument handle.
meas wfm info contains all the timing and scaling information about the waveform.
actualSamples is the actual number of samples in the acquired waveform; this number may be less than numSamples if the number you request is not available.
absoluteInitialX is the timestamp in seconds of the first fetched sample that is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output.
xIncrement indicates the time in seconds between two samples in the acquired waveform.
gain is the gain factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

offset is the offset factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

measWfm returns a one-dimensional array of data for one waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.

Measurement 1D Cluster

Obtains a waveform from the digitizer and returns the specified array measurement for multiple channels and records as a cluster.

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channelList is the channel from which to acquire data. For more information, refer to Channel String Syntax.

Default Value: 0

array measurement is the measurement to perform.

Refer to Array Measurements for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
meas waveform size is the maximum number of samples returned in the measurement waveform array for each waveform measurement.

Default Value: –1 (returns all available samples)

Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement. For more information about when to use this property with the niScope Fetch Measurement VI, refer to the NI KnowledgeBase.
Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement.
instrument handle out has the same value as the instrument handle.
wfm info is an array of clusters. Each waveform in the output array has some corresponding information.
actualSamples is the actual number of samples in the acquired waveform; this number may be less than numSamples if the number you request is not available.
absoluteInitialX is the timestamp in seconds of the first fetched sample that is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output.
relativeInitialX is the time in seconds from the trigger to the first sample in the fetched waveform.
xIncrement indicates the time in seconds between two samples in the acquired waveform.
gain is the gain factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

offset is the offset factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

meas waveform returns an array of clusters for wiring to a graph, including the timing information.

If you specify a channel list, NI-SCOPE returns the waveforms in the list order. NI-SCOPE returns these records sequentially, so all record 0 waveforms are first. For example, with a two-channel list, you would have the following index values:

index 0 = record 0, channel 0
index 1 = record 0, channel 1
index 2 = record 1, channel 0
index 3 = record 1, channel 1

relativeInitialX is the time in seconds from the trigger to the first sample in the fetched waveform.
xIncrement indicates the time in seconds between two samples in the acquired waveform.
measWfm returns a one-dimensional array of data for one waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.

Measurement 2D DBL

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channelList is the channel from which to acquire data. For more information, refer to Channel String Syntax.

Default Value: 0

array measurement is the measurement to perform.

Refer to Array Measurements for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
meas waveform size is the maximum number of samples returned in the measurement waveform array for each waveform measurement.

Default Value: –1 (returns all available samples)

Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement. For more information about when to use this property with the niScope Fetch Measurement VI, refer to the NI KnowledgeBase.
Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement.
instrument handle out has the same value as the instrument handle.
wfm info is an array of clusters. Each waveform in the output array has some corresponding information.
actualSamples is the actual number of samples in the acquired waveform; this number may be less than numSamples if the number you request is not available.
absoluteInitialX is the timestamp in seconds of the first fetched sample that is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output.
relativeInitialX is the time in seconds from the trigger to the first sample in the fetched waveform.
xIncrement indicates the time in seconds between two samples in the acquired waveform.
gain is the gain factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

offset is the offset factor of the given channel.

Use for scaling binary data with the following formula:

voltage = binary data × gain factor + offset

wfm is an array of waveforms; that is, a two-dimensional array. This output can be wired directly to the LabVIEW waveform graph, but each waveform is plotted without timing information.

The 2D array includes waveforms from multiple channels, records, and acquisition types. For example, if the acquisition type is normal, there is one waveform per channel per record. If you call the fetch function during a normal acquisition with the channel string "0,1" and the record number set to –1, the order of the output is:

record 0, channel 0
record 0, channel 1
record 1, channel 0
record 1, channel 1

The order of the channels is the order specified by the channelList parameter.

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.

Statistics Cluster

Obtains a waveform measurement and returns the measurement value for a single channel and record. Specify a particular measurement type, such as rise time, frequency, or voltage peak-to-peak. The waveform on which the digitizer calculates the waveform measurement is from an acquisition that you previously initiated. The statistics for the specified measurement are also returned, where the statistics are updated once every acquisition when the specified measurement is fetched by any of the Fetch/Read measurement VIs.

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channelList is the channel from which to acquire data. For more information, refer to Channel String Syntax.

Default Value: 0

scalar measurement is the measurement to perform on the waveform read from the digitizer.

Refer to the list of scalar measurements available for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
instrument handle out has the same value as the instrument handle.
stats contains the resulting measurement data.
result contains the measurement acquired.
mean returns the mean scalar value, which is obtained by averaging each niScope Fetch Measurement Stats call.
stdev returns the standard deviation.
min returns the smallest scalar value acquired.
max returns the largest scalar value acquired.
num in stats returns the number of measurements used to calculate the statistics.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.

Statistics 1D Cluster

Obtains a waveform measurement and returns the measurement value for multiple channel and multiple record acquisitions. Specify a particular measurement type, such as rise time, frequency, or voltage peak-to-peak. The waveform on which the digitizer calculates the waveform measurement is from an acquisition that you previously initiated. The statistics for the specified measurement are also returned, where the statistics are updated once every acquisition when the specified measurement is fetched by any of the Fetch/Read waveform measurement VIs.

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channelList is the channel from which to acquire data. For more information, refer to Channel String Syntax.

Default Value: 0

scalar measurement is the measurement to perform on the waveform read from the digitizer.

Refer to the list of scalar measurements available for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
instrument handle out has the same value as the instrument handle.
stats is an array of clusters with scalar measurement results and statistics.

The array of clusters includes waveforms from multiple channels, records, and acquisition types. For example, if the acquisition type is normal there is one waveform per channel per record. If you call the multi fetch measurement function during a normal acquisition with the channelList string "0,1", the order of the results output is:

statistics for record 0, channel 0,
statistics for record 0, channel 1,
statistics for record 1, channel 0,
statistics for record 1, channel 1

The order of the channels is the order specified by the channelList parameter.

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.

Measurement Scalar DBL

Obtains a waveform from the digitizer and returns the specified measurement voltage data for a single channel and record.

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channel is the channel from which to acquire data. For more information, refer to Channel String Syntax.
scalar measurement is the measurement to perform on the waveform read from the digitizer.

Refer to the list of scalar measurements available for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
meas waveform size is the maximum number of samples returned in the measurement waveform array for each waveform measurement.

Default Value: –1 (returns all available samples)

Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement. For more information about when to use this property with the niScope Fetch Measurement VI, refer to the NI KnowledgeBase.
Note Note  Use the property Fetch Meas Num Samples to set the number of samples to fetch when performing a measurement.
instrument handle out has the same value as the instrument handle.
result contains the measurement acquired.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.

Measurement Scalar 1D DBL

Fetches a waveform from the digitizer and performs the specified waveform measurement. Use this function for multiple channel and multiple record acquisitions.

timeout is the time (in seconds) to wait for the data to be acquired; use 0 for this parameter to tell NI-SCOPE to fetch whatever is currently available.
instrument handle identifies a particular instrument session.
channelList is the channel from which to acquire data. For more information, refer to Channel String Syntax.

Default Value: 0

scalar measurement is the measurement to perform on the waveform read from the digitizer.

Refer to the list of scalar measurements available for more information.

error in describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
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.
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.
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.
instrument handle out has the same value as the instrument handle.
results contains the measurements acquired as a one-dimensional array; if you specify a channel list, NI-SCOPE returns the waveforms in the list order. NI-SCOPE returns these records sequentially, so all record 0 waveforms are first.

For example, with a two-channel list, you would have the following index values:

index 0 = record 0, channel 0
index 1 = record 0, channel 1
index 2 = record 1, channel 0
index 3 = record 1, channel 1

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
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.
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.