09-25-2006 11:40 AM
09-25-2006 11:57 AM
Hi kas you could use several options one would simply change the mechanical action of your button for latch, with this it will only go once
Another option is use the First Call? vi check it works once.
Also you could use a shift register as a flag to only execute the section once
I hope this helps
Best Regards
09-25-2006 12:11 PM - edited 09-25-2006 12:11 PM
The example does not do a VISA Write continuously unless you click on the run continuous button and this is not a normal way of running a VI. It will run only once if you just click the normal run button. However, if you want to modify the VI so that is running and you can just click on write whenever you want, then you should create a while loop. You can then add an event structure and have a value change event for the write and read Booleans. You could also just place the write and read cases inside the while loop without an event structure but you would have to change the mechanical action to a latch type (i.e. Latch when Released).
Message Edited by Dennis Knutson on 09-25-2006 11:12 AM