Hi,
I have written a program that tells some equipment to source a voltage and read the resulting current. The Labview program works just fine. However, I have recently wanted to add a Cancel button, in order to disregard the results that come from the equipment.
While the equipment is running (takes about 30 seconds), the user should be able to hit the cancel button. The program should wait until the equipment is finished (no big deal since it doesn't take long) and then trash the results. However, once I give the equipment an opportunity to start scanning, Labview refuses to accept input. In fact, it's only after the loop (in which the equipment commands exist) exits that the click is recognized, so the value of the b
utton changes after everything is already done.
I was told that button values are read for each while loop (so that a while loop inside a while loop would reread the button value?), but it doesn't seem to be working.
Long story short, I want a process that monitors this cancel button and responds when I click it. It'd be best if I could force the software to update the button value before the program goes into the "parse the data" section so I could check to see if the button had been pressed while the equipment was running.
This is hard to explain I think, so please ask for clarification if I did a poor job.
Thank you for your help!
-James