Archived: 當在Windows控制NI-DAQ 產生不尋常的錯誤訊息

This document has been archived and is no longer updated by National Instruments



主要軟體:
主要軟體版本: 6.9.3
主要軟體修正版本: N/A
次要軟體: Driver Software>>NI-DAQmx

問題: 我收到以下錯誤情況:

當用VB或VC++使用NI-DAQ函數時,出現以下情形:
1.nidaq32.dll 或 nipalu.dll無法載入或初始化錯誤
2."First Chance Exception" 在nipalu.dll容易出現的錯誤
3."Error 48 file not found : nidaq32.dll"
4."Error 10459 - Interface Error"

當使用ComponentWorks時
1.當使用ComponentWorks時,DAQ卡可以在MAX看到,但無法在Component DAQ控制元件中找到
2."Run-time error '-2147417848 (80010108)'"跟Component DAQ呼叫NI-DAQ有關

當使用Windows的事件檢視器
1.[nipalu] Info: Fixed shared memory disabled in process: 00000E20. global shared memory address: 21400000, local shared memory address: 035F0000, global nipalu location: 64009040, local nipalu location: 64009040.

解答: 注意:ComponentWorks 是一個較早期的產品且已被Measurement Studio取代,更多資訊,請參考 NI Measurement Studio for Legacy Environments/Languages ,針對Measurement Studio,請參考Measurement Studio product page.

當有多個應用程式使用NI-DAQ 6.x (或 7.x Traditional)時,可能會造成某個應用程式無法取得必需的資源。

首先建議是使用NI-DAQmx驅動程式即不會有此問題,可參照Drivers and Updates: Current Versions. 要知道更多有關DAQmx,請參考 http://www.ni.com ,在右上方搜尋關鍵字打 "NI-DAQmx". 請注意,目前ComponentWorks DAQ control目前並不支援DAQmx。

相反的,若試著解決NI-DAQ 6.x (或 7.x Traditional),請依下面的步驟一個個試,試到可以為止,若不行則往下一步試,

  1. 關掉所有在用NI-DAQ的程式 (包含 MAX, LabVIEW, Measurement Studio, Visual Studio). 試著開您會出現錯誤訊息的程式.
  2. 更新最新版本 Traditional NI-DAQ (Legacy) 7.4.4.
  3. 更新其它National Instruments在目的電腦的驅動程式.
  4. 下載palBase utility在下面的附件當中, C:\WINDOWS for Windows 95, 98, ME, 或 C:\WINNT for Windows NT4 或 2000. palBase utility 允許你可以微調NI-DAQ 取得系統資源,靠更改驅動程式及registry.
  5. 檢查在Windows的事件檢視器(Control Panel >> Administrative Tools >> Event Viewer >> Application) 是否有出現以下錯誤訊息:[nipalu] Info: Fixed shared memory disabled in process: 00000E20. global shared memory address: 21400000, local shared memory address: 035F0000, global nipalu location: 64009040, local nipalu location: 64009040.

    執行palBase需用DOS指令:

      a. 到Start 開始執行.
      b. 輸入command 按 Enter.
      c. 如果你發現在事件檢視器有出現錯誤訊息,我們會使用palBase使用的參數做調整,如果沒有,則照著以下步驟嘗試。在事件檢視器下,使用" global nipalu location"    最後四位數歸零加上參數"-b",使用"global shared memory address"加上參數"-s"
      d. 在DOS視窗中下palBase -b 64000000 -s 44000000 按Enter.
      e. 重開機,再試一次你要跑的程式,如果問題已解決,你可以把palBase utility砍掉.


  6. 重覆第四及第五步驟,下指令, type palBase -b 44800000 -s 45800000
  7. 重覆第四及第五步驟,下指令, type palBase -b 32800000 -s 36800000 -d 18400000
  8. 重覆第四及第五步驟,下指令, type palBase -b 33400000 -s 35400000 -d 34400000

如果還是不行,或是palBase出現錯誤訊息,請與 National Instruments Technical Suppor連絡

若是想回到系統初始值,請在命令提示字元打 palBase -b 64000000 -s 0 -d 21000000(如上述步驟4)並按Enter.

相關連結: Products and Services:  NI-DAQmx and NI-DAQ Driver Support: Main Page
Knowledge Base 3PIA89N5:  NI-DAQ & LabVIEW Version Compatibility (for Windows)


附加檔案:
palBase.exe




報告日期: 10/02/2002
最後更新: 03/03/2013
文件偏號: 2Q1HG8A6