I have a problemm which confuses me a lot. I need to use SignalBindingSource in basic FP SDK application. I do everything just like shown in the traning video but binding does not work. Need asistance.
Application consists of two buttons: one sets the signal and one resets it. There is a tpsLabel in order to automaticly refresh state of the signal which is manipulated. States of signal are changed but no data binding has place - tpsLabel does not change its state.
Application was tested in RS 5.11 and 5.11.01 also in real FlexPendant (RW 5.11). I use Visual Studio 2008 Pro (90-day Trial) and RAB 5.11.01 (tested also in 5.11). Systems had PC Int. and FP Int..
More I found: the data is correctly asinged to tps label:
signalBindingSource1.Signals[0].Name - returns correct value (the name of the singnal).
It seems there is a problem with “refreshing” of tpsLabel1.Title. Maybe with bad compile process, wrong/incomplete resources or VS2008 itself.
If any more info needed - just write what do you need - I’ll provide it.
I tried. It doesn’t work. The problemm is that none value is assinged to the tpsLabel. A proper signal is added to the bindingObject but data is not “forwarded” to a tpsLabel.
If you are using the databindingsource through the designer it will only bind one UI property to the first item in the binding source, even though you can add multiple signal items. Try adding a second binding source for the second label.
The bindingsources work better with items that have a collection, like the Data Grid. However, if you study how the code is generated you can use the binding source programmatically and write code to handle the ListChanged or ItemChanged events of the binding source to update the UI.
Also, try using the text property not the title property of tpslabel.
Here is a simple application. It has a data grid that is bound to a signalbindingsource with two signals defined, DI_001 and DI_002. The grid updates great but the label on the form does not.
Shane
I still believe that its very important to get the signal/RapidDataBindingSource working on the TpsLabel. Please help on how this can be configured so that it works properly.
I am discoring the same problems descoverd above concerning the TpsLabel.
Hi Dezino,
Do have you the signalbinding working on for the datagrid? I’ve been playing more with the label with no luck. What versions of software are you running?
Hello Dezino,
I have got the tpsLabel working. Make sue that you go to the advance tab for the label and setup the databinding. I’ve attached my application so you can an example. I’m using RW5.10.2 and Visual Studio 2005.
A workaround is to fetch the data you are interested on, and connect to the ValueChanged event for each of them. This is what the Binding mechanism do in principle.
In order to ahve a similiar performance, you will need to connect or disconnect the event mechanisms whenever your user interface is activate or not.