微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 测试测量 > 虚拟仪器 > [求助]信号采集的同步问题

[求助]信号采集的同步问题

时间:12-13 整理:3721RD 点击:
我用DAQPad6070E
在通道一输出信号的同时,通道二开始采集信号
就是说通道一和通道的输出和输入是同步的
如何做到很精确的同步?
我的程序总感觉之间相差一段时间。
谢谢!

精确同步比较难吧,不过你是不是用软件来同步阿?尝试用AO 用AI 的sample clock或者翻过来。

以下内容是从6070的manual里面直接拷来的.你们都不看manual的吗?
Can I synchronize a one-channel AI data acquisition with a
one-channel AO waveform generation on the DAQPad-6070E?
Yes. One way to synchronize is to use the waveform generation timing
pulses to control the AI data acquisition. To do this, follow steps 1
through 4, in addition to the usual steps for data acquisition and waveform
generation configuration:
1. Enable the PFI5 line for output, as follows:
• If you are using NI-DAQ, call Select_Signal
(deviceNumber, ND_PFI_5, ND_OUT_UPDATE,
ND_HIGH_TO_LOW).
• If you are using LabVIEW, invoke Route Signal VI with signal
name set to PFI5 and signal source set to AO Update.
2. Set up data acquisition timing so that the timing signal for
A/D conversion comes from PFI5, as follows:
• If you are using NI-DAQ, call Select_Signal
(deviceNumber, ND_IN_CONVERT, ND_PFI_5,
ND_HIGH_TO_LOW).
• If you are using LabVIEW, invoke AI Clock Config VI with clock
source code set to PFI pin, high to low, and clock source string
set to 5.
3. Initiate AI data acquisition, which starts only when the AO waveform
generation starts.
4. Initiate AO waveform generation.
.33

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top