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: 

rs232 pic16f887

Hello

I realize a monitoring interface with the Labview software.
In some stage, I do this:

Microcontroller's I send two variables for each LED.

- A variable to turn off the LED
- A variable to turn on the LED

Problem

When I send a variable to turn on LED_1, for example, it works. But when I send another variable to turn on LED_2 the LED_1 off.

Thank you for your help.

a_2.png

a_1.png

0 Kudos
Message 1 of 4
(2,535 Views)

which is LED_1 and LED_2 in the image here ?, if possible attach the code in 8.6 and in english caption pls.

0 Kudos
Message 2 of 4
(2,532 Views)

I think your fundamental problem is not understanding dataflow. The string you are writing is based on a comparison that occurs before the loop executes. The loop receives the outcome of that comparison, but with each loop iteration, it does not matter what you change the string to on the front panel - the VISA Write will always write the same string. If you want to change what gets sent then you need to put the string control and the corresponding comparison inside the loop.

0 Kudos
Message 3 of 4
(2,527 Views)
0 Kudos
Message 4 of 4
(2,517 Views)