06-27-2013 05:41 AM
I want to have a GIF (or similar) on a front panel that shows the routing of some network traffic. As the user clicks a radio button, I would change the color of some pre-drawn lines from clear to black so that it appears to come 'on'. There's no real functionality to them, it's for display only.
What kind of indicator do I use? I looked under the decorations pane but none of these things appear to have a back-end equivalent.
Or perhaps there's a better way to do this? Do I have to pre-load all possible iterations of the GIF and then just draw a different one on the front panel as the user clicks?
Any help appreciated.
06-27-2013 08:16 AM
Hi.
I haven't worked much with GIF's or other pictures on the front panel. And the only option that comes to mind is having different pictures overlap eachother on the front panel, and then show one of them that corresponds with what the user clicked.
I have attached a simple VI that uses a Tab container to switch between to pictures. I dragged the two pictures on the front panel from windows explorer so I am not sure if they are visible when you open the VI.
06-27-2013 08:27 AM
I think a picture ring is your best option. On compile time you can load the pictures in and then display them by only selecting it with the corresponding number.
06-27-2013 08:41 AM
What I have done in the past with cockpit flight panel controls was to take the drawing and delete the section using paint so that it transparent on the front panel, then I would use an LED behind it to simulate, off/on states and dimming. After all is said and done..The flight panel basically simulated an operational lit panel, whether in day or night mode. You would use the 'reorder tab' on the front panel to move your objects front/back, forward/backwards whether it is controls, leds, or drawings. Beware though..If there are many objects on the front panel with drawings, this tends to slow things down when being updated/redrawn. Use the defer panel updates properties...
06-27-2013 09:45 AM
I would go with a picture ring control. Use the classic picring, preload all your images into it, set the border to transparent and hide the index display. Then programmatically set the index value of the terminal to show the picture you need. Probably best to make it an indicator, and also set it's advanced properties to Disabled to prevent an operator from interacting with it.
Let us know how you get on!
06-27-2013 09:46 AM
thanks a lot, I'll give it a try!!!
06-27-2013 10:01 AM
Alternatly a customized coror box might fit the bill here too. just make the color box in the shape of the lines you want and change from T to Green or red or whatever
06-28-2013 07:54 AM
Other options: