Integrated Vision / How to get the data of each individual object from PatMax 1-10
Options
![Levie](https://secure.gravatar.com/avatar/2f04f30e1f1dbf7a64b681757117b911/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
Levie
✭
Hello! I have some problems with the data transfer to Rapid from PatMax 1-10
Before that, everything was ok with the single object (regular PatMax), it was like that:
CamReqImage camera1;
CamGetResult camera1,cameraResults\MaxTime:=2;
CamGetResult camera1,cameraResults\MaxTime:=2;
wobjCamera.uframe:=wobjRobot.uframe;
wobjCamera.oframe:=cameraResults.cframe;
wobjCamera.oframe:=cameraResults.cframe;
pGripPart.trans.x := cameraResults.cframe.trans.x;
But now, how can i get the data of every single x contained in the cframe.trans.x ?
![Image: https://us.v-cdn.net/5020483/uploads/editor/3v/1lcg2p0gywxv.png](https://us.v-cdn.net/5020483/uploads/editor/3v/1lcg2p0gywxv.png)
Tagged:
0
Comments
-
You can cycle the results in a while loop:
CamReqImage camera1;WHILE CamNumberOfResults(camera1) > 0 DOCamGetResult camera1,cameraResults\MaxTime:=2;wobjCamera.uframe:=wobjRobot.uframe;
wobjCamera.oframe:=cameraResults.cframe;pGripPart.trans.x := cameraResults.cframe.trans.x;ENDWHILE
When there is no more results, the error ERR_CAM_NO_MORE_DATA is generated.0
Categories
- All Categories
- 5.4K RobotStudio
- 388 UpFeed
- 16 Tutorials
- 12 RobotApps
- 294 PowerPacs
- 404 RobotStudio S4
- 1.8K Developer Tools
- 248 ScreenMaker
- 2.7K Robot Controller
- 293 IRC5
- 52 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 752 RAPID Programming
- 16 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings