IviDCPwr_Measure
IviDCPwrMeasurement Capability Group
C Function Prototype
ViStatus IviDCPwr_Measure (ViSession vi, ViConstString channelName, ViInt32 measurementType, ViReal64* measurement);
Purpose
This function takes a measurement on the output signal and returns the measured value.
Parameters
Inputs | Type | Description | ||
vi | ViSession | The instrument handle that you obtain from the IviDCPwr_init or IviDCPwr_InitWithOptions functions. The handle identifies a particular IVI session. | ||
channelName | ViConstString | Pass the virtual channel name that you assign to the instrument in MAX.
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.
|
||
measurement Type |
ViInt32 | Pass the type of measurement you want to take.
Defined Values: IVIDCPWR_VAL_MEASURE_VOLTAGE—The measurement parameter returns a voltage measurement. IVIDCPWR_VAL_MEASURE_CURRENT—The measurement parameter returns a current measurement. |
||
Outputs | Type | Description | ||
measurement | ViReal64 (passed by reference) | This parameter returns the measured value. |