06-27-2017 09:10 AM
Hello,
I'm wondering how or if I can set a tank's max volume using a dbl numeric control from the front panel. I understand how to change it by clicking on each tank but I'd like to have some numeric controls to control the tanks. I don't want to change the level of the liquid in the tank, just the overall volume.
All help is appreciated
Solved! Go to Solution.
06-27-2017 09:16 AM
Are you talking about a tank control/indicator?
Technically, the VOLUME is what a tank could fill in liters. That is nonsense for a display.
I ASSUME that you want to modify the scale of a tank indicator rather than setting its value (what i guess you refer to when stating "level").
You have to use a property node to modify the scale of the tank indicator.
06-27-2017 09:34 AM
@JSamm23 wrote:
Hello,
I'm wondering how or if I can set a tank's max volume using a dbl numeric control from the front panel. I understand how to change it by clicking on each tank but I'd like to have some numeric controls to control the tanks. I don't want to change the level of the liquid in the tank, just the overall volume.
All help is appreciated
If I understand correctly, you want to set the scale maximum on a tank control or indicator using another numeric control. This can be done, as Norbert suggests, using a property node. Right click on the tank control or indicator on the block diagram and follow the menu: Create > Property Node > Scale > Range > Maximum
Place the property node on the block diagram, right click and change to "Write" and wire your numeric control. This gives you the basic idea of how it works. To actually implement into a program, you would probably want to put the property node into an event handler that runs whenever the control numeric is modified.
06-27-2017 09:45 AM
I am talking about a tank indicator. I attached a zip file with an idea of what I'd like to do, hopefully the subvi's work correctly. I'd just like to be able to change the numeric controls on the left and have it change the scale of the tank indicators on the right. I do understand that the numbers are fairly arbitrary but I'd like to be able to show larger or smaller units as well as the reservoir size.
Thank you
06-27-2017 10:11 AM
Thank you All,
The property node appears to be what I was looking for.