NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Station Globals From a CVI OI outside a sequence?

Hi,
 
Is there any method to acces Station Globals from a OI developped under CVI?
 
My base code is TestStand 3.5\OperatorInterfaces\NI\Full-Featured\CVI\TestExec.*
 
I want to acces to Station Globals directly from the user interface with boolean controls.
 
My code :
 
double State;
CAObjHandle propObj=0;
ERRORINFO errorInfo;
 
tsErrChk(TS_PropertyGetValNumber(propObj, &errorInfo, "StationGlobals.toto", 0, &State));
 
Error:
   DisplayError(error);
 
0 Kudos
Message 1 of 2
(2,634 Views)

Hello,

If I understand your wish the right way, I suppose that you should fine what you need in the TS API. EngineGetGlobals or SeqContextGetStationGlobals should meet your purpose.

Regards,


0 Kudos
Message 2 of 2
(2,608 Views)