How to setup analog trigger in daq

7 views (last 30 days)
jon smith
jon smith on 18 Sep 2012
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 Comments
Andrew Scott-Mackie
Andrew Scott-Mackie on 26 Oct 2012
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 on 26 Oct 2012
R2009b only has what is now called the legacy interface, as compared to the newer session-based interface.

Sign in to comment.

Answers (0)

Categories

Find more on Simultaneous and Synchronized Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!