09-11-2015 06:37 PM
Hi everyone,
I need to make a switch that does the following when clicked:
1- switch on
2- wait for 60 ms
3- switch off
i am new to labview so anything would help.
Thank you
Solved! Go to Solution.
09-12-2015 03:13 AM
Hi Shahramk6
U can use aciveX control for it (if u really need this bounce logic to be in control), else u can program the logic such that , once the switch is pressed after 60 sec changing its property to off
09-12-2015 11:01 AM
Use a Boolean control with "Switch When Pressed" mechanical action and a local variable (resetting it) in the Timeout case of the Event structure.
09-12-2015 11:05 PM
LOL sounds like you did someone's homework. 😉
09-13-2015 06:20 AM
If this is homework, you shouldn't use Local Variables (read this post to understand when to, and when not to, use them). Here's a way to do it without locals:
You can probably figure it out for yourself, but the string constant contains "\01\01\00\01\01\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00".
09-14-2015 01:12 PM
I accept risking losing the solution and kudos by posting this, but my second post in this thread was intended for the entertainment of experienced LabVIEW programmers; it is intentionally obfuscated. I apologize for making you the butt of my weak joke.
09-14-2015 01:33 PM
@jcarmody wrote:
I accept risking losing the solution and kudos by posting this, but my second post in this thread was intended for the entertainment of experienced LabVIEW programmers; it is intentionally obfuscated. I apologize for making you the butt of my weak joke.
I really hope this is the solution handed in. That being said I think you'd get more kudos for posting obstruficated code. If you answer for the OP you get one kudo for each post max. If you post obstruficated code you likely get kudos from your peers that think it's funny.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord