05-13-2008 04:22 AM
05-13-2008 04:40 AM
Sorry but I sent a wrong vi, a vi without the while loop that I use. And please note that I don't use the run contineously button.
Thanks
05-13-2008 04:44 AM - edited 05-13-2008 04:53 AM
05-13-2008 04:52 AM
Hi Mike. I was asked to build this vi as a practice lesson, thus the -9999 was not my selection. However, I sent this vi just to show you the problem that I have to overcome using the one button dialog
Theodora
05-13-2008 04:54 AM
05-13-2008 04:56 AM - edited 05-13-2008 04:59 AM
05-13-2008 05:07 AM
Thank you. One more question. When I add a delay to a vi is it possible to cause other problems in the vi execution? I am asking that because trying to add a delay in a similar vi caused a delay also in the stop button (please note that the stop button controls the operation of a number of instruments like pumps an valves etc.) and of course I don't want something like that.
Theodora
05-13-2008 05:08 AM
05-13-2008 07:07 AM
Typically, adding a small delay should not affect the functionality. Unless you have nested loops where the delay gets called many times before the program gets to handle the stop button request.
When dealing with operator events (ie pressing a button), it is wise to use an Event Structure. The Event Structure would also handle changes in value of any control, thus allowing you to enter a non negative value by taking all the time you need to enter it. 😉
I have not looked at your code since I do not have LV installed on this PC. However, to answer your question, adding a small delay should not impact your code.
RayR
05-13-2008 07:15 AM
Thanks a lot.
Thorfano