03-04-2014 02:51 AM
I need to read programmatically NI teststand sequence file name,which i am executing.and need to log in the report.
Regrds,
Prithviraj
03-04-2014 03:53 AM
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
03-04-2014 10:43 AM
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]
05-16-2017 04:49 AM
Just a short note to the post:
Locals.Path= Split(RunState.SequenceFile.Path, "\\"),