I'm working on a realtime complex control system for a robotic arm. The aim of the controller is to track a desired end-effector trajectory, exploiting visual information coming from an analog camera, and to damp the arm vibrations.
This is the hardware set-up:
- two couple of strain gauges un half-bridge configuration, acquired by a PXI 6070E + SC2043SG
- an encoder, acquired by a PXI 6602
- a Sony XC-55 analog camera, acquired by a PXI 1408
- an analogue torque reference, generated by a PXI 6711
The PXI is based on a NI8176 embedded controller. The control software has been developed with Labview 6.1, NI DAQ RT 6.9.2, NI IMAQ RT 2.5.4, following the National realtime programming guidelines (host side/realtime loop separation, realtime fifo, etc.).
A position controller, based on encoder measurement, with a 2kHz loop rate is now running with good results. The next step should be to include image acquisition in the control loop. Oviously, as the camera frame rate is limited to 30Hz, the acquisition VI will be inserted into a case (true/false) structure and will be executed only every 70 cicles of the 2kHz loop.
The question is: what is the best IMAQ technique to acquire the image (or an image ROI) so as to minimize the acquisition time?
In fact, even if the image acquisition is performed only every 70 cicles it have to last less then 1/2000 sec, otherwise the 2kHz loop cannot ensure realtime execution.
Thank you in advance,
Luca Bascetta