07-17-2025 05:08 AM
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?
Solved! Go to Solution.
07-17-2025 05:50 AM
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.
07-18-2025 03:27 AM
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