LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two short questions regarding labview

As a matter of fact I started reading the nugget on Action Engines 😄 . However, I'm not sure yet how to use these and why they are better than queues. At the moment I'm using queues instead of the value property node.

 

0 Kudos
Message 11 of 17
(1,183 Views)

where a queue and an AE can fill the need, a queue is generally perffered since it can be faster. If you need to something to the data while it in "THE THING" (AE or queue) then the AE gives you the option to code it up. The Running Average is an example of a case where something has to be done to the data. If you are just passing data then the queue will fit.

 

In the most simple VI' the extra work of creating and killing a queue can be avoided using the AE.

 

So open-end or box-end choose the wrench that fits your need.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 12 of 17
(1,172 Views)

AE are not better than Ques-  They are different and do different things.

 

Ques, Locals and AEs pass values more effeciently than property nodes because of the way LabVIEW is designed.  When a VI runs Two Main threads spawn. One executes the code represented by the block diagram and one is responsible for the Front Panel display.  When a property node is reached  a switch must take place to the UI thread because control and indicator vaules are in the UI namespace.  Wire values are not in the UI namespace so the thread switch (and its CPU overhead) is not required.


"Should be" isn't "Is" -Jay
Message 13 of 17
(1,171 Views)

AEs give you a level of encapsulation. Using LVOOP allows for the same but with the benefits of inheritance.

They are not 'better' than q's, but a different tool. They also allow to share data between multiple loops. But they lack the native syncronisation of queues as used in the producer-consumer design pattern.

On the other hand, AEs can be filled with code, which makes them much more general purpose.

 

Felix 

Message 14 of 17
(1,170 Views)

How do I put an AE in labview? Its not avialble on the functions pallette, at least not for labview 8.5

I'd like to experiment with this. 

 

0 Kudos
Message 15 of 17
(1,159 Views)
An AE is a sub-vi that you write.  Start with Ben's nugget- a good read any day - and see where you go from there

"Should be" isn't "Is" -Jay
Message 16 of 17
(1,152 Views)

Ben wrote:

 

All data in LV lives in wires.


Ben, I love these words......  Very nice......

Message 17 of 17
(1,070 Views)