LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continuous acquisition with motion control

I am using the PCI-MIO-16XE-50 and PCI-7344. I need to have continuous aquisition at a scan rate of about 10 kHz. Along with this, I want to record motion/motor position data into the same file, whenever I give a move (sinusoidal) command. How do I do that? Hopefully, there is also a way for me to have the DAQ continue and be able to change different parameters (freq, amplitude etc) on the motion control and perform different sinusoidal motions without having to re-start the vi. Any ideas? Attaching a code i was working with.
0 Kudos
Message 1 of 3
(2,582 Views)
To whom it may concern:

In order to synchronize your data acquisition with your motion, the best route would be to route your encoder feedback from your motor via RTSI to your MIO board and use it as a scan clock for the data acquisition. This is demonstrated in an example that is available on our website at http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E5DD56A4E034080020E74861&p_node=DZ52480&p_source=External.

As far as being able to do the changing of the parameters of your sinusoidal motion on the fly, you would have to set things up to do contoured motion where you're feeding the destination points to the controller (7344). We have another example that demonstrates that you can download from the website. It is found at ht
tp://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E68556A4E034080020E74861&p_node=DZ52479&p_source=External.

Hoping this is helpful to you. Best of luck...

Jim Laudie
Applications Engineer, National Instruments
0 Kudos
Message 2 of 3
(2,582 Views)
Another way to do it, was to use queue commands. Steve Aposhian, an NI application engineer at Utah was kind to show me how to do it. Just in case anyone else ever wants to do similar stuff.
Only problem is that since the DAQ rate and the position/motion f/b rates are different, I had to manipulate the motion data to get the same number of points.
0 Kudos
Message 3 of 3
(2,582 Views)