-->

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Push yo Talk Switch PTT
                     Options V                     
carsonc
post Feb 16 2010, 01:51 PM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 28-January 10
Member No.: 7,874



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
Go to the top of the page
 
                         
AzeoTech
post Feb 16 2010, 11:36 PM
Post #2


Guru
*****

Group: Administrators
Posts: 2,066
Joined: 27-July 07
Member No.: 63



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
Go to the top of the page
 
                         
carsonc
post Feb 17 2010, 08:35 AM
Post #3


Newbie
*

Group: Members
Posts: 3
Joined: 28-January 10
Member No.: 7,874



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
Go to the top of the page
 
                         

Reply to this topicStart new topic