06-28-2006 05:26 AM
06-28-2006 06:53 AM
06-29-2006 12:17 AM
Ciao Pincpanter (and all the people that want help me),
I attach the zipped VI.
I'd like to stop the process (started with the pression of the Start Measurement) once clicked the Stop Measurement in the run time menu, but the pression doesn't seem to have any effect. Can you explain me how to do?
Thank you very much, I need someone's help, I am going crazy!!!
Fede
06-29-2006 01:27 AM
The behavior you see is normal and fully documented. Quote from the online help on "Get Menu Selection":
In general, you should always avoid placing loops inside event cases, because the gum ip the gears and block events. You can use the outer while loop for your purpose. See the attached modified version of your VI.
07-04-2006 01:36 AM
07-04-2006 01:27 PM
Events don't react to changes in local and global varables, and that's usually a good thing. 😉
To trigger an event programmatically, you should write to a signaling property of the control assigned to the event, and the event will fire (even if the value does not actually change). 😄
Attached is a simple modification of my example that forces a stop of any ongoing measurments every 10 seconds using the above method.
07-05-2006 03:14 AM
THANK YOU!!!
Even though it's not exactly what I was searching for, the idea of the two loops allowed me to achieve what I want you. Your help has been very useful.
Fede