NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change search directories with TestStand Environment

Solved!
Go to solution

I want to have different SearchDirectories for each release. So far I added/deleted the search directories in the SequenceFileLoad callback. This works fine when using the editor, but with the TestExec its seems to fail when it tries to set different Directories.

 

If I understood correctly, Test Stand will always try to open the last running sequence and close it again. In this case it will also set the SearchDirectories. 

 

Now I'm trying to use Environment from Test Stand to change the SearchDirectories when new release is used.

 

Unfortunately this seems not to work with my TestStand 2017 version. I have created a tsenv file with following content:

[TestStandPaths]
CommonAppData = "C:\\ProgramData\\National Instruments\\TestStand 2017 (32-bit)"
Public = "C:\\Users\\Public\\Documents\\National Instruments\\TestStand 2017 (32-bit)"
LocalAppData = "C:\\Users\\Labor_NUC\\AppData\\Local\\National Instruments\\TestStand 2017 (32-bit)"

[EnvironmentVariables]
RELEASE_ROOT = "C:\\ReleaseRoot"

[SearchDirectories]
Override = True
SearchDirectory1 = "%RELEASE_ROOT%"
SearchDirectory2 = "%RELEASE_ROOT%\\Labview_2018"
SearchDirectory2 = "%RELEASE_ROOT%\\Support\\dll"

 

In TestStand the correct tsenv file seems to be selected under Configure>Environment. I press button "Set Engine Environment" and re launch test stand.

 

According documentation, I should not be able to open Configure>SearchDirectories but I can. And the SearchDirectories are still the same. 

 

What is missing, to load test stand with the tsenv file?

0 Kudos
Message 1 of 3
(182 Views)
Solution
Accepted by topic author PTH-POS

Hi,

 

you are making me curious: can you please point out, where found information about [EnvironmentVariables] and [SearchDirectories] support in tsenv file?

 

I wasn't aware of this.

 


@PTH-POS wrote:

[...]

According documentation, I should not be able to open Configure>SearchDirectories but I can. And the SearchDirectories are still the same. 

 

 


The ability to change StationConfigs depends on user privileges. As an administrator, you are always able to change anything you want.

 

TestStand uses a ini file to specify search directories. When you use an environment, TestStand  will look for CommomAppData\Cfg\SearchDirectories.cfg by default.

 

 

 

0 Kudos
Message 2 of 3
(172 Views)

I got completely wrong information from my colleague. After clarification internally, I could solve the issue with the search directories.

 

Thanks for quick respond. Ticket can be closed

0 Kudos
Message 3 of 3
(141 Views)