04-14-2009 12:30 PM
Problem: For Analog Voltage Output, the "start times:" ASCII field is set to 12/31/1903 19:00:00.000000. The TDMS file (imported into Excel) field called "log channel int time0" has the same value. I am also recording signals from an Analog Voltage Input, which has the correct start times. I need to synchronize the output and input voltage time stamps when I post-process the data. What do I need to do to fix the timing reference on my Analog Voltage Output?
Note: In Signal Express > DAQmx Acquire step, the Calibration Date is 12/31/1903. My hardware has a calibration certificate. Do I need to Calibrate my DAQmx Virtual Channel(s) too?
P.S. In the Analog Voltage Input ASCII file, there is about ~4-5 sec delay between the time stamp on "channel names" and "start times". Does it take 4-5 sec from the time I press RECORD to begin saving data?
Setup:
Monitor / Record:
DAQmx Acquire Analog Input (Acq Mode: Continuous, 1k samples @ 10kHz),
Create Analog Signal (DC Signal 100kS/s, 1000 sample block size),
DAQmx Generate Analog Output (N Samples).
Using: LabVIEW SignalExpress v2.5.1 Lite, NI USB-6221
04-16-2009 04:23 PM - edited 04-16-2009 04:24 PM
Hi
When you are writing an analog output with signal express the default time stamp will return 12/31/1903 19:00:00.000000. This is because there is not time stamp associated with the signal you are going to output. Also, i wanted to note that the time stamps in signal express are non deterministic (meaning they are software supplied).
However, if you want to synchronize your analog input and analog ouput I would recommend to have them share the same clocks and use a master/slave type architecture. I posted a screenshot of how to set this up. In my example you start the analog output task first but reference the timing of the task to be the ai/sample clock. So, the analog output will not actually begin until the analog input task starts. If you do it this way you should have a very similar start time for the two tasks.
To reference your other question, the time stamp on the "channel names" references when the record button is pressed and will be the name of the log. The "start times" is when the card actually starts acquiring or writing data. So, when you press the record button you will see a pop up window that lets you input what signals you want to record. As soon as you press the button to clear the window and start acquiring, the "start time" will be registered. That is why you see a discrepancy between the two.
04-17-2009 03:24 PM
Jordan F,
Thank you for the great explanation.
I tried setting my Clock Source = ai/SampleClock, but I did not see the option. Is this feature available on the USB 6221? My choices are PFI0..PFI15.
04-20-2009 09:21 AM
04-22-2009 04:54 PM
I tried deleting and re-adding the DAQmx Generate Task. Still no ai/Sample Clock to choose from.
Note I have recently upgraded to the full version of SignalExpress 3.0 from 2.51 LE.
04-23-2009 01:53 PM
04-23-2009 02:35 PM
Here is my project. I replaced my real USB-6221 with a simulated USB-6221.
Thanks
04-24-2009 01:47 PM
04-24-2009 01:56 PM
Jordan F, I am getting errors 200284 & 200292. Can you please send an example file?
04-27-2009 03:17 PM