LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand not updating th description after using the edit substep

I've created numerous custom steps in TestStand.  None of them will update the description after I use the edit substep and change some of that steps properties.  As an example, I have the following step description...
 
str(Step.Channel.DeviceName)
 
After I use the edit substep, which changes step.Channel.DeviceName, the description does not update.  However, if I then open the properties menu for that item and either select "OK" of "Cancel" to leave the property window, it then updates to the correct values.  Placing down a new step will also force the description to update.  While this is not functionally causing any problems, it would be nice if the descriptions updated immediatly.
 
 
 
 
0 Kudos
Message 1 of 3
(3,073 Views)
Hey Dillon,

The reason it doesn't update is because the sequence editor doesn't know that the sequencefile has changed so it doesn't know to redraw that window.  You can force it to redraw the window by calling the method IncChangeCount from the PropertyObjectFileClass.  If you increment the change count it should automatically update the description as soon as your edit substep completes.  Also a piece of advice, in the future if you have TestStand questions, you can probably get a quicker answer to them by posting on the TestStand forums, even if it is using the TestStand API in another programming environment like LabVIEW or CVI.  Hope this helps!

Message Edited by Patrick P. on 12-06-2006 06:38 PM

Pat P.
Software Engineer
National Instruments
Message 2 of 3
(3,053 Views)
That worked perfectly, thank you.

As for the message being in the LabVIEW forum, that was just a mispost.  I did page a moderator about it, but they probably have better things to do then clean up after me.  Smiley Very Happy
0 Kudos
Message 3 of 3
(3,040 Views)