LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does the method "Data Binding:Bind to Network Path" error out at run time?

Using LV 8.0 and DSC 8.0, I created an invoke node for a numeric indicator and selected the method "Data Binding:Bind to Network Path".  However it returns an error when I try to execute it.  I know that the path is correct because it works if manully configured with the same path.  I get the following error message:
 
Error 1073 occurred at Invoke Node in Untitled 1
Possible reason(s):
LabVIEW:  This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.
Method Name: Data Binding:Bind To Network Path
 
I am confused why the method is even available if it does not work at run time.  I am also confused by the statement that is can be written to at edit time.  Does 'writing to it at edit time' mean manual configuration of data binding through the front panel? (right-click on control, Properties>DataBinding).
 
My goal is to be able to create an application that I can deploy on several computers that each bind to shared variables of different names. I could manually configure them each, but each time I make an update to the application, I would have to rebind each control on all deployed applications.  I prefer to use the same application and have an INI file for each computer containing the names of the shared variables to be bound to.  Ideas on alternate approaches are welcome.  Thanks.
 
0 Kudos
Message 1 of 4
(4,159 Views)

Hi Chris,

The Error message produced is correct as the Property Node can only be used when a VI is in edit mode.  Writing to it at edit time does mean manual configuration of data binding through the front panel (right-click on control, Properties>DataBinding). Bu it also refers to running a VI that will then edit the properties of another VI.  It sounds like this is what you would like to accomplish. 

For your situation you would just need to create a VI that gets the correct control references from the front panel on the VI and then uses the Invoke Method to change the Data Binding.

I believe I might have an old example that has this but I will have to search for it.  In the meantime give that a try and let me know how it works out.

Looking to help,

Steven B.

Message Edited by Bassett Hound on 08-21-2006 06:40 PM

Message 2 of 4
(4,131 Views)
Thanks, that worked.  I created a utility VI that opens a reference to the main VI, gets the control references, and then applies the binding method.  So the moral of the story for me is that the main VI can be editing programatically or manually.  In either case the main VI is still in edit mode.  Now I can just run this utility VI rather than rebinding all the controls manually each time I push out an update.  I attached an example for anyone who is interested.
0 Kudos
Message 3 of 4
(4,119 Views)

Glad to see it worked out Chris.  Thanks for posting your example too.  I'll take a look at it and see if I can help out in any way.

Regards,

Steven Bassett

0 Kudos
Message 4 of 4
(4,108 Views)