Jump to content

Trigger event through external button over


oscarc

Recommended Posts

Hi everyone,

my first post. I need to have an external physical start button that will trigger an event in my code. I was thinking of either using the USB or COM-port to do this. But before cuting wires, I wanted to ask if anyone has done this? I was thinking of using Visa to send a voltage through a COM-port channel, and detect if I receive a signal in another channel from the button being pressed, thus starting the rest of my code. But is it a good solution to continiously suppla a voltage in one channel? I am not so familiar with the VISA .VIs, so any help is appreciated!

Regards

Oscar

Link to comment

QUOTE (Y-P @ May 9 2009, 09:05 AM)

Hi,

why don't you simply use a key from your keyboard? :unsure:

Greetings Markus

Hi,

oh, I am sorry that I forgot to mention that the computer will stand in a factory (protected), where only highly resilent equipment will work; much water, and much sols in the physical measurement environment. I will us a switch which will be durable enough, with tape-sealed cable endings. I was recomended using the usb-vi:s from data translation, which I can place in a loop, and when triggered, will start my intended measurement setup when buton is pressed. Anyone familiar with those VI:s?

Regards

Oscar

Link to comment

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.