11-19-2009 08:21 AM
Is there a way to reset the System Variables - mainly #Parts Inspected, #Pass, #Fail?
I have an Inspection Script that measures set in a coil of band saw material. As it is running, the UI dislplays the #Pass & #Fail and plots the set measurements on a Sweep chart. Once the coil is done, I need to be able to reset the #Pass & #Fail and get the Sweep chart to go back to zero. I can create my own Inspection Variables for the Pass/Fail, but that seems reduntant and it also does not reset the Sweep chart.
Solved! Go to Solution.
11-19-2009 08:59 AM
From the inspection interface, you can do it from the inspection menu (Inspection>>Reset Inspection Statistics).
Right now, it is not currently possible to reset them "programmatically" from the state diagram. Is that what you wanted to do?
-Christophe
11-19-2009 09:48 AM
11-19-2009 10:00 AM
Also, the Reset Statistics does not clear the Sweep Chart, it just keeps going from where it stopped so now the X-axis on the chart does not match the #Pass, #Fail dislayed.
11-19-2009 10:41 AM
You will need to keep track of your own #Pass/#Fail and not use the built-in system variables (since the built-in variables don't behave like you want). You can also put a property node in your Custom UI code and Run the VI from the Update Inspection UI step to reset the chart history when a boolean is true and you set this hidden boolean to true when you want the strip chart to reset.
Hope this helps,
Brad