[問題] 擷取2個channel的資料,該如何修改此程式
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Visual C++ 2010
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
無法擷取到2個channel的資料
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
擷取1個channel的資料程式碼 http://codepad.org/CBt1lX1b
擷取2個channel的資料程式碼 http://codepad.org/1wOvU2Ej
補充說明(Supplement):
擷取1個channel資料的程式碼可以順利執行,
現在我想要同時擷取2個channel的資料,
在主程式,我有多增加一個taskHandle
但是卻無法讀到資料
還是說副程式的部分也要修改呢?
程式執行後,畫面出現的訊息如下
DAQmx Error : NI Platform Services : The specified resource is reserved .
The operation could not be completed as specified.
Task Name :_unnamedTask<1>
Status Code: - 50103
End of program, press Enter key to quit
麻煩各位高手們幫幫忙了
小弟感激不盡~ 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.36.242
※ 編輯: kim9001430 來自: 140.116.36.242 (11/04 15:41)
→
11/04 22:52, , 1F
11/04 22:52, 1F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章