完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
项目原因需要先从labview的图纸里面导出dll。现在遇到这样一个问题:有一个labview工程,其中一个vi的程序框图引用了附加工具包:[sound and vibration toolkit],这个工具包我也已经安装了,可以使用labview查看vi的完整程序框图,但是导出成.net dll之后,使用C#编写调用labview导出的dll的函数程序,编译通过,但是在运行的时候出异常:NationalInstruments.LabView.Interop.VIAssemblyException:Missing Dependency in:Sub VItimebase.vi:库未找到或无法加载:sndvib.dll
从异常提示看应该是函数执行时发现缺少labview的某个vi或者缺少sndvib.dll 库,但是不管我把sndvib.dll 放在那里都还是同样的异常,我试过导出其他不引用附加工具包的vi成dll就不存在这个问题,请问做过这方面开发的朋友指点迷津,谢谢! ------------------------------- 调试跟踪: “InteropAssembly.LvClient”的类型初始值设定项引发异常。 在 InteropAssembly.LabVIEWExports.timebase___45orbit(DoubleWaveform analog__32tacho__32signal, DoubleWaveform[] waveform__32in, 通道选择[] 通道信息, UInt16 slope__32__40Rising__41, Orbit__32plot__322[,]& timebase__32plot, Orbit__32plot__322[,]& orbit__32plot, Speed__32profile& speed__32profile) 在 LabView_UnitTestProject.UnitTest1.TestMethod1() 位置 C:UsersMarssourcereposLabView_UnitTestProjectLabView_UnitTestProjectUnitTest1.cs:行号 37 InteropAssembly System.Collections.ListDictionaryInternal System.IO.FileNotFoundException: Missing Dependency in: Sub VItimebase-orbit.vi: 库未找到或无法加载: sndvib.dll ---> NationalInstruments.LabVIEW.Interop.VIAssemblyException: Missing Dependency in: Sub VItimebase-orbit.vi: 库未找到或无法加载: sndvib.dll 在 NationalInstruments.LabVIEW.Interop.LVRuntime.throwMissingDependencyException() 在 NationalInstruments.LabVIEW.Interop.LVRuntime.LVClientInit(ClientKind clientKind, IntPtr initRec) 在 NationalInstruments.LabVIEW.Interop.LVRuntime..ctor(String[] entryPointNames, String lvClientAssemblyPath, String lvRuntimeVersion, Boolean enableLoadLatestCompatibleRTE) 在 InteropAssembly.LvClient..cctor() |
|
相关推荐
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
946 浏览 1 评论
Labview在生成安装文件的时候,提示“在本计算机上找不到已选定的某些安装程序”
1137 浏览 1 评论
1298 浏览 1 评论
2285 浏览 2 评论
3412 浏览 5 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-18 16:04 , Processed in 0.468299 second(s), Total 37, Slave 30 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号