NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Name of Loaded Sequence File from Station Model

Hi,

 

I want to query the test operator with a message box in my station model sequence file. I want the query to change based on which test sequence is loaded. Is there a way for me to get the name of the calling or loaded sequence file?

 

Curt

0 Kudos
Message 1 of 5
(2,359 Views)

Hi Curt,

 

If I understand your question correctly, which is that you want to display the sequence file that's being run by the Process Model Entry Point (or is selected by the operator), "RunState.InitialSelection.SelectedFile.Path" should get you what you're looking for. From there you can parse the string to get the file name.

 

I hope this helps.

 

-Jack

Message 2 of 5
(2,346 Views)

You can also call RunState.ProcessModelClient.Path to get the path of the client file.

 

Or RunState.ProcessModelClient.AsPropertyObjectFile.DisplayName to get just the name of the sequence file.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 3 of 5
(2,339 Views)

Thanks jig,

 

That worked with one minor change

 

ThisContext.ProcessModelClient.AsPropertyObjectFile.DisplayName

 

Thanks for your help

 

Curt

 

0 Kudos
Message 4 of 5
(2,337 Views)

To get the name and file path of the running sequence from the Station Model you can use the following statement command:

 

ThisContext.ProcessModelClient.Path

 

I have tested a verified this using TestStand 2016.

0 Kudos
Message 5 of 5
(2,032 Views)