Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Positioning of front panel objets on Touch Panel

I have a TPC-2012 touch panel computer. My problem is that I don't know how to control the positioning of the objets on the front panel when the VI is running on the TPC. The relative position of the objets are correct but the center is placed in a, what it seems, random way. If I move an indicator just a litte bit when programming on the PC, the center of the front panel is placed somewhere else when it runs on the TPC. Some objets may even become unvisible, i.e placed outside of the screen.

 

I have tried to modify the settings found on VI Properties/Window Run-Time Position ("Position: Centered" sounds what I'm looking for), but it doesn't seem to change anything when excecuted on the TPC.  

0 Kudos
Message 1 of 3
(3,376 Views)

A lot of properties in VI Properties are not supported on the Touch Panel Module and that's why it doesn't work. For your issue, I would suggest having a look at:

A Reference Design Library for Touch Panel Window Manipulation

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 3
(3,375 Views)

Thanks! Close, but this doesn't solve my problem. If I, as an example, use the "Set VI Window Size" and set the height to 200 and width to 300 and also the "Center VI Window", the VI appears as a small window in the center of the touch panel screen. Just as it should. The problem is however that the content of the front panel isn't centered in that window. If I for example only have one button on the front panel of the VI, it won't show up in the center of the screen.

 

Is there a center, origo, of the frontpanel when programming on the PC?

0 Kudos
Message 3 of 3
(3,370 Views)