LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pass data to a second loops

Solved!
Go to solution

hi to all members 

i do face a problem to pass data from the first loop to the second loop

the second loop do contain an event structure 

but no luck 

 

0 Kudos
Message 1 of 6
(2,543 Views)

What problem do you face?

 

You say you have a problem but have not provided details.  I can guess, but that I might be guessing the wrong thing.

 

What is your VI doing wrong?

 

Do you really want that first loop running at the speed of light?  It's going to do the same operation over and over again as fast as the CPU will allow.  That should probably be it's own event case in the second loop.

0 Kudos
Message 2 of 6
(2,526 Views)

thank you for replay 

no of course i need to  put a delay sorry for that 

my main problem is to pass a Boolean data from the first loop to the second 

so i can use it to trigger the select pallet  

can you please download the vi 

 

 

0 Kudos
Message 3 of 6
(2,519 Views)
0 Kudos
Message 4 of 6
(2,474 Views)
Solution
Accepted by Mood_B

Hi mood,

 

I would suggest to learn the basics of event structures!

They

- don't react on writing values to an indicator (by wire), neither for "logical AND 3" nor "local variable indicator"!

- block until an event occurs, so putting a wait function in parallel is mostly senseless

- react on UI interactions, values written to "value (signalling)" property nodes, or user-defined events

 

You should:

- learn LabVIEW basics

- put all code into one just loop

- get rid of local variables: use notifiers, queues, channel wires for data exchange

- use the AutoCleanup from time to time…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 6
(2,470 Views)

Value signaling property node.

worked fine

thanx

0 Kudos
Message 6 of 6
(2,443 Views)