我现在正在用PCI6024E采集敲击音信号,4路采集,每路连续采集20000个采样点。由于敲击音信号不一定什么时候出现,想在输入电压大于一定值后再开始采集,请问有什么例程没有?能用trigger触发采集吗?还是用”大于等于Vi“?
Since you know there are DAQmx Trigger and Greater functions, have you given them a try?
DAQmx Trigger should be good enough 😉
如果用DAQmx Trigger做触发采集的话,我看在DAQmx Trigger VI的通道里没有AI端口,
(比如我想采集ai0的数据作为参考,大于一定值后开始采集)在硬件上需要把AI输入接口与PFI端口连接起来吗?
初次使用触发采集有点迷茫呵呵。
在DAQmx trigger(start analog edge)的help文件是这么说的:For E Series devices, if you use a channel name, the channel must be the first channel in the task. The only terminal you can use for E Series devices is PFI0.
这里source只能用PFI0是吧?我在硬件需要把ai0与PFI0连接起来吗?
谢谢了:)
Actually, that means you could set the trigger source as PFI0 or the first channel in your channel list.
You don't need to connect PFI0 and any AI channels.