11-29-2011 06:54 AM
Hi there,
I'm having the same problem because I use version 7.1.
Can anyone show in more details how can I stack one tank on top of the other.
Thanks in advance.
11-29-2011 07:00 AM
In the UI editor, create two tanks. Move one until both controls overlap... You can also use SHIFT + F10 to enter the coordinates directly.
11-29-2011 07:26 AM
Hi Wolfgang,
Thanks for you answer, but I could not figure out how to do it. Could you be so kind and add some pictures? I am also using a german version, which doesn't make things easier.
Thanks.
11-29-2011 07:35 AM
I am afraid that I don't really understand the problem...:
1) In CVI, you can create a new control in the UI editor using the menu bar: Create / Numeric / Tank
2) Duplicate it: Ctrl+C, Ctrl+V
3) Edit the control coordinates: selct a control and click SHIFT+F10
11-29-2011 07:41 AM
Hi Wolfgang,
Sorry, I thought one tank would be inserted inside the other until form 3 ones. But actually the solution is just to approach one tank near the other. Now I understood.
Thanks a lot.
11-29-2011 07:53 AM
I am happy to hear that! Good luck with your project.
11-29-2011 10:52 AM - edited 11-29-2011 10:55 AM
For a better aspect of the resulting control, I suggest you to use an additional tank to display the scale: place the fourth tank below the other 3 and set its colors to transparent so that it has no effect on the other.
Additionally, you may want to paint the needle in transparent so that it is not visible for the unused tanks.
Another hint can be to set range checking for the 3 tanks to "ignore": this way, you can simply SetCtrlVal on the same value to all tank controls and have the correct visualization for the "compound" control without need to detect which control to set in each condition.
Look at this picture for the result of all this:
Attached the sample UIR file for you to test.