Admin Production ni-theme
Current Publication

Fetch Waveform Measurement

IVI Compliance Package

IviScope Fetch Waveform Measurement

IviScopeWaveformMeas Capability Group [WM]

This VI fetches a waveform measurement from the channel you specify. If the channel is not enabled for the acquisition, this VI returns the IVISCOPE_ERROR_CHANNEL_NOT_ENABLED error.

The waveform on which the oscilloscope calculates the waveform measurement is from an acquisition that you previously initiated.

Use the IviScope Initiate Acquisition VI to start an acquisition on the channels that you enable with the IviScope Configure Channel VI. The oscilloscope acquires waveforms for the enabled channels concurrently. You use the IviScope Acquisition Status VI to determine when the acquisition is complete. You call this VI separately for each waveform measurement you want to obtain on a specific channel.

You can call the IviScope Read Waveform Measurement [WM] VI instead of the IviScope Initiate Acquisition VI. The IviScope Read Waveform Measurement [WM] VI starts an acquisition on all enabled channels. It then waits for the acquisition to complete, obtains a waveform measurement on the channel you specify, and returns the measurement value. You call this VI separately for any other waveform measurement that you want to obtain on a specific channel.

Notes
  1. You must configure the appropriate reference levels before you call this VI. You configure the low, mid, and high references either by calling the IviScope Configure Reference Levels [WM] VI or by setting the following properties:
    IviScope Measurement High Reference [WF]
    IviScope Measurement Low Reference [WM]
    IviScope Measurement Mid Reference [WM]
  2. This VI does not check the instrument status. Typically, you call this VI only in a sequence of calls to other low-level driver VIs. The sequence performs one operation. You use the low-level VIs to optimize one or more aspects of interaction with the instrument. If you want to check the instrument status, call the IviScope Error-Query VI at the conclusion of the sequence.
  3. The class driver returns a simulated measurement when this VI is called and the IviScope Simulate property is set to TRUE and the IviScope Use Specific Simulation property is set to FALSE. For information on how to configure a simulated measurement, refer to IviScope Simulator Setup Dialog Box.
instrument handle The instrument handle that you obtain from the IviScope Initialize or the IviScope Initialize With Options VI.
channel name Pass the virtual channel name that you assign to the instrument in MAX from which you want to fetch a waveform measurement.

Virtual channel names are aliases for instrument specific channel strings. The instrument specific channel strings can differ from one instrument to another. Virtual channel names allow you to use and swap instruments without having to change the channel names in your source code. You assign a virtual channel name to an instrument specific channel through MAX. This control accepts virtual channel names you have assigned to the specific instrument you are using. It also accepts the instrument specific channel names.

Default Value: "CHANNEL1"

measurement function Pass the waveform measurement you want the oscilloscope to perform.

Defined values:

IVISCOPE_VAL_RISE_TIME—Rise Time
The length of time for the first rising edge of the signal to rise from the low reference level to the high reference level.

IVISCOPE_VAL_FALL_TIME—Fall Time
The length of time for the first falling edge of the signal to fall from the high reference level to the low reference level.

IVISCOPE_VAL_FREQUENCY—Frequency
The frequency of one complete cycle in the waveform.

IVISCOPE_VAL_PERIOD—Period
The length of time of one complete cycle in the waveform.

IVISCOPE_VAL_VOLTAGE_RMS—Voltage RMS
The true Root Mean Square voltage of the entire waveform.

IVISCOPE_VAL_VOLTAGE_CYCLE_RMS—Voltage RMS (Cycle)
The true Root Mean Square voltage over the first cycle in the waveform.

IVISCOPE_VAL_VOLTAGE_MAX—Voltage Max
The maximum amplitude found in the entire waveform.

IVISCOPE_VAL_VOLTAGE_MIN—Voltage Min
The minimum amplitude found in the entire waveform.

IVISCOPE_VAL_VOLTAGE_PEAK_TO_PEAK—Voltage Vpp
The absolute difference between the Voltage Max and the Voltage Min.

IVISCOPE_VAL_VOLTAGE_HIGH—Voltage High
The voltage that corresponds to 100% when you use the reference levels. The oscilloscope calculates this value using either the min/max or histogram methods. The min/max method uses the maximum value found. The histogram method uses the most common value found above the middle of the waveform.

IVISCOPE_VAL_VOLTAGE_LOW—Voltage Low
The voltage that corresponds to 0% when you use the reference levels. The oscilloscope calculates this value using either the min/max or histogram methods. The min/max method uses the minimum value found. The histogram method uses the most common value found below the middle of the waveform.

IVISCOPE_VAL_VOLTAGE_AVERAGE—Voltage Avg.
The arithmetic average amplitude of the entire waveform.

IVISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE—Voltage Avg. (Cycle)
The arithmetic average amplitude of the first cycle in the waveform.

IVISCOPE_VAL_WIDTH_NEG—Width Negative
The length of time between the mid reference level points of the first negative pulse in the waveform.

IVISCOPE_VAL_WIDTH_POS—Width Positive
The length of time between the mid reference level points of the first positive pulse in the waveform.

IVISCOPE_VAL_DUTY_CYCLE_NEG—Duty Cycle Negative
The ratio of the Width Negative to the Period of the first cycle in the waveform expressed as a percentage.

Duty Cycle Negative = 100.0 x (Width Negative)/Period

IVISCOPE_VAL_DUTY_CYCLE_POS—Duty Cycle Positive
The ratio of the Width Positive to the Period of the first cycle in the waveform expressed as a percentage.

Duty Cycle Positive = 100.0 X (Width Positive)/Period

IVISCOPE_VAL_AMPLITUDE—Amplitude
The Voltage High less the Voltage Low in Volts over the entire waveform

IVISCOPE_VAL_OVERSHOOT—Overshoot
The relative waveform distortion which follows an edge transition. It is calculated using one of the following formulas:

For the rising edge:

OVERSHOOT = ((local maximum - Voltage High)/Amplitude)*100%

where the local maximum is the maximum voltage of the signal in the first half of the time period that commences when the rising edge crosses the high reference level and concludes when the subsequent falling edge crosses the high reference level. For the falling edge:

OVERSHOOT = ((Voltage Low - local minimum)/Amplitude)*100%

where the local minimum is the minimum value of the signal measured in the first half of the time period that commences when the falling edge crosses the low reference level and concludes when the subsequent rising edge crosses the low reference level. The instrument makes the measurement on the edge closest to the beginning of the waveform record.

IVISCOPE_VAL_PRESHOOT—Preshoot
The relative waveform distortion which precedes an edge transition. It is calculated using one of the following formulas:

For the rising edge:

PRESHOOT = ((Voltage Low - local minimum)/Amplitude)*100%

where the local minimum is the minimum value of the signal measured in the second half of the time period that commences when the preceding falling edge crosses the low reference level and concludes when the rising edge crosses the low reference level.

For the falling edge:

PRESHOOT = ((local maximum - Voltage High)/Amplitude)*100%

where the local maximum is the maximum voltage of the signal in the second half of the time period that commences when the preceding rising edge crosses the high reference level and concludes when the falling edge crosses the high reference level. The instrument makes the measurement on the edge closest to the beginning of the waveform record.

Default Value: IVISCOPE_VAL_RISE_TIME

Note  You must configure the appropriate reference levels before you call this VI. You configure the low, mid, and high references either by calling the IviScope Configure Reference Levels [WM] VI or by setting the following properties:
IviScope Measurement High Reference [WM]
IviScope Measurement Low Reference [WM]
IviScope Measurement Mid Reference [WM]
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.

instrument handle out The instrument handle that you obtain from the IviScope Initialize or the IviScope Initialize With Options VI.
measurement Returns the measured value.

Units: The units depend on the Measurement Function you select, as shown below.

Rise Time—seconds

Fall Time—seconds

Frequency—hertz

Period—seconds

Voltage RMS—volts

Voltage RMS (Cycle)—volts

Voltage Max—volts

Voltage Min—volts

Voltage Vpp—volts

Voltage High—volts

Voltage Low—volts

Voltage Avg.—volts

Voltage Avg. (Cycle)—volts

Width Negative—seconds

Width Positive—seconds

Duty Cycle Negative—percentage

Duty Cycle Positive—percentage

Amplitude—volts

Overshoot—percentage

Preshoot—percentage

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.