LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sync DAQ measurements with motor controller

Hi all,

 

I've been grinding my head for days on this problem.

 

I've got an NI DAQ reading an analog voltage and a Maxon EPOS2 motor controller.

 

I want to read analog voltage from the DAQ at a frequency of 1800Hz and around 25 samples. For every set of samples, I want the EPOS2 motor controller to read its encoder position and have write to measurement file log all the data.

 

The problem I'm having is that although data values from the DAQ are recorded, they lag behind the encoder values provided by the EPOS2 by approx 50ms. This lag time changes as a function of the DAQ's rate and number of samples.

 

I attached an example data file. If you scroll all the way to the bottom, you'll see that the right most value (time from computer and I believe EPOS?) is different from the left most time value which came from the DAQ waveform.

 

 

I've attached my code to this post. Would some form of rendezvous or queue be applicable? Any thoughts would be most helpful.

 

 

Thanks

Download All
0 Kudos
Message 1 of 2
(2,251 Views)

Hello Ruben_D

 

I'm sorry this is causing you an inconvenience!  Can you please provide a link to the EPOS2 install file as I seem to be missing a number of their dependent VIs.  Thank you very much!

Sincerely,

Greg S.
0 Kudos
Message 2 of 2
(2,214 Views)