NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get Teststand Step Names using VIs in Labview?

Hello.
 
I am trying to get TestStand sequence and limit names in my Labview 7.1 application.  Originally I would pass the name from Teststand using nameof() function but want to find a way to do it within the VI.  How do I draw the names from within Labview by passing just "ThisContext" reference?
 
Regards.
0 Kudos
Message 1 of 7
(4,010 Views)
Hi,
 
Check out the attach picture.
Obviously I am just getting the name of the Step then returning the string back in to ReportText just to show how to obtain the value in side LabVIEW.
 
Regards
Ray Farmer


Message Edited by Ray Farmer on 04-27-2008 10:35 PM
Regards
Ray Farmer
0 Kudos
Message 2 of 7
(3,994 Views)

Thank you for the reply.  I still can't find the path to a variable I want to pass to my VI.  Can you tell me the how to get names for limits for a multiple-numeric step?  Is there a document listing paths to all default Teststand variables?

Regards,

KPY

0 Kudos
Message 3 of 7
(3,977 Views)

Hello kpy,

The information for the individual limit tests of a Multiple Numeric Limit test is contained in the Step.Result.Measurement array.  This array contains one element container for each limit test within the step.  In those containers you can find the various pieces of information (comparison type, low limit, high limit, etc) you might want to retrieve.

The TestStand help files might be a good reference for some of the information you desire, but if you want to find the specific locations of variables for a step you can open the Step Property Browser.  In TestStand 4.x its under Step Properties»Property Browser or in TestStand 3.x right click on the step, navigate to Properties and click on the 'View Contents' button.  This will allow you to see the variables the step contains, in the appropriate hierarchy, so you can properly navigate to those variables.

John B.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(3,951 Views)

Thank you John.  Your suggestions are very usefull.

Unfortunately I still can't seem to find a way to retreive the name of the limit in a Labview VI from Teststand sequence Context reference.  What I want to pass is the name of the container.  If I was in TestStand I could get the limit name using the function NameOf(Step.Result.Measurement[0]).  Is there a way of getting same in Labview from the ThisContext Object Reference?  I am using Teststand 3.1.

Regards,

KPY

0 Kudos
Message 5 of 7
(3,926 Views)

Hi,

If you use one of the PropertyAsObject methods using the Step object reference and the Lookup string of "Result.Measurement[0]". This will return an PropertyObject reference to Result.Measurement[0]. You can then use the Property Node to get the name, as in my previous example.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 6 of 7
(3,910 Views)

Thank you Ray,

I got my application setup nicely now.

Cheers,

KPY

0 Kudos
Message 7 of 7
(3,900 Views)