RapidDatabinding source "FP SDK 5.14"

Hello. I am to developing an aplication in c# to make some changes to rapid data more faster.

My problem is that i already have many modules, that basicly are the same program , but have diferent data values, so when i drag rapiddatabindingsource to designer, i need to enter task, module and, variable names, but since i want my application to work with all the other modules this doesnA’t work. All the other modules have the same task and variable names.
Any ideas?? Thanks…

Hi hydron,

Could you do some screenshots to describe the problem, or some code?

IF I understand your problem, couldn’t you have a list with all the different modules, like this, so the user selects the module to work with, then whenever that is changed change the rapiddatabinder to accomodate?

Thank you very much.
I think that should do, Ill try code

Hi

Regarding your other questions.First go through the FlexPendant SDK Application manual chapter:
“Using the FlexPendant SDK - Using the Controller API - Accessing the controller”, there you will find the code examples you need.

Also when it comes to the databinding, remember to utilize the
SuspendBinding/ResumeBinding
when the user switches focus and/or modules.

Ok.

Thank you very mutch, I was able to make it work with this code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim TaskName As String = “T_ROB1”

Dim modulantal As Integer = robotController1.Rapid.GetTask(TaskName).GetModules.Length

ComboBox1.Items.Clear()

For i = 0 To modulantal - 1

Dim modul As RapidDomain.Module = robotController1.Rapid.GetTask(TaskName).GetModules(i)

ComboBox1.Items.Add(modul.Name)

Next

ComboBox1.SelectedIndex = 0

End Sub

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged

TextBox1.Text = ComboBox1.Text

End Sub

Now i need a code or an example to add a checkbox and with that checkbox change the value of a boolean variable from true to false.
That variable is stored on the module that i choose from the combobox (ComboBox1.Text)

Best regards