Problems with reading targets array
Klaus
✭✭
Hi.
For Each RS As RapidSymbol In rsCol
Dim varData As RapidData = modul.GetRapidData(RS.Name)
If varData.IsArray Then
Dim AD As ArrayData = DirectCast(varData.Value, ArrayData)
For I As Integer = 0 To AD.Length - 1
her i add value to datagrid: AD.Item(I).ToString
Next
End If
Next
In this code i get an error when reading targets arrays.
The error is: The amount of data is too large to fulfill the request.
For Each RS As RapidSymbol In rsCol
Dim varData As RapidData = modul.GetRapidData(RS.Name)
If varData.IsArray Then
Dim AD As ArrayData = DirectCast(varData.Value, ArrayData)
For I As Integer = 0 To AD.Length - 1
her i add value to datagrid: AD.Item(I).ToString
Next
End If
Next
It works on num array but but not on target
what do i do wrong
BR Klaus
Best Regards
Klaus Soenderhegn
www.cadalysator.dk
Klaus Soenderhegn
www.cadalysator.dk
0
Comments
-
Where is it failing, iterating on the RapidSymbol colection or working with the array data? What is the exception type and who is raising it?It is possible to make RAPID structures that are too large for the protocol to handle, but which don't violate any RAPID data definition rules. How large is your array of robtargets?Russell Drown0
-
The target array length is only 12 and the error comes when i read the first record in the array: AD.Item(I).TostringBR KlausBest Regards
Klaus Soenderhegn
www.cadalysator.dk0
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