NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Access SequenceFileGlobals of my sequence file in the Process Model

Hello,
How can I access the SequenceFileGlobals of my sequence file in the  Process Model
 
 
and I am using the active x function: Execution.GetFileGlobals(RunState.ProcessModelClient).
But the parameter RunState.ProcessModelClient is not available in my process model
 
can anybody help me?
 
Thank You
regards
Samuel
0 Kudos
Message 1 of 8
(3,804 Views)

Hi,

You will need to look at RunState.ProcessModelClient.FileGlobalDefaults.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 8
(3,802 Views)
Ray,
I want to save my reports in different folders dependend on the path which a Sequencefileglobals of my sequence file contains.
I thought that wenn I have access on the sequencfileglobals in the process modell., I can set Parameters.ReportOptions.Directory with the path which the SequenceFileGlobals from my sequence file contains
is that a good idea or is a other method better?
regards samuel
0 Kudos
Message 3 of 8
(3,798 Views)

Hi Samuel,

Rather than doing this in the processmodel, why not have a Callback sequence ReportOptions as part of your sequence file. You can then set the Parameters.ReportOptions.Directory from the value held in your SequenceFile Globals within the ReportOptions.

You dont have to modify your process model this way.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 8
(3,797 Views)
Ray,
Do you have an example for this?
thank you
samuel
0 Kudos
Message 5 of 8
(3,794 Views)

Hi,

There is an example at the following link which I used the ReportOptions in the SequenceFile, in this case I set up the xml format and I obtain the values from Locals, but it could have been from the FileGlobals.

http://forums.ni.com/ni/board/message?board.id=330&message.id=11031

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 6 of 8
(3,790 Views)

Ray,

as I can see, the ReportOptions sequence call  where you set the path is executed before the PreUUT. In my application, I will get the path in the PreUUT. So it is not possible to do this.

can I set the ReportOptions later?

regards samuel

0 Kudos
Message 7 of 8
(3,788 Views)
Samuel,
 
I see no obvious reason why not, You would have to move the step that calls the ReportOptions sequenceCall in your process model entry point sequences.
 
Seeing as you are having to change the process model, you might as well go back to your original idea.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 8 of 8
(3,785 Views)