Admin Production ni-theme
Current Publication

Fetch Multi Record Waveform Int8 [MRA]

IVI Compliance Package

IviDigitizer Fetch Multi Record Waveform Int8 [MRA]

IviDigitizerMultiRecordAcquisition Capability Group

Returns the (multi-record) waveform the digitizer acquired for the specified channel. The waveform is from a previously initiated acquisition.

Refer to the notes following the input and output descriptions for more information about using this VI.

IviDigitizer Fetch Multi Record Waveform Int8 [MRA].vi

ci64 Waveform Array Size (256) Specifies the allocated size of the WaveformArray buffer, in number of data points.

If this value is smaller than the total number of points to be retrieved, the driver will fill the waveform buffer as fully as possible and return the actual number of points retrieved in the Actual Points output.

Default Value: 256

civrn instrument handle Returns an instrument handle that you use to identify the instrument in all subsequent instrument driver VI calls.

Notes:

(1) This VI creates a new session each time you invoke it. This is useful if you have multiple physical instances of the same type of instrument.

(2) Avoid creating multiple concurrent sessions to the same physical instrument. Although you can create more than one IVI session for the same resource, it is best not to do so. A better approach is to use the same IVI session in multiple execution threads.

cstr Channel Name ("") Specifies the name of the channel from which to retrieve the data.

Default Value: ""

Note:

You can specify the trace name as a string variable or as a literal enclosed in double quotes.

ci64 First Record (1) Specifies the number of the first record to read.

Default Value: 1

ci64 Num of Records (256) Specifies the number of consecutive records to read.

If Num of Records is greater than 1, this input allows full or partial (if Offset Within Record and Num of Points Per Record are specified accordingly) data to be retrieved from multiple digitizer records in a single Fetch call. If Num of Records is less than or equal to zero, an error will be returned.

Default Value: 256

ci64 Offset Within Record (0) Specifies the start index within the record from which the data should be retrieved.

While normally zero, this parameter allows users to retrieve partial records using non-zero values. Data that comes before the Offset Within Record index will not be retrieved. This is perhaps most useful when retrieving very large data records because it allows records to be retrieved in several smaller chunks.

Default Value: 0

cerrcodeclst error in (no error) The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

ci64 Num of Points Per Record (256) Specifies the number of data points to return.

This number may be larger than the amount of data available. Use the Actual Points output to determine how many data points were returned.

Default Value: 256

i1ddbl Initial X Offset The time in relation to the Trigger Event of the first point in the waveform in seconds. Negative values mean that the first point in the waveform array was acquired before the trigger event.

i1ddbl Initial X Time Seconds Specifies the seconds portion of the absolute time at which the first data point was acquired.

Notes:

The actual time is the sum of Initial X Time Seconds and Initial X Time Fraction. The time is specified as the sum of two values because a single double-precision floating-point number does not have sufficient range and resolution to specify the time.

i1ddbl Initial X Time Fraction Specifies the fractional portion of the absolute time at which the first data point was acquired.

Notes:

The actual time is the sum of Initial X Time Seconds and Initial X Time Fraction. The time is specified as the sum of two values because a single double-precision floating-point number does not have sufficient range and resolution to specify the time.

iivrn instrument handle out Returns an instrument handle that you use to identify the instrument in all subsequent instrument driver VI calls.

Notes:

(1) This VI creates a new session each time you invoke it. This is useful if you have multiple physical instances of the same type of instrument.

(2) Avoid creating multiple concurrent sessions to the same physical instrument. Although you can create more than one IVI session for the same resource, it is best not to do so. A better approach is to use the same IVI session in multiple execution threads.

i1di8 Waveform Array Buffer into which the acquired waveform is stored.

Note:

This array is always user allocated, and it must contain at least as many elements as the value you specify in the Waveform Array Size input.

ii64 Actual Records Indicates how many records in the acquisition completed successfully.

i1di64 Actual Points Indicates how many data points were actually retrieved from the instrument for each completed record. This is an array of size at least Num of Records or a NULL pointer. For IVI-C, this array is always user allocated.

i1di64 First Valid Point Indicates the index of the first valid data point in the output Data array for each completed record. This value will often be zero. However, some digitizer hardware designs transfer data most efficiently when the data is aligned with specific memory address boundaries. In those cases, the hardware may return a few invalid data points at the beginning of a record. This eliminates the need to shift the data during the transfer, ensuring maximum data transfer rates. This is an array of size at least Num of Records or a NULL pointer. For IVI-C, this array is always user allocated.

ierrcodeclst error out The error out cluster passes error or warning information out of a VI to be used by other VIs.

The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

idbl X Increment The time between points in the acquired waveform in seconds.

idbl Scale Factor Scaling factor for the waveform data.

idbl Scale Offset Scaling offset for the waveform data.

Note Notes  
  • The acquired waveform records can be retrieved all together, or in chunks. You specify the first record and the number of consecutive records to fetch. Note that the record number is zero-based, and reset when you initiate a new acquisition, i.e. record 0 is the first record of the last acquisition. The Actual Records output indicates how many of the requested records have actually completed successfully. The Actual Points, First Valid Point, Initial X Offset, Initial X Time Seconds and Initial X Time Fraction outputs have a value for each record, and therefore are arrays of size Num of Records. However, if the value of Actual Records is smaller than the requested number of records, these arrays shall have only their first Actual Records elements valid. If a NULL pointer is passed in for any of these parameters, the driver ignores it.

    The value of First Valid Point is relative to the start of the waveform array, such that:
    Sample i of record R = WaveformArray[FirstValidPoint[R]+i]
  • You must use the IviDigitizer Initiate Acquisition VI to start a multi-record (Num Record > 1) acquisition on the channels that the end-user configures with the IviDigitizer Configure Channel VI. The digitizer acquires waveforms on the concurrently enabled channels. If the channel is not enabled for the acquisition, this VI returns the channel not enabled error.
  • You can use the IviDigitizer Acquisition Status VI to determine when the acquisition is complete. You must call theIviDigitizer Fetch Multi Record Waveform Int8 VI separately for each enabled channel to obtain the waveforms. Alternatively, you can use the IviDigitizer Wait For Acquisition Complete VI to block the calling program until the acquisition is finished.
  • After this VI executes, each element in the Waveform Array input is an unscaled value directly from the digitizer's analog-to-digital converter (ADC).
  • This VI does not check the instrument status. Typically, the end-user calls this VI only in a sequence of calls to other low-level driver VIs. The sequence performs one operation. The end-user uses the low-level VIs to optimize one or more aspects of interaction with the instrument. Call the IviDigitizer Error-Query VI at the conclusion of the sequence to check the instrument status.
  • The data type of the returned waveform array is ViInt8.