Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: synchronizing multiple daq boards
Date: Tue, 19 Aug 2008 14:37:01 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 37
Message-ID: <g8elqd$caa$1@fred.mathworks.com>
References: <g6bl9e$45$1@fred.mathworks.com> <g6ch26$9rn$1@fred.mathworks.com> <g6cl43$2b4$1@fred.mathworks.com> <g6cm45$fuk$1@fred.mathworks.com> <g6d4s4$7lv$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219156621 12618 172.30.248.37 (19 Aug 2008 14:37:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 19 Aug 2008 14:37:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 796075
Xref: news.mathworks.com comp.soft-sys.matlab:486244



Hi SJ,

The error you're getting about External being ambiguous is
correct. The USB-6251 has several ClockSource values that
begin with External and you have to continue the word with
the one you want. Notice the legal values for the
ConstraintValue of the ClockSource property below.

>> ai = analoginput('nidaq','Dev2')
Display Summary of Analog Input (AI) Object Using 'USB-6251'.
  Acquisition Parameters:  1000 samples per second on each
channel.
                           1000 samples per trigger on each
channel.
                           1 sec. of data to be logged upon
START.
                           Log data to 'Memory' on trigger.
      Trigger Parameters:  1 'Immediate' trigger(s) on START.
           Engine status:  Waiting for START.
                           0 samples acquired since starting.
                           0 samples available for GETDATA.
AI object contains no channels.
>> propinfo(ai,'ClockSource')
ans = 
               Type: 'string'
         Constraint: 'enum'
    ConstraintValue: {'Internal'  'ExternalScanCtrl' 
'ExternalSampleCtrl'  'ExternalSampleAndScanCtrl'}
       DefaultValue: 'Internal'
           ReadOnly: 'whileRunning'
     DeviceSpecific: 0

The documentation explains each of the values.

Hope this helps.
Sherryl