LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

setting file-global value from CVI

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(2,907 Views)

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! 

--
Peter Rifken - Field Engineer & Business Manager
Boston / North New England & Maine
0 Kudos
Message 2 of 3
(2,884 Views)
Solution
Accepted by topic author sonotk

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.

 

0 Kudos
Message 3 of 3
(2,866 Views)