NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get sequence file name

 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?

0 Kudos
Message 1 of 4
(1,731 Views)

@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

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

I want to acquire the sequence file name from one step, statement, VI, etc. , in the sequence file.  

0 Kudos
Message 3 of 4
(1,711 Views)

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

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