NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I save FileGlobals modified by sequence?

I want to save FileGlobals that have been modified by my sequence. I have been using the TestStand API to save the SequenceFile. I can see that the file is being saved but the FileGlobals are not saved with the file.
0 Kudos
Message 1 of 2
(2,853 Views)
Before saving the file make sure you call the SequenceFile.IncChangeCount() method. What I believe is happening is that the TS engine is not aware that you have made changes to the FileGlobals and therefore is simply saving what it has in chache. Whenever you make a change to a sequence file component you should call the IncChangeCount method. When this method is called you will see the the sequence editor puts an astrix in the window titile bar of the sequence file window, indicating that the file has been changed. The sequence editor also refreshes all of sequence file views when IncChangeCount is called. This is very important if you expect to view the changes you make.
0 Kudos
Message 2 of 2
(2,853 Views)