GraemeJ Posted April 25, 2011 Report Share Posted April 25, 2011 The aim of the attached code was to respond to a pushbutton on an external piece of hardware. The VI is responding to the pushbutton action and lights the led on the front panel when the button is pressed. However, I cannot get the event in the Message Generator to respond to this, which also results in the Exit pushbutton on the front panel hanging up. Any advice would be appreciated. Regards, GraemeJ StopBtn - dynamic register3.vi Quote Link to comment
Daklu Posted April 25, 2011 Report Share Posted April 25, 2011 Any advice would be appreciated. The quick solution is to replace the Enclosure Stop Switch terminal in the lower Wait case with a Value (Signaling) property node. Quote Link to comment
GraemeJ Posted April 30, 2011 Author Report Share Posted April 30, 2011 Thanks for the advise Daklu. It worked as you suggested but has now raised a further issue. The Exit button now no longer works because the DAQmx in th Wait case keeps running. If the external Stop button has not been pushed, I have not worked out how to detect this non-event and go to the Exit case The modified code is attached. Any further help you can offer would be appreciated. Regards, GraemeJ StopBtn - dynamic register5.vi Quote Link to comment
SuperS_5 Posted April 30, 2011 Report Share Posted April 30, 2011 There is a timeout input on the "DAQmx Read.VI." I believe that it will return an error if it times out, so yo u will have to handle that too. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.