Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing motion and DAQ

Hi.
I have a PCI-6031E aquiring 22 analogue channels at a scan frequency of 2
KHz, for time intervals of up to10 seconds, without any trouble. In the same
PC, I have a PCI-7344 motion card controlling two servomotors, without any
trouble. Both cards are interconected by means of RTSI. I program in Visual
Basic 6 with ComponentWorks, NI-DAQ 6.8 and FlexMotion.
My question is: how can I synchronize both cards, in the sense that for each
scan sample of the PCI-6031E the motion card stores a sample of the position
of the two motors?
Please note that I don't want to relate DAQ samples to position samples, but
inversely, get position samples at the sampling frequency of the motion
card. This must be so because I need to apply digital filtering to
the
acquired signals, so all the samples have to be uniformly distributed in
time.
Is it possible? How? Which FlexMotion functions should be used?
Thank you.
0 Kudos
Message 1 of 2
(2,271 Views)
Lonn,
From your motion side of the program, you could use breakpoints that could be output to DAQ as a scan clock via the RTSI bus.
This is a link to information concerning breeakpoints:

http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/3b002f3944487b9b86256aa7006b4e65?OpenDocument

This is an example using breakpoints in VB:
http://fosters.natinst.com/devzone/explprog.nsf/41ee12ddba6c766a8625684700691463/1fc5d05edfb8f925862568570055ee74?OpenDocument
0 Kudos
Message 2 of 2
(2,271 Views)