LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have replaced one FOR LOOP by one subVI.

 

Thank you CrisR.

 

The first row of LED works correctly.  I have replaced each FOR LOOP by one subVI, and  the future I could use one single  subVI to power on any LED. 

Each I subVI works correctly (led_A, led_B..., etc.), but when each subVI  is called by PRUEBA_PARPADEO, single a single time power on. 

There is possibility of happening, from I subVI called  to VI call, the result of each iteracion?

 

I add  various SubVI and the VI principal.

 

Thank.

Carmelo

0 Kudos
Message 1 of 3
(2,538 Views)
Carmelo,

The primary reason you do not get the blinking effect that you want is a fundamental characteristic of LabVIEW: The output of a subVI is not available to the calling VI until the subVI completes execution.

To get around this you can use references and property nodes, queues, or global variables. Each has its advantages and disadvantages.

I modified your VI to use references and property nodes. Only one type of subVI is required, as the reference to the LED is passed as an input.

I also eliminated the arrays of LEDs and used a different method of calculating its state. Just to show that there are often several ways to implement a solution in LV.

Lynn
Message 2 of 3
(2,523 Views)

Jhonsold thanks for your fast and interesting answer. 

I have Labview 7.0 and I cannot execute your VI. Tomorrow I will try to install LabView 7.1.

 

Gracias de nuevo (Thanks againThanks again)

Saludos (Greetings).

 

carmelo

0 Kudos
Message 3 of 3
(2,493 Views)