LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you refresh a remote panel window title or assign its position?

I use the application method "RP.Open Connection to Server" to connect to a sub-VI front panel of an executable LabVIEW application on a remote system. I have modified the sub-VI to detect the remote connection and re-fresh most of the properties to show a reasonable copy of the sub-VIs front panel. Except that the title bar of the opened connection continues to show the file-based title (with an appended identification of the Servename and the string "[Remote Panel]") even after the sub-VI has re-freshed the its "Title" property. Is there a different property that needs to be refreshed on the sub-VI?

 

Also, is there a way to programmatically control where the connection window appears on the client's Windows XP desktop?

 

Thanks for any input.

Tom

0 Kudos
Message 1 of 6
(3,730 Views)

Hi Thundt,

How are you changing the title in the Sub-VI.  Are you using VI server to change the functions like the image below?  When this property is updated the title bar does not change?  Or are you using another method?

Adam H
National Instruments
Applications Engineer
0 Kudos
Message 2 of 6
(3,708 Views)

Yes. The sub-VI uses the VI Property node "FP.Title" to establish the window title on the primary computer system during its initialzation, and this works just fine. The sub-VI will also refresh this title property (read the "FP.Title" then write "FP.Title") when it detects a new Remote Panel Client using the VI Method node "Remote Panel:Client Connections". This refresh method was required so that the front panel's controls and indicators show up with the correct properties when viewed remotely.

 

The problem is with the window that appears on the secondary computer when it issues the Application Method node "Remote Panel:Open Connection to Server". This method node does not return any information about the remote panel window that it opens, so I have no programmatic control over where it appears on the secondary computer's desktop nor can I give a more meaningful title.

 

Tom

0 Kudos
Message 3 of 6
(3,691 Views)

Hi Thundt,

First for moving around the location of the front panel is not going to be possible with the Remote Panel Open Connection to Server.  It can be set programmatically in the VI you are calling with a property node (see attached image).  I have verified on my end that this works.

When you attempt to set the title what does it show instead of what you were hoping?  Is it blank or is there some information there.

 

Message Edited by Adam_H on 10-24-2008 04:46 PM
Adam H
National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(3,673 Views)

I cannot assign a title or position to a remote panel window because I cannot obtain a reference to it. The title and position of the primary window is assigned by a property node originially during itialization and then again when a "refresh" is made upon detection of a remote connection. The "refresh" consists of using a VI property node to read "FP.Title" and "FP.WinBounds" wired to a VI property node to write to "FP.Title" and "FP.WinBounds" as shown in the attachment. The title and position of the primary VI window shows up just fine, but the title of the remote panel window shows the text "Default Title [Remote Panel]" where the text "Default Title" is the string used by the VI being remoted when the source for it it was saved to disk. The problem I have is that the VI title changes dynamically during VI performance based upon operator selections and cannot be defined at compile time.

 

 

0 Kudos
Message 5 of 6
(3,653 Views)

Hi Thundt,

Alright I have looked into the problem a little more.  As far as controlling the location, this is not going to be possible.  Your best bet will be to set it before hand either with a control or a constant in the VI you are calling. 

As far as the title not updating after much digging I have discovered this is expected behavior.  The title of the remote front panel is actually controlled by Windows not LabVIEW.  It should be possible to change the title however you will have to call into some system dlls to do so. 

Adam H
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(3,634 Views)