在TestStand中调用LabWindows™/CVI™创建的DLL时出现错误码-10240



主要软件: LabWindows/CVI Development Systems>>LabWindows/CVI Full Development System
主要软件版本: 2012
主要软件修正版本: N/A
次要软件: LabWindows/CVI Development Systems>>LabWindows/CVI Full Development System

问题:

我使用TestStand中调用LabWindows/CVI创建的DLL,当我在LabWindows/CVI的环境中运行代码时,代码功能正常。但是当我在TestStand中调用这些代码时,我收到错误码-10240并称

The driver interface could not locate or open the driver

我应该怎样修复这个问题?



解答:

这个错误的出现是因为LabWindows/CVI中支持的库函数并没有被载入到TestStand中。为了载入这些库函数,按照以下步骤操作:

1. 在菜单栏中点击Configure
2. 在下拉菜单中选择Adapters...
3. 确认LabWindows/CVI被Selected
4.点击Configure...
5. 点击Configure Auto-Loading of Support Libraries Needed for Linking .objs and .libs.
6. 从弹出的对话框中点击OK
7.点击Add Default CVI Libraries.
如果你有多种LabWindows/CVI 版本,确认选择的是生成DLL的那个版本。如果你需要添加其它的.libs或者.objs,你同样可以通过点击Add Other Libraries选择这些。
当你完成后,点击Done»OK»Done


相关链接: KnowledgeBase 1TGD60DM: Error -10240 When Trying to Run Visual C++ Examples with the NI 435x Boards


附件:





报告日期: 12/04/2012
最近更新: 03/04/2013
文档编号: 64385SEQ