08-14-2015 12:52 AM
Writing from home so I may have name of vis wrong... Using LV2010, and TS 2010.
I'm trying to have a small window display the iteration number of a loop in a main sequence. I want it displayed separate from the OI.
I go to the TestStand pallette in LV. I tried using InitMonitor, GetMonitorTerminator, and GetPropertyValue (polymorphed to Number) and close Monitor from in a VI, then set that VI as the Module in the step of Main Sequnce with the Locals.i loop counter as the property value to display.
Problem is, apparently the TS VIs on the pallette weren't written in LV2010, and I get an error (Red circle with "!") and it wont display my VI.
So I saved the VI for Previous Version (8.0.1, 8.4, 8.6, 9, etc....), and then TS complains that a VI has to be wriiten in the same version as the RTE that TS is using )2010 in my case)and I get a different error
Or is there an easier way to display a loop counter independent of the OI??
Thanks!
08-14-2015 06:14 PM
Hi jbabb1,
Have you considered passing out the value of the loop iteration as an indicator? This would be the most direct way to access the loop counter.
08-14-2015 08:29 PM
Hi Brianna, I used the Thread.PostUIMessageEX and that did it! I'm hoping it works for the Simple UI as well as it does for the Sequence Editor UI.
I had to create a dummy object reference (SUBOJ with a value of nothing) to give the method's ActiveXDataParam input something to chew on . I like to know why! 🙂
Thanks!
08-14-2015 09:02 PM
EDIT:
The VI was InitializeTerminationMonitor -> GetTerminationMonitorStatus -> GetPropertyValue (set to number) -> CloseTerminationMonitor
All from the TS Palette in LV2010. Still would like to know Why TS2010 objected to this code
08-17-2015 08:18 PM
Hi jbabb,
Is it possible you had the InitializeTerminationMonitor.vi iterating in the loop? Else, could you explain a little more what exactly didn't work (ie did you get an error when you did not use the dummy object reference)?
08-18-2015 07:55 PM
No only Get Property Value was in the loop- the init and get Terminator indicator and the close were all outside the loop , close at the end, of course
08-18-2015 08:14 PM
Isn't there just a better standard way of displaying the string ; "Currently in loop 1 of 12" in a small window?
08-19-2015 07:56 PM
Ok let's clarify a few things so we can troubleshoot further:
Are you trying to display this loop iteration in a LabVIEW UI or in a code module?
Also, you mentioned earlier that you were getting errors. Could you provide a screenshot of that?