控制仪表连接时报错:System.Runtime.InteropServices.COMException(0X80040011):HRSULT=80040011
在lvi.Visa.Interop.ResourceManagerClass.Open(String ResourceName,AccessMode mode,Int32 Open Timeout,String OptionString)
方案一:安装IOLibSuite_18_2_27313.exe。如果已安装,仍不行,此时应该是iprocsvr.exe程序异常缺少vcruntime140_1.dll。解决vcruntime140_1.dll缺失问题即可,见https://blog.csdn.net/sheng12345678rui/article/details/130472641
方案二:Microsoft Visual studio 右键解决方案项目打开属性--生成:在目标平台选择x86或者选择Any CPU,如果选择后者则需要勾选<首选32位(P)>