NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestTand directories

Solved!
Go to solution

Hi People,

 

I would like to get NI product installation directories (thinking about TestStand).

I think I got once a cmd command which shows (by typing TestStand+"something" on my cmd command prompt) TestStand installation directories.

such as (on windows seven):

 - C:\Program Files (x86)\National Instruments

 - C:\Users\Public\Documents\National Instruments

 

Note that those directories are different depending the OS you use !

 

But I cant remember this command.

 

Does anyone knows about it ? If not (may be I dreamt) does it exist ?

 

Thanks to all repliers...

0 Kudos
Message 1 of 4
(3,990 Views)
Solution
Accepted by topic author LMartin

To LMartin -

1) The TestStand Version Selector will define/set the following environment variables for the active version of TestStand:

  • TestStand
  • TestStandAppData
  • TestStandPublic

So if you had used %TestStand% on the command-line then this would have resolved to the appropriate directory.

 

2) The only way to determine the directory for a non-active version of TestStand is to access the registry based on the major/minor version number of the product.


For example on a 32-bit OS:

HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\TestStand\5.0\Path

or on a 64-bit OS:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\National Instruments\TestStand\5.0\Path

Scott Richardson
https://testeract.com
Message 2 of 4
(3,978 Views)

In case you want it programmatically ( run time) use the statement step with the following API - RunState.Engine.GetTestStandPath(variable_inputs)

 

Based on the variable_inputs selected different TestStand paths ( ex config path or program files path or public path etc) will be displayed.

 

Refer help document for this API.

0 Kudos
Message 3 of 4
(3,956 Views)

Now that I know that it is an environment variable,

the command is set TestStand on cmd prompt which gives the directories paths I was looking for.

 

Thanks to you Scott_Richardson for this detailed explanations,

and to you SunRS for this tip.

 

Cheers !

0 Kudos
Message 4 of 4
(3,921 Views)