ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Robo Arm

Hello, I'm currently working on code to allow a robotic arm to move its 3 different motors automatically once it reads the input a user types. I currently have it so that it can move manually, but not automatically, through 3 different DQ assistants attached to build arrays and switches, in a while loop. It also reads the arm's current position through a DQ Assistant and displays three different outputs: height, in/out, and rotation, also in a different while loop. Can I get some pointers or example code on how to write part 2 of the code that will read 3 different inputs and move the arm accordingly? Having trouble finding resources.

0 Kudos
Message 1 of 3
(74 Views)

Robotic programming is always a bit tricky. But my first recommendation would be to actually learn DAQmx programming and forget about those DAQ Assistant Nodes. They are great to begin doing a single task without knowing anything about programming but they quickly detoriate into an uncontrollable mess once you need to do more than one thing simultanously.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(30 Views)

@MFedu wrote:

Hello, I'm currently working on code to allow a robotic arm to move its 3 different motors automatically once it reads the input a user types. I currently have it so that it can move manually, but not automatically, through 3 different DQ assistants attached to build arrays and switches, in a while loop. It also reads the arm's current position through a DQ Assistant and displays three different outputs: height, in/out, and rotation, also in a different while loop. Can I get some pointers or example code on how to write part 2 of the code that will read 3 different inputs and move the arm accordingly? Having trouble finding resources.


This seems like an architectural nightmare, but we can't really tell from your description what you are actually doing.

For motor control, one would typically use NI-motion. I have never head of "DQ assistants". Can you explain your hardware?

 

You cannot "built arrays and switches in a while loop". Can you show us your code drafts so we can get a clearer picture?

 

Can you explain the three user inputs? Why do they need to be different? Do they just define e.g. an xyz position? If this is a robotic arm, you might need to solve inverse kinematics. Have you worked out all the math based on the arm geometry?

0 Kudos
Message 3 of 3
(13 Views)