NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the loaded client sequence file path/name?

I added a step in Process model, and wanted to get currently loaded client sequence file name/path. I used the variable of "SequenceFile.Path" but then I realized what I would get is the process model file path, not loaded client sequence file path/name. How can I get loaded client sequence file path/name?

Thanks!
Jacky
0 Kudos
Message 1 of 6
(4,657 Views)

Try

RunState.ProcessModelClient.Path

Hope this helps

Steve

There are 10 types of people in the world that understand binary, those that do and those that don't.
Message 2 of 6
(4,650 Views)
There's no such a "RunState.ProcessModelClient.Path", how can you get this?
 
 
Thanks!
0 Kudos
Message 3 of 6
(4,647 Views)

The Property only exists at Run Time. 

Steve

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 4 of 6
(4,645 Views)

However, I prefer to see is  to get the client sequence file name after loading it, but without running this client sequence file. Actually, what I'm trying to do is to add a menu item in Teststand, and everytime when I click that menu item, certain sequence in Process model can be run, then call an application, who is relative path to the obtained path/name of client sequence file.

I appreciate that you can help me again on it.

Thanks!

Jacky

0 Kudos
Message 5 of 6
(4,642 Views)

I dont understand what you are trying to achieve.  Can you provide more information.

If you are trying to dynamically load and run a client sequence file at run time you need to make a couple of calls to the TS API from inside the process model, Engine.GetSequenceFileEx to get a reference to your sequence identified by its pathname, and then Execution.ClientFile to tell the process model which sequence you want to run.

Steve

 

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 6 of 6
(4,639 Views)