08-17-2011 05:59 PM - edited 08-17-2011 06:04 PM
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
08-18-2011 06:03 PM
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!