IviPwrMeterBase Behavior Model

CVI/LabWindows IVI Class Driver

IviPwrMeterBase Behavior Model

The following state diagram shows relationships between the IviPwrMeterBase capability group and power meter behavior.

The main state in the IviPwrMeter Class is the Idle state. The power meter enters the Idle state as the result of being "powered-on", successfully completing a measurement, or by you aborting a previous measurement with the Abort function. Typically, the user configures the power meter while it is in the Idle state. IviPwrMeter attributes can be configured individually with the Set Attribute function or with the high-level configuration functions defined in the IviPwrMeterBase capability group.

The Read and Initiate functions cause the power meter to leave the Idle state and take a measurement on all enabled channels. The Read function does not return until the measurement process is complete and the power meter has returned to the Idle state. The Initiate function returns as soon as the power meter leaves the Idle state. The Fetch function is used to retrieve measurements that were intitated by the Initiate function.

As soon as the power meter leaves the Idle state, it immediately takes a measurement on all enabled channels.You enable channels by calling the Configure Measurement function before initiating the measurement. The power meter takes a measurement on the channels specified in the Configure Measurement function and performs the specified math operation on the results.

After all measurements have been taken, the power meter (if it is capable of doing so) generates the Measurement Complete signal and returns to the Idle state. The IviPwrMeterBase capability group does not require that a power meter be able to generate a Measurement Complete signal. The IviPwrMeterBase capability group does not define how a Measurement Complete signal is configured. The Measurement Complete signal is presented in the IviPwrMeter behavior model diagram to define when the signal is generated as most power meters generate this signal but may not be able to configure it.