Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't read buffer on motion controller board when using as general purpose outpu

I am still learning. Successful in initializing,writing and reading buffers from the PC. But when I try to put check buffer and read buffer inside a program for execution by the motion controller board, I cannot seem to get it to work. I am using the buffer as a general purpose output buffer.
0 Kudos
Message 1 of 4
(3,624 Views)
Bernie,

I made a quick example to demonstrate how to write and read buffers. Please download it from this response and follow the instructions on the front panel. It is saved for LabVIEW 6.1, the algorithm will show how to write a buffer and then read it. I hope this will work for you. Next time you post a question, please include software versions and any error message you get.

Good luck!

Nestor Sanchez
Motion Control Support
National Instruments
Nestor
0 Kudos
Message 2 of 4
(3,623 Views)
Hi Nestor,
 
I am trying to do the same thing... To write an array full with target positions for some servo motor, this from the Host and then, read this buffer from the onboard program and use these positions to perform my movements. Your example is working fine but is doesn't use an onboard program. How is it the transition to an onboard program utilization?
 
The aim of all of this is reduced the memory needed to store all my positions (450). I was using a simple array, but every position occupies 5Kb, according to my calculations. Am I right?
 
 
Thanks!
 
Esteban.
PS. Do you speak spanish?
0 Kudos
Message 3 of 4
(3,452 Views)
Esteban,
 
It sounds like you are simply wanting to perform a contoured move: send a series of commands an intervals to the motion controller, and have the controller issue these commands to the motor.  There is an example that ships with LabVIEW that performs this quite well, it is called One Axis Contour Move With Position Monitor.  You can find this in the Example Finder under Motion Control, and Contour Move. 
 
Regards,
Jasper S
0 Kudos
Message 4 of 4
(3,427 Views)