取消
显示结果 
搜索替代 
您的意思是: 

remote panel automation, how to get a reference to the front panel?

Hello,

We have successfully established a remote controllable vi panel from a separate computer, and are able to operate the front panel as if it were running on the local computer.  We want to be able to programmatically manipulate the controls on this remote front panel that is open on the local computer.  I think this would require us to get the remote panel reference, then the control references, then we could change their value by writing to the control property.  But our problem is we cannot find what property or method exists to enable us to get a reference to this remote front panel on the local computer.  There doesn't seem to be an obvious item in any of the "connectivity" related items.  Does anyone know how this would be accomplished?

 

Thanks

David Jenkinson

0 项奖励
1 条消息(共 7 条)
3,786 次查看

Hi David,

can you show how you make the connetion to separate computer? I think you should already have the refnum to the vi.

 

Mike

0 项奖励
2 条消息(共 7 条)
3,766 次查看
Hi,
We are basically using the examples.  If you go to NI example finder, do a search on "remote", we are experimenting with "RemotePanelMethods-Client.vi" and "RemotePanelMethods-Server.vi".  The Server.vi example is set to launch "examples\measure\maxmpl.llb\Power Spectrum Measurement.vi".  We can launch the front panel fine on the client computer, gain control, and manipulate the controls.  In this example, how would we get the reference for say the "frequency" knob, if we wanted to automate the setting of this from the remote computer?  In a local vi, it is as simple as right-clicking and doing create/reference.  I am just having trouble finding the correct method and/or properties for finding a reference to the controls on a remote front panel.

thanks

0 项奖励
3 条消息(共 7 条)
3,749 次查看

Hi david_jen...,

if you have the refnum to the remote vi, then you can get the control refnums with a property node. "FP -> Controls".

 

Hope it helps.

Mike

0 项奖励
4 条消息(共 7 条)
3,730 次查看

Hi Mike,

Ya that is exactly the strategy, get the reference to the remote vi, then from that we can get to the controls.  The difficulty is finding where to get the reference to the remote vi.  We'll probably give support a call soon.

 

Thanks

0 项奖励
5 条消息(共 7 条)
3,717 次查看

Hello,

 

I do not believe that there is anyway to open a reference to a remote front panel directly.  Instead, what you want to do is open an application reference to the machine on your network.  You can then open a VI reference to the VI running on the network computer.  This reference has nothing to do with the fact that the VI is a remote front panel, but you should be able to manipulate it just the same.  I hope this helps!

0 项奖励
6 条消息(共 7 条)
3,694 次查看

That may be the hint we were looking for.  We'll give it a shot when we get a chance and report back.

 

Thanks

 

0 项奖励
7 条消息(共 7 条)
3,686 次查看