I have the same question as posted in knowledge base article:
However, t
he stated solution in the knowledge based article appears to be unavailable for TestStand1.03.
Basically I'm trying to access the fileglobals of a client from within the process model. The only appearent path is the RunState.ProcessModelClient.Data.FileGlobalDefaults but this is just the default states of the client's variables. I need the actual runtime copies.
{section from the knowledge based article}
Configuration for first step
Object Reference: RunState.Execution
Automation Server: NI Teststand API 3.0 (1.0) TestStand API 1.0
Object Class: Execution
Action: Call Method
Method: GetFileGlobals (option is not available, there is GetModelSequenceFile, GetSequenceFile, GetStates, and GetThread)
Parameters
Return Value: Locals.FileGlobals
sequencefileParam: RunState.ProcessModelClient
I'm actually using a CVI Dll to access the variables. I'm passing in "ThisContext" and then using:
CAObjHandle SeqContextHandle = ThisContext passed from teststand
tsErrChk(TS_PropertyGetValString(SeqContextHandle, &errorInfo, "FileGlobals.SoftwarePN",0,&pszKeyName));
This works great for accessing the FileGlobals of the process model, but not for the fileglobals of the client.
Maybe there is a different ObjHandle to get to the client, but I don't know where it is.