LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

race condition

oh, i understand that now..
but all of the sudden i have to add a frame before the current frame.
there is not other way around it?
i thought the idea is NOT USE STACKED SEQUENCES. and it ended up that i have to?
just wondering..

Best regards,
Krispiekream
0 Kudos
Message 21 of 24
(706 Views)
flat sequences are usually bad, stacked sequences are always bad.
 
what you can do is wire your occurrence into one fram of a flat sequence, and in the same frame, place a control or constant for everything that needs to be delayed.  the outputs will not occur until all the code has executed (namely your occurrence) so it will delay the rest of your code without putting it all in a sequence frame.
 
 
The value of the control will not register as a frame output until all the code has executed, leading to the functionality you want.


Message Edited by JeffOverton on 06-13-2008 04:29 PM
0 Kudos
Message 22 of 24
(702 Views)
There are many ways to order the execution of nodes in LabVIEW. One way that is increasingly rare (as you noted) is to use Sequence Structures. The more common way is to use the Error Cluster inputs and outputs to order execution of things. The occurrence functions don't have error clusters, so they don't help you much there, but Notifiers do. Notifiers are like occurrences, but you can send data as well.



Message Edited by Jarrod S. on 06-13-2008 03:29 PM
Jarrod S.
National Instruments
0 Kudos
Message 23 of 24
(701 Views)
wow, nice..thanks for the diagram and picture.
i will try this on monday when i get back
THANK YOU EVERYONE!
Best regards,
Krispiekream
0 Kudos
Message 24 of 24
(690 Views)