03-28-2012 02:18 PM
Is there a TS engine API that can be used to set the value of the fileglobal from CVI?
I am using UI Message Synchronous to obtain the sequenceContext of the 3 buttons. I am creating unique sequence context for each fileglobals if passed from TestStand to CVI.If the values of this varaible is changed from TestStand I updated the buttons on the GUI.
The second part is if the user pressed any of these buttons from GUI then the appropriate fileGlobal should be set. Therfore CVI should set the value of the fileglobal based on user selection.
I am not certain if there a API (like the one provided for StationGlobals, pls see code below) using which I can then set the value of the fileglobals in the button callback function?
//****** This was when using station globals in teststand ********
//accessing TS StationGlobals
tsErrChk(TS_EngineGetGlobals (gMainWindow.engine, &errorInfo, &TS_Globals));
// Set value
tsErrChk(TS_PropertySetValBoolean(TS_Globals, &errorInfo, "MonitorSet", 0, VTRUE));
TIA
Solved! Go to Solution.
03-29-2012 04:36 PM
You should be able to use these Execution Classes
The TS_ExecutionGetSequenceFile() method will provide a reference to the TS_ExecutionGetFileGlobals() method.
The proper syntax is listed at the top of each help article. Let me know if this helps!
03-30-2012 05:50 PM
Thanks Peter.
I did find the way to do this using UIMessage. The example used as starting point is here in case if anyone else needs it.