LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Color Box controls in Touch Panel Module

Hello,

I am attempting to change the background color of my touchscreen panel (tpc-2006) when a certain value increases past 5.  I have successfullly done this using color box controls, but Labview will not allow me to deploy it to the touch panel. I am guessing color box controls simply do not work with the touch panel module.  Am I wrong about this, or is there another way to change the color of the screen?

Attached are the VI and the lvproj files.  The color changing works fine if the VI is open only.  Errors result if the lvproj file is used, because it specifies that the VI gets deployed to a touch panel.

I am using Labview 8.5, with the Touch Panel Module 8.5, on Win XP.

Thanks!

Download All
0 Kudos
Message 1 of 4
(2,830 Views)

I'm pretty sure that color boxes worked with the PDA module as far back as LabVIEW 7.0, so I assume they also work with the TP module. I'm guessing you can't build because you're using the Value property. You should change your code so that you write the value to the terminal directly (you can even get rid of the case structure and use a Select node instead.

In general, if you want to write to the same control from more than place, you can use a local variable by right clicking the control and selecting it from the Create menu. You should note, however, that if you use them to transfer data, you are likely to run into race conditions.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,812 Views)
Thank you, tst.

I tried your solution using the select control and writing directly to the color box.  This works great on my desktop, and it even deploys to the TPC.

However, it does not work at all on the touch-panel.  The screen remains black and does not change.

Any other ideas?
Download All
0 Kudos
Message 3 of 4
(2,804 Views)


Irrigate wrote:

Any other ideas?

Try using the picture control instead and drawing a filled rectangle large enough to fill the control.

___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,801 Views)