LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitoring unknown tank level and control

thank u GerdW

can u tell me how can I use of visibilty of an object? for example, I Have 5 water tank but I want see just 2 of them. user Enter 2, and 3 water tank invisible.

0 Kudos
Message 11 of 29
(1,132 Views)

Hi behzad,

 

when you have more than one instance of the very same indicator you should use an array…

 

Use an array of "water tanks" and set the number of visible elements using a property node!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 29
(1,130 Views)

Hi GerdW and tnx

I used Array, but Array cant output binary number to control more than 1 object. can I set to binary numbers?

0 Kudos
Message 13 of 29
(1,126 Views)

Hi behzad,

 

but Array cant output binary number to control more than 1 object. can I set to binary numbers?

How is "water tank level" related to outputting binary numbers?

When you have numeric controls you can set them to show binary formatted number in their property dialog (when they are using integer represantations!).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 29
(1,124 Views)

tnx,

visibility block input of water tank is true false or binary format. I cant find binary format for an array, can u address me please?

0 Kudos
Message 15 of 29
(1,122 Views)

Hi behzad,

 

to requote my post: "set the number of visible elements using a property node!"

 

The number of elements is NOT a boolean value, it's an integer…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 29
(1,135 Views)

No, i want invisible some of object(some of tank) in running program. each object has invisible block that active with a boolean number.

0 Kudos
Message 17 of 29
(1,133 Views)

Hi behzad,

 

you need to wire a boolean wire to each "visible" property node…

 

Please attach a picture so we know waht you are talking about!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 29
(1,131 Views)

I attached the picture.

we dont know the number of tank, result, I want user select invisible tanks with an array with zero one boolean number.

0 Kudos
Message 19 of 29
(1,125 Views)

Hi behzad,

 

when you want tu use this array to control visibility you should make it an integer array…

 

Use ">0" comparison followed by IndexArray to get your bits!

 

Other approach: use a scalar integer numeric input, set it's display format to "%b" and use "number to bool array" to get your boolean array controlling the visibility…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 29
(1,122 Views)