IviScope Fetch Min Max Waveform
IviScopeMinMaxWaveform Capability Group [MmW]
This VI returns the minimum and maximum waveforms that the oscilloscope acquires for the channel you specify. If the channel is not enabled for the acquisition, this VI returns the IVISCOPE_ERROR_CHANNEL_NOT_ENABLED error. Details
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 the minimum and maximum waveforms.
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" |
|
waveform size Pass the number of elements in the Min Waveform Array and Max Waveform Array parameters. | |
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. | |
min waveform array Returns the minimum waveform that
the oscilloscope acquires.
Units: volts |
|
Note You configure the interpolation method the oscilloscope uses with the IviScope Configure Interpolation [I] VI. If you disable interpolation, the oscilloscope does not interpolate points in the waveform. If the oscilloscope cannot sample a value for a point in the waveform, the driver sets the corresponding element in the Waveform Array to an IEEE-defined NaN (Not a Number) value and the VI returns IVISCOPE_WARN_INVALID_WFM_ELEMENT. You can test a waveform value for an invalid value condition by calling the IviScope Is Invalid Waveform Element VI. | |
max waveform array Returns the maximum waveform that the oscilloscope
acquires.
Units: volts |
Note You configure the interpolation method the oscilloscope uses with the IviScope Configure Interpolation [I] VI. If you disable interpolation, the oscilloscope does not interpolate points in the waveform. If the oscilloscope cannot sample a value for a point in the waveform, the driver sets the corresponding element in the Waveform Array to an IEEE-defined NaN (Not a Number) value and the VI returns IVISCOPE_WARN_INVALID_WFM_ELEMENT. You can test a waveform value for an invalid value condition by calling the IviScope Is Invalid Waveform Element VI. | |
actual points Indicates the number of points the VI places in the Min Waveform Array and Max Waveform Array parameters. | |
initial x Indicates the time of the first point in the
Min Waveform Array and Max Waveform Array. The time is relative to the trigger event.
For example, if the oscilloscope acquires the first point in the waveforms 1 second before
the trigger, this parameter returns the value –1.0. If the acquisition of the first point
occurs at the same time as the trigger, this parameter returns the value 0.0.
Units: seconds |
|
x increment Indicates the length of time between points in the Min Waveform
Array and Max Waveform Array.
Units: seconds |
|
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. |
IviScope Fetch Min Max Waveform
The waveforms are from an acquisition that you previously initiated. Use this VI to fetch waveforms when you set the acquisition type to IVISCOPE_VAL_PEAK_DETECT or IVISCOPE_VAL_ENVELOPE. If the acquisition type is not one of the listed types, the VI returns the IVISCOPE_ERROR_INVALID_ACQ_TYPE error.
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 the min/max waveforms for the enabled channels concurrently. You use the IviScope Acquisition Status VI to determine when the acquisition is complete. You must call this VI separately for each enabled channel to obtain the min/max waveforms.
You can call the IviScope Read Min Max Waveform [MmW] VI instead of the IviScope Initiate Acquisition VI. The IviScope Read Min Max Waveform [MmW] VI starts an acquisition on all enabled channels, waits for the acquisition to complete, and returns the min/max waveforms for the channel you specify. You call this VI to obtain the min/max waveforms for each of the remaining channels.
Notes
|