11-06-2008 12:31 PM
It appears that Programmatic binding of Front Panel Controls do not work when they are located on a tab control.
Is this a known issue in LV 8.6?
Solved! Go to Solution.
11-06-2008 01:25 PM
Whoops, it appears that the real issue is that you must first manual set the binding type of the control before you can
write to any of the binding properties. Sounds fair enough, except that if you are planning on setting all of your HMI control
binding programmatically then it would be nice if you could just set the binding mode without having to set a valid URL as well.
Even better would be the ability to programmatically set the binding type itself.
11-06-2008 01:33 PM - edited 11-06-2008 01:36 PM
Did you try and Invoke node for the control?
I haven't tried this to see if it works.
Since the context help says it is only settable at edit time, it may be a situation where you'll have to send control references of a non-running VI to another VI that actually does the setting.11-06-2008 01:47 PM
Yes, I did notice that and it maybe the only way to do it.
I did think I was getting close but now am getting the following error when trying to overwrite the Binding URL
to a control that had been manually bound to a NSV.
Error 1522 occurred at Property Node (arg 1) in NSV Binding Test.vi
Possible reason(s):
LabVIEW: (Hex 0x5F2) The BindingPath property can only be written when the control is already bound to a PSP URL.
Property Name: Data Binding:Path
11-06-2008 02:08 PM
It appears that I can programmatically change the BindingMode but
if I try to change the BindingPath I get the dreaded error 1522.
11-07-2008 01:03 PM
11-07-2008 03:25 PM
11-10-2008 01:28 PM
Hello,
The car is dated to October 30, 2008. It is CAR 131529. As well, what kb are you referring and what do you mean by "does not come up in a search of the kb"? We don't currently link CAR's to kb's.
11-10-2008 02:00 PM
11-19-2008 11:53 AM - edited 11-19-2008 11:56 AM
If the front panel control is already bound to a PSP URL you can relink it to a different URL using the DataSocket URL property while the VI is running.
If the front panel control is not bound to a PSP URL, then you can not attach it to the PSP URL while the VI is running. You can use the AttachDataSocket method from another VI to change the binding while the original VI is stopped (in Edit mode).