Sign in to follow this  
carsonc

Push yo Talk Switch PTT

Recommended Posts

How do I program a Push to Talk Switch so that pushing button on a page

produces a high or low output on the digital output of a Labjack U3 for as long as the button is pushed?

Thanks

Share this post


Link to post
Share on other sites

On the action page for the button, create two actions (click Add). Both are Quick Sequence. Mark one "On Mouse Down". This will be what happens when the mouse is clicked down. The code might be something like:

digout = 1

to set the output high.

Then, on the second action, leave the on mouse down unchecked, which means, really, on mouse up, and put:

digout = 0

Share this post


Link to post
Share on other sites

It works!

Remember to change "digout" to the proper channel name, in my case "PTT"

Changing which sequence is "0" or "1" changes whether the output is normally high or low, so

can be matched to your needs.

thanks much

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this