01-17-2006 02:53 PM
01-17-2006 03:04 PM
RunState.ProcessModelClient.Data.FileGlobalDefaults will give you the values in the file.
However, at runtime these values are copied. To access the runtime copies, use the ActiveX adapter to call:
Execution.GetFileGlobals(RunState.ProcessModelClient)
01-18-2006 06:35 PM - edited 01-18-2006 06:35 PM
@James Grey wrote:
RunState.ProcessModelClient.Data.FileGlobalDefaults will give you the values in the file.
However, at runtime these values are copied. To access the runtime copies, use the ActiveX adapter to call:
Execution.GetFileGlobals(RunState.ProcessModelClient)
I'm interested in doing the same so I'm asking for some clarification. I created a VI which runs in a sequence called by the process model. I've attached an image. I'm new to TS but can work well with LV that's why I'm using LV for this.
Message Edited by Test_Stand_Newbie on 01-18-2006 06:39 PM
01-19-2006 01:11 AM
Hi Test_Stand_Newbie ,
Why dont you just set the client sequencefile properties to use a common fileglobals. By default each sequencefile is set to use seperate fileglobals.
The Engine.GetSequenceFile wont work because you are opening a new reference to a sequencefile, when in fact when your sequencefile is executing, your process model is all ready loaded.
Where is this sequence, is in the processmodel sequencefile or the client sequencefile?
Regards
Ray Farmer
01-19-2006 06:59 AM
01-19-2006 11:40 AM
Why dont you just set the client sequencefile properties to use a common fileglobals. By default each sequencefile is set to use seperate fileglobals.
My understanding is that this option just allows multiple executions of the same sequence file to share globals. This has nothing to do with making these globals visible to the processmodel.
The Engine.GetSequenceFile wont work because you are opening a new reference to a sequencefile, when in fact when your sequencefile is executing, your process model is all ready loaded.
Yes, after looking at the docs, I came to the same conclusion.
Where is this sequence, is in the processmodel sequencefile or the client sequencefile?
The sequence is called from the processmodel sequencefile. I am trying to access the globals in the client sequencefile.
01-19-2006 04:20 PM
@Test_Stand_Newbie wrote:
Why dont you just set the client sequencefile properties to use a common fileglobals. By default each sequencefile is set to use seperate fileglobals.
My understanding is that this option just allows multiple executions of the same sequence file to share globals. This has nothing to do with making these globals visible to the processmodel.
The Process Model sequencefile has the same properties as the client file, so I thought it might also apply. But it doesn't, my mistake.
So, its as James outlined using the method :
Execution.GetFileGlobals(RunState.ProcessModelClient) which will return a PropertyObject reference.
You would use this reference with the PropertyObject methods and Properties, to do what you need to do with the fileGlobals of the client file.
Regards
Ray Farmer