Jump to content

The excution order of accessing to multiple attribute by Property node


Recommended Posts

Hello everyone,

Here I am again.

It a question regarding the property node.

In the book "LabVIEW Graphical Programming, Fourth Edition " by Gary W. Johnson and Richard Jennigs, it's written that: Each item in the list can be either a read or a write, and execution order is sequential from top to bottom.

But I implement an example with multiple access to property node, the data flow of course runs parallel to and reachs the property node simultaneously. So for me it seems that the execution order is not sequential from top to down but parallel. (And this is consistent to the underlying principle of Labview, a data flow language.)

With great respect to the authors, I think I may misunderstand the meaning of the book. Or is it possible that the property node does excute all the accessing parallel?

Best regards

Link to comment

Hello everyone,

Here I am again.

It a question regarding the property node.

In the book "LabVIEW Graphical Programming, Fourth Edition " by Gary W. Johnson and Richard Jennigs, it's written that: Each item in the list can be either a read or a write, and execution order is sequential from top to bottom.

But I implement an example with multiple access to property node, the data flow of course runs parallel to and reachs the property node simultaneously. So for me it seems that the execution order is not sequential from top to down but parallel. (And this is consistent to the underlying principle of Labview, a data flow language.)

With great respect to the authors, I think I may misunderstand the meaning of the book. Or is it possible that the property node does excute all the accessing parallel?

Best regards

When you have a property node re-sized for multiple inputs , yes the required data may arrive at different times but one they are all there, the execution is from top to bottom, unless there is an error...

Ben

Link to comment

Multiple property nodes will execute in parallel. What the authors are talking about is when a single property node is used to set/get multiple properties (the property node can be expanded just like the build array or bundle/unbundle cluster). Hopefully this picture will help clear things up.

post-11268-043959200 1277745943_thumb.pn

  • Like 1
Link to comment

And to clarify it even more - the value of the control will be 6 when the code finishes executing, because the second property executes last, even though it got the value first:

post-1431-091619900 1277748633_thumb.png

Thanks for your great paradiagm. thumbup1.gif

Link to comment
  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.