06-12-2019 12:21 PM
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
Solved! Go to Solution.
06-12-2019 12:37 PM
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.
06-12-2019 12:46 PM - edited 06-12-2019 12:57 PM
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
06-13-2019 01:59 AM - last edited on 12-10-2024 01:14 PM by Content Cleaner
I would suggest a channel wire: https://www.ni.com/en/support/documentation/supplemental/16/channel-wires.html
06-13-2019 02:20 AM
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…
06-13-2019 04:41 PM
Value signaling property node.
worked fine
thanx