Jump to content
GraemeJ

External Hardware Pushbutton

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.