10-17-2011 04:00 PM
I got the data from ni-9263 and ni-9201 in my vi.I found them started to acquire data in diffrent time.How can I control them start to acquire in the same time.
10-17-2011 04:14 PM
You are only acquiring a single channel with the 9201. You can add the output of the 9263.
10-17-2011 04:30 PM
Really?Do you see the same vi?I think I acquire the data in 9263 as well.Maybe I misunderstand your meaning.
10-17-2011 09:02 PM
10-18-2011 12:01 PM
10-18-2011 12:32 PM
Then I think you should look at the example called Multi-Function-Synch AI-AO.
10-18-2011 02:15 PM
I try to use the trigger like the example.But,I still get the different time record in two files.Could you tell me what's wrong with my vi?
Thanks
10-18-2011 04:11 PM
Hi Yun_Zhu,
The AI channel is handling the triggering, so you want to start the AO channel before so that it’s ready for the AO trigger.
You’ve got the sharing clock and sharing trigger. What you need to do is make sure that your trigger doesn’t start on your AI channel before your AO channel is ready to accept that trigger.
If you look at the example that Dennis mentions, you can see the error clusters being merged together before the start of the AI channel. This merging is on purpose to control the data flow and force the AO channel to be ready to catch the start trigger before the AI channel can trigger the start trigger.
Regards,
Michael M
NI Americas | AE
NI.com/support | 1866-275-6964
10-18-2011 04:18 PM
Your expectations are wrong. You are generating a waveform in software that has some start time and x number of samples and then at some random time later, you are acquiring a signal with it's own timestamp and a different number of samples. The triggering in the example will assure that the generation will occur at the same time as the acquisition. Your code only does one read. In any case, the synchronization has nothing at all to do with your time records. If synching the output with the input is your true goal, run the example and see if that is happening. If it is, either ignore the start timestamps, modify one to match the other, or actually acquire the output signal instead of just reading it from the array you create.
10-19-2011 03:26 PM
Thank you Dennis and Michael,
I changed my vi.The results are:the started time of them are exactly same and the wavegraph seems like synchronization.But,why the data recorded in file are not nearly same?
You told me"In any case, the synchronization has nothing at all to do with your time records".You mean the data in record were not the data when trigger took place?