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.
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.
12-09-2013 07:10 PM
Hi, actually im trying to do a program when its receiving data from serial port. it light up the LED. So i wanna make it like user have to press a button eg. ok before going to next loop. Meaning the LED is be always lighted until user press ok.
12-09-2013 07:30 PM
I cleaned up your VI so it's readable then added a simple loop to do what you want.
12-09-2013 07:36 PM
You should add a loop delay so you don't eat up CPU time.
12-10-2013 01:02 AM - edited 12-10-2013 01:10 AM
thank you. i got it.
12-10-2013 01:06 AM - edited 12-10-2013 01:10 AM
Make sure the "continue" button is latch action (right-click..mechanical action...latch when released).
Personally, I would probably use an event structure instead. Do you really need to configure the serial port with every iteration of the loop? How often do the inputs change? Most of the controls are not even visible, replace them with diagram constants instead.
12-10-2013 01:18 AM
but actually i want to make when the led is on then i need to press and when led is off i dont have to press. for your program i have to press for both case.
12-10-2013 01:48 AM
Just add a simple case structure
12-10-2013 01:54 AM
how to instantly off the LED after i press ok? i tried but seems like its lagging. offing each 1 by 1.
12-10-2013 02:13 AM - edited 12-10-2013 02:14 AM
Hello,
Changed it for you.
Though I don't think it will make any sense to do this.
When you press the button it will only put the leds off for 200ms.
Because after the iteration the program will measure the leds again, and put it instant on.
12-10-2013 06:57 PM
hi can u take a screenshot? my labview is the older version so im unable to open it. thank you.