NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

passing the path name of a sequency

Hello,
 
I'm trying to pass the application path. If for example my sequence is installed at c:\test\sequence.seq, I could do this as followed in visual basic : App.Path & "\sequence.seq". Here App.Path would contain c:\test.
 
Is there a way I can do this in teststand 4.0?
 
 
0 Kudos
Message 1 of 3
(2,921 Views)
Here's how I did it:
 
Left(RunState.SequenceFile.Path, Find(RunState.SequenceFile.Path, "\\", 0, true, true) + 1)
 
RunState.SequenceFile.Path is an API call that returns the full path of the current sequence.  If the sequence has never been saved then it returns "".
 
Regards,
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(2,897 Views)

Thank you,

this was very helpfull.

0 Kudos
Message 3 of 3
(2,877 Views)