NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Initial Path for searching for Sequence files

Hi:

I tried the shortcut method on another computer and it indeed works.
The shortcut method works on my computer for the editor, but not for the operator interface. Any idea what could cause this?

Thanks,
Dave
0 Kudos
Message 11 of 14
(1,289 Views)
Just for completeness, I'll mention that TestStand has a command line option (/setCurrentDir) to set the current directory to the directory that was last displayed in the File dialog box from the last time you ran the application.
0 Kudos
Message 12 of 14
(1,279 Views)
Hey Dave,

My only thought is to make sure that the Windows current directory was correctly changed.  This would at least help show whether the current directory is being set appropriately.  Additionally, I might recommend trying to recreate the shortcut as maybe something became incorrect with that.  I have attached a simple sequence file that will check what your current directory is set to.  If you just open up your User Interface (OI) and run this sequence file, it will tell you what the Windows directory is set to.
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 13 of 14
(1,269 Views)
Hi:

I figured it out. It was not specific to my PC at all. It was specific to a set of sequence files.

Many of our sequence files have a function call in the SequenceFileLoad sequence callback.  This function call is resetting the working directory. This function only runs in the operator interface (Precondition IsEditor==FALSE) which is why it worked fine for me in the editor. Once I unloaded all sequence files from the operator interface and then started it using the shortcut, everything worked fine. As soon as I load one of these sequences, the Open Sequence File path goes back to c:\ though.

I'll try and get the function call modified so that it resets the working directory back to default before exiting.

Thanks,
Dave
Message 14 of 14
(1,254 Views)