NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change of configuration Directory programmatic ...

Hello,

we are searching for a way to change the TestStand configuration Directory programmatically ...
Before a sequence will be loaded... (maybe within the sequence file callback - SequenceFileLoad - if possible)

(Menue: Configure>Station Options>Preferences [Configuration Directory])

Is the TestStand API a workable way? ... Maybe someone of you have a nice example... Smiley Very Happy


Greetings from Germany

Norbert
Message 1 of 2
(3,114 Views)
Hello Norbert,

we're doing that by a registry file before we open Teststand.
Create a test file, enter

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\TestStand\3.5]
"CfgLocation"="c:\\myProject\\myConfigLocation"

and save it with extention ".reg". On a double-click, windows sets the config location to C:\myconfigLocation. See attached file.

By the way, if the directory doesn't exist, Teststand creates it on startup. But if the drive doesn't exist, it refuses to start with ugly error messages.

But as mentioned, we switch the location when Teststand is closed.

Schöne Grüße vom Bodensee
Thomas
0 Kudos
Message 2 of 2
(3,108 Views)