From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Mouse Down" & "Mouse Down?" in Event Structure...

Here's a quick mod to Altenbach's VI. I haven't thoroughly tested it, but I think it should work.

___________________
Try to take over the world!
0 Kudos
Message 11 of 13
(933 Views)
Do you want ot to ramp to full brightness/darkness when you press long, or do you want the ramping to stop as soon as the button is released?

Attached is my interpretation (LabVIEW 7.0) using a simple event structure:

OFF state:
press for <200ms -> ON
press for >200ms ->ramp up

Not OFF state:
press for <200ms -> full reverse
press for >200ms -> ramp reverse

If you want slightly different logic, I'm sure you can modify it. The switch is set to "switch until released".
Message 12 of 13
(1,145 Views)
Hi~
Thanks for all reply!

Your solutions give a great help for me!
I get more idea while using event structure in LabVIEW!

Thank you very very much!
0 Kudos
Message 13 of 13
(900 Views)