08-07-2012 09:31 AM
The VISA Open is in fact, optional.
Are you able to read the foot switch with your VI? Once it is detected, what do you want to do?
08-07-2012 12:16 PM
Dennis - yes I am able to read the value when the foot switch is pressed in the MagnaMike.vi. What I'd like to do is detect when the foot switch is pressed and place the value in Excel. What I don't know how to do is to detect that the foot switch has been pressed in my Event Structure (MagnaMikeMain.vi).
08-07-2012 12:29 PM
08-07-2012 01:37 PM
Like this?
08-07-2012 02:05 PM
No, no, no.
Why are you even playing around with an event structure? Why don't you simply do the write to file in the loop where you are monitoring the serial port? It only makes sense to have an event structure if you want to have a front panel control do a file write. Then the Value(Signaling) would go into the while loop with the serial read - not the event you are trying to fire.
08-13-2012 02:53 PM
OK, I got it. Now, how do I make my sub VI stop when the front panel stop button is pressed?
08-13-2012 03:22 PM
08-14-2012 09:21 AM
Dennis & Albert, thanks for your solutions. I now have a working program but one thing eludes me. I have placed my "Quit" text button inside the While Loop but it does not quit my program. The VISA Read is waiting for a response from the Magna Mike. I have to terminate the program by using the abort button. How do I get around this? The VI is attached.
08-19-2012 05:01 AM