06-20-2016 06:16 AM
I want to Create a VI called by a TS sequence file, which can return the name of the TS sequence file with no input. If anyone can give me some suggestions?
06-20-2016 06:34 AM
@GrayJoker wrote:
[..] with no input. [..]
What do you mean by that? That the VI does not have any input parameters?
If that is correct, you might want to check Windows SDK if there are functions to determine the call stack and do "reverse dependency walking". However, i don't know if that is possible and i doubt that there are many who can support you...
If you'd pass the SequenceContext, you could use the TestStand API and read the file name directly.
Norbert
06-20-2016 07:39 PM
I want to acquire the sequence file name from one step, statement, VI, etc. , in the sequence file.
06-24-2016 07:25 AM
The name of a sequence file is part of the sequence path.
You can use an expression like RunState.SequenceFile.Path to read the file path during execution. The use string manipulation to retrieve the file name (with or without file extension, seq by default).
Norbert