NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

View Computer Name

How can I retrieve my full computer name in TestStand 3.0?  I have several testers that we run and I want to be able to differentiate testers to data.

Tony
0 Kudos
Message 1 of 3
(3,437 Views)

Hi,

I thought it was already outputed to the report in the header?

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,433 Views)
Hi Tony,

Under Configure >> Station Options >> Preferences you can select to have the Station ID be the same as your computer name. In that case, like Ray said, the Computer name is included in the report header and can be found in the sequence context here:

RunState.Root.Locals.StationInfo.StationID


However, if you do not have this option checked, then you can still obtain the Computer Name through the TestStand API. Using an ActiveX / COM Action Step, the following parameters will return the Computer Name as a string value:

Object Reference:      RunState.Engine
Automation Server:     NI TestStand API 3.0 (Ver 1.0)
Object Class:              Engine (IEngine)
Action:                         Get Property
Property::                    ComputerName

Hope this helps Tony, have a good one.
Dan Weiland
Message 3 of 3
(3,412 Views)