[問題] 關於advantech擷取卡與matlab的一些問題已回收

看板MATLAB作者 (gg)時間15年前 (2010/08/11 10:50), 編輯推噓3(306)
留言9則, 3人參與, 最新討論串1/3 (看更多)
首先感謝先前問類似問題時,zzs大和wave大大熱心解答,我後來有找到 instrument tool box 我後來把驅動程式重新安裝之後,輸入指令>>ans.InstalledAdaptors 結果出現???Reference to non-existent field'InstalledAdaptors' 先前還沒有把驅動重新安裝時會出現'advantech',請問這是沒有讀到這張卡的意思嗎? 後來我又試了一個指令>>ai=analog('advantech','0') 結果如下 Display Summary of Analog Input (AI) Object Using 'PCI-1712 (Device 0)'. 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. 這樣是有找到這張卡的意思嗎??? 我又輸入了指令>>daqhwinfo(ai) 結果如下 AdaptorName: 'advantech' Bits: 12 Coupling: {'DC Coupled'} DeviceName: 'PCI-1712 (Device 0)' DifferentialIDs: [] Gains: [0.5000 1 2 4 8] ID: '0' InputRanges: [9x2 double] MaxSampleRate: 1000000 MinSampleRate: 154 NativeDataType: 'uint16' Polarity: {'Unipolar' 'Bipolar'} SampleType: 'Scanning' SingleEndedIDs: [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15] SubsystemType: 'AnalogInput' TotalChannels: 16 VendorDriverDescription: 'ads1712.dll' VendorDriverVersion: 'Ver 1.0' 為什麼剛才上一個指令Acquisition Parameters: 1000 samples per second on each channel. 1000 samples per trigger on each channel. 取樣頻率只能1000 我的卡片不是可以到1M 的取樣數嗎??? 請知道的大大煩請幫我解答一下,謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.26.129

08/11 14:30, , 1F
絕對有找到! MaxSampleRate: 1000000 是1M沒錯
08/11 14:30, 1F

08/11 21:11, , 2F
那想請問一下wave大,為啥他寫sampling rate為1000?
08/11 21:11, 2F

08/11 21:12, , 3F
他有辦法做調整嗎???
08/11 21:12, 3F

08/12 00:38, , 4F
我看了該卡的說明書 but I don't know why !!
08/12 00:38, 4F

08/12 02:47, , 5F
試試 set(ai,'SampleRate',1000000)
08/12 02:47, 5F

08/12 02:48, , 6F
手邊沒東西可以測試 不知道那個properties的名字是什麼
08/12 02:48, 6F

08/12 02:48, , 7F
如果不Work的話請試著找看看 總之function就是set
08/12 02:48, 7F

08/12 04:35, , 8F
對阿 這就是難的地方 沒卡能測 !
08/12 04:35, 8F

08/12 04:36, , 9F
但是 他想問的是 為何說明書寫1000/channel 但宣稱1M
08/12 04:36, 9F
文章代碼(AID): #1COW_rcG (MATLAB)
文章代碼(AID): #1COW_rcG (MATLAB)