資源簡介
用Matlab編寫的兩路數據采集程序,調用NI數據采集卡USB6009
代碼片段和文件信息
AI?=?analoginput(‘nidaq‘‘Dev2‘);
chan?=?addchannel(AI?[0?1]?);
duration?=?10;?%1?second?acquisition
set(AI‘SampleRate‘1000)
ActualRate?=?get(AI‘SampleRate‘);
set(AI‘SamplesPerTrigger‘duration*ActualRate)
set(AI‘TriggerType‘‘M
評論
共有 條評論