Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any command to check the status of CWAI?

I want to check if CWAI is currently on or off (start or reset or stop). Is there any convenient command to check?
0 Kudos
Message 1 of 3
(3,071 Views)
No, there isn't a polling flag for this. You would need to use the events to keep track of it in your code. For example, you can use the progress and acquireData events to keep up with progress on a finite buffered operation. If you have a continuous operation, just use a variable as a flag that you set when you call start, stop or reset.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(3,071 Views)
Hello

You can check up on the CWAIReadSpec which has a read only property called AcquisitionState. Check out the following following KB about how to use this object.


Using the ComponentWorks AIReadSpec object in Visual C++
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/4a44123c8de6bc2d862565e6006d3d24?OpenDocument

And you can check out the function details in the Measurement Studio Help
I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
Message 3 of 3
(3,071 Views)