LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Customizing/Making indicators] GUI, wishes and dreams, but can it be made?

I'm having some kind of problem with transparancy for the winddisplay. I Want to have a small 'boat' displayed in the middle of the gauge, so far no problem at all, I've drawn a picture in Autocad, exported it to PNG and imported it into LV. But then, it's supposed to have a programmatically changeable background color in the gauge itself, but looks like the imported picture overwrites the housing... Is it possible to change the backgroundcolor of the display when using a transparent image. And if not possible how do I fix a workaround for this.

The second thing I still can't figure out is how to change the TextColor of a PageTab of the TabContainer and the background color of a TextRing...

Attached is the control/indicator
0 Kudos
Message 31 of 35
(3,520 Views)

The picture replaced the housing because you chose the housing and selected "import...". You need to choose some other element which can be resized. The only one I could find was the frame, which means you lose the 3D look. Also, your numbers didn't fit properly, for some reason. Changing one of them solved it.

I don't think you can change the color of the page labels, but if check the Allow Multiple Colors options you can set a different color for each page.

Also, you can change the background color of a text ring by using the RingText.BGColor property. You can't, as far as I know, change the color of a menu ring.

___________________
Try to take over the world!
0 Kudos
Message 32 of 35
(3,514 Views)
Ok, loosing the 3D look of the gauge isn't exceptable so I will use the one without a different background for the scale.

Only now a small problem comes up, my boss want's the LV licenses to be a base package for the other programmers, so this VI should be run and editable from the base version. For the most things it doesn't give that much problems only for the depthindicator. Here I'm using a XY graph, which thank god is functioning alright, after some startup troubles. So I intend to replace it with the Waveform graph, however the signals to be displayed are acquired at a rate of 200ms-5sec... On the screen they don't need to be updated right away when acquired so I only need a acquistion loop which puts data into a global var on undefined intervals. Then a timed loop needs to be used to make sure the intervals for the plot is 1 second.

I've worked something out, only the question is if this is going to work properly, I clear the last item of the array when the maximum to display time has past (in this case 600seconds). The only thing I'm not comfortable with is the way I calculate the warning depth line... Is there a better way to do this, like the XY graph by using only 2 constant values (one at the start of the scale and one at the end).


0 Kudos
Message 33 of 35
(3,499 Views)
Sometimes is better to modular your code. I think it is better if you do that for the code you have outside the while loop.Smiley Wink
0 Kudos
Message 34 of 35
(3,482 Views)
Otman, I don't get what you mean about making my code modular... In the case of the graph thing you say I shouldn't use local variables to write data to my indicators?
0 Kudos
Message 35 of 35
(3,474 Views)