04-23-2009 04:12 AM
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.
04-23-2009 04:33 AM
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
04-23-2009 06:45 AM
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?