From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-16-2006 04:09 AM
05-16-2006 04:54 AM
05-16-2006 04:57 AM
Hi,
If you looking for the Sequence File name in general, use RunState.SequenceFile.Path, this gives the full path therefore you would have to strip off the path from the filename
If you are looking for the sequence file linked to a SequenceCall step, use Step.TS.SData.SFPath, and this may contain an absolute pathname.
Hope this helps
Regards
Ray Farmer
05-16-2006 06:19 AM
03-07-2007 12:54 AM
03-07-2007 03:41 AM
03-07-2007 04:09 AM
02-25-2015 02:20 PM
Split((Split(RunState.SequenceFile.Path,"\\")[(GetNumElements(Split(RunState.SequenceFile.Path,"\\"))-1)]),".")[0]
Splits path by backslash, and then pick the last element of the array, and then splits by . and then picks the first item which is the filename.
09-24-2016 03:22 AM
Let us assume you are running the sequence file "TestStand_Sequence.seq" located at "C:\TS_Scripts"
"RunState.SequenceFile.Path" - Returns the absolute path of the script
i.e "C:\TS_Scripts\TestStand_Sequence.seq"
"Left(RunState.SequenceFile.Path, Find(RunState.SequenceFile.Path, "\\", 0, False, True))" - Returns the File Location
i.e "C:\TS_Scripts"
"Right(RunState.SequenceFile.Path, (Len(RunState.SequenceFile.Path) - Find(RunState.SequenceFile.Path, "\\", 0, False, True) - 1))" - Returns the File Name
i.e "TestStand_Sequence.seq"
Note: These are RunState components. Hence available only during runtime