RapidDatabinding source "FP SDK 5.14"
Hydron
✭
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...
0
Comments
-
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?John
Developer Center0 -
Thank you very much.I think that should do, Ill try code0 -
HiRegarding 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/ResumeBindingwhen the user switches focus and/or modules.John
Developer Center0 -
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.ClickDim 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 = 0End Sub
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
TextBox1.Text = ComboBox1.TextEnd 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 regards0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings