How to setup analog trigger in daq

2 次查看(过去 30 天)
jon smith
jon smith 2012-9-18
I have a NI-6259. I want to use APFI0 as a trigger from a reference oscillator. I have tried all the examples I could find. But all I can get to work is a single self triggered channel on the AIx
So i have something like this:
ai = analoginput ('nidaq', 'Dev1');
ch1 = addchannel(ai, ch);
%tgr = addchannel(ai,'HwAnalogChannel');
ai.TriggerType = 'HwAnalogChannel';
ai.TriggerChannel = ch1;% this should be APFI0 but doesnt work
ai.TriggerCondition = 'AboveHighLevel';
ai.TriggerConditionValue = 0;
I am using NI-DAQmx 7.3 and Matlab 2011b
I am still looking for an answer to this...
  3 个评论
Andrew Scott-Mackie
Andrew Scott-Mackie 2012-10-26
I have the same problem. I am using a DAQ NI-6251 with matlab 7.9.0 (2009b) The driver was installed last year and at the time the latest version 7.4 I really need to use the dedicated trigger port APFI0, because if I use one of the measurement channel the trigger voltage bleeds over into my measurement channels. And no it is not a legacy interface
Walter Roberson
Walter Roberson 2012-10-26
R2009b only has what is now called the legacy interface, as compared to the newer session-based interface.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simultaneous and Synchronized Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by