Unpacking rawbytes to string
SteveMob
✭
Hello,
The subject sort of changed on my last thread (https://forums.robotstudio.com/discussion/comment/25839#Comment_25839), so I thought I would just move it to this new thread.
Summary:
I am sending the robot arbitrary robtarget data from LabVIEW via sockets and TCP/IP. I am trying to create a method to check if the target data has any non-numeric characters in it. Best method so far was to convert robtarget to string and parse out bad characters and then convert back to robtarget. The problem with this is, if I unpack everything into robtarget data type, the bad characters turns to a "0" all the other characters after it, into a "0". So I have to unpack the rawbytes into a string before going to robtarget data.
Question:
How can I unpack data being sent to the robot (sent in robtarget format) into a string, or multiple strings (pos string, quaternion string, config string)?
Thanks for any help!
SM
The subject sort of changed on my last thread (https://forums.robotstudio.com/discussion/comment/25839#Comment_25839), so I thought I would just move it to this new thread.
Summary:
I am sending the robot arbitrary robtarget data from LabVIEW via sockets and TCP/IP. I am trying to create a method to check if the target data has any non-numeric characters in it. Best method so far was to convert robtarget to string and parse out bad characters and then convert back to robtarget. The problem with this is, if I unpack everything into robtarget data type, the bad characters turns to a "0" all the other characters after it, into a "0". So I have to unpack the rawbytes into a string before going to robtarget data.
Question:
How can I unpack data being sent to the robot (sent in robtarget format) into a string, or multiple strings (pos string, quaternion string, config string)?
Thanks for any help!
SM
Tagged:
0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings