LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows CVI example to read and modify TestStand's StationGlobals

Hello,
I'm using LabWindows CVI to read and modify the StationGlobals from a TestStand Sequence, but I can't find a simple example to start with.
Can anyone help me find one?
I apreciate all the help.
 
Regards,
 
Daniel Coelho
Portugal
 
Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 1 of 2
(3,186 Views)
CAObjHandle objectHandle=0; 
 VBOOL VBOOLValue;
 char *StringValue=NULL;
 ERRORINFO error;
 //TSObj_Property SelectedVariablesObject = 0;;
 
   
   TS_NewEngine ("server", &objectHandle);

   TS_PropertyGetValBoolean (objectHandle, &error, "StationGlobals.PrintTicket", 0, &VBOOLValue);
   
   TS_PropertyGetValString (objectHandle, &error, "StationGlobals.PowerSupply", 0, &StringValue);
   
   //TS_EngineNewPropertyObject (objectHandle, &error, TS_PropValType_Boolean, VFALSE,
   //       "StationGlobals", 0, &SelectedVariablesObject);
   
     
   TS_EngineShutDown (objectHandle, &error, VTRUE);

What is wrong with this code?
Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 2 of 2
(3,167 Views)