NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic saving of sequence files after edit

Hi,
I've defined several step types with custom data types. I use DLLs to edit the content of those data types. (usually via MFC dialogs and the edit substep) After I edit data it seems that the TestStand SequenceEditor automatically saves the sequence file.
But if I edit a NI step type - like the period of the Wait step type - the sequence file doesn't get saved automatically but indicates via the asterisk behind the file name that the file has changed. How can I do that with my own step types? Thank you!

I use TS 2.0.1 / W2K SP3
0 Kudos
Message 1 of 2
(2,900 Views)
Hi,

The Sequence Editor will not automatically save any files, unless you specifically call the PropertyObjectFile.Save method on the file in question. The asterik will not appear unless you increment the change count of the PropertyObjectFile. I think this is what you want to do. By incrementing the change count, the Sequence Editor will note that the Sequence File has changed and then display the asterik behind the file name. So therefore, what you need to do is call SequenceFile.AsPropertyObjectFile, which will return a PropertyObjectFile reference. Then using this reference call IncChangeCount. Now, once you close the dialog, you will see the asterik. Hope this helps!

Bob
0 Kudos
Message 2 of 2
(2,900 Views)