NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically NI teststand sequence file name

I need to read programmatically NI teststand sequence file name,which i am executing.and need to log in the report.

Regrds,

Prithviraj

0 Kudos
Message 1 of 4
(5,193 Views)

Prithviraj,

 

in the report generator (e.g. "reportgen_html.seq"), you could use the lookup string:

RunState.Root.RunState.ProcessModelClient.Path

in order to find that information.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(5,188 Views)

This is how I get the name of the sequence file that's running.  This code gets the path and stores each part of the path as an element in an array.  I then get the element that contains the name of the sequence (without the extension).  If you want the extension on the file name just omit the "." in the Split statement and the file name with extension will be the last element in the array.

 

Locals.Path= Split(RunState.SequenceFile.Path, "\."),
Locals.Name=Locals.Path[GetNumElements(Locals.Path)-2]

 

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
Message 3 of 4
(5,180 Views)

Just a short note to the post:

 

Locals.Path= Split(RunState.SequenceFile.Path, "\\"),

 

 

0 Kudos
Message 4 of 4
(2,871 Views)