NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I return the VI path of a test step in LabVIEW?

Solved!
Go to solution

I'd like to create a VI that will return all the VI paths that are associated with the test steps in a TestStand sequence.  How do I return the VI path associated with a test step?  Below is a starting point that returns the first step in the sequence.

StartingPoint.png 

0 Kudos
Message 1 of 6
(3,396 Views)
Solution
Accepted by topic author JoeDG

You need to convert the Module to a LabVIEWModule (use the Variant to Data node), then you can use LabVIEWModule.VIPath.  If you are using TestStand 2010, you can call LabVIEWModule.GetVIAbsolutePath to find the VI in the case you are calling it with a project.

Message 2 of 6
(3,392 Views)

Thanks a lot, Allen.  Exactly what I was looking for.  Here is the code that worked:

soln.png

0 Kudos
Message 3 of 6
(3,389 Views)

Hi guys,

 

I know that this thread was solved, but I have the same problem, and I do not know how to find this particular constant type (TSAdp.LabViewModule).

 

Thank you in advance.

0 Kudos
Message 4 of 6
(2,160 Views)

Hello everyone,

 

I am facing the same issue: need to modify a VIPath but I can not convert Module to LabVIEWModule because I can not find the type to create a constant.

 

Thank you in advance.

0 Kudos
Message 5 of 6
(318 Views)

I was able to find a solution:

Create a module constant --> right click --> select active X class --> Browse...

 

Then select this file:

"C:\Program Files\National Instruments\TestStand 2023\Bin\TsAdpApi.tlb"

 

And finally the class: LabVIEWModule

0 Kudos
Message 6 of 6
(309 Views)