NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Station Model Option Change

I have a modified version of the SequentialModel.seq that I need to use on various machines. To keep things simple for the user, I'd like to check at the beginning of my program and see if the current model is different than the one I need. If so, I store the current station model using ( Engine.GetStationModelSequenceFile ) and would like to set the station model to my model file. Then, when my application completes, it would reset the station model back to the original model that I stored from before. What function will allow me to change the station model programmatically? Also, will the change require a restart of the engine? Thanks.
-G-
-G-
0 Kudos
Message 1 of 4
(3,283 Views)
Try -
StationOptions.StationModelSequenceFilePath. The change should apply to any future execution that is launched.
Scott Richardson
https://testeract.com
Message 2 of 4
(3,278 Views)
Scott,
I used your suggestion and it does set the path as I wish. Now, is there a way to get the engine to know that changed without shutting down and starting another execution? I want this to be hidden from the user and not make them get a warning and then force them to restart the program. Thanks.
-G-
-G-
0 Kudos
Message 3 of 4
(3,274 Views)
It's working now. Not quite sure why, but I restarted the computer and now everything works as hoped.
-G-
-G-
0 Kudos
Message 4 of 4
(3,263 Views)