LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drop-down list of check-box options with header.

Solved!
Go to solution

Argh... This is infuriating! It's blatantly something glaringly obvious. 😞

 

Anyway, I might as well put up all the code in a way that can be used/tested by someone else.



Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 21 of 22
(1,171 Views)

Full Discloser: I can't look at your code

 

But maybe this will help.

 

In Thoric's code you will see that he has resized the property node.

 

subvi.jpg 

 

When you have multiple properties in a single node LV will execute them from top to bottom. So his code set the number of rows BEFORE getting the width and height.

 

In your code

 

 

 

You have used two property nodes and there is no data flow forcing the execution order. When not explicitly forcing the order LV will evaluate all nodes and operators that have no data dependencies first. This means that your Width-Height node will execute BEFORE the number of rows is set. If this actuall an issue in your code you can test it by running an error wire from the NumRows to the Width-Height node.

 

Just trying to help,

 

Ben

 

 

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