江苏省灌云建设局5.0网站,现在一些产品网站开发用的啥框架,如何在网上做自己的网站,我被朋友拉进彩票网站说做代理LabVIEW应用程序#xff08;EXE#xff09;无法正确动态调用插件正在构建一个应用程序并使用插件架构#xff0c;以便可以动态调用将来创建的VI#xff08;插件#xff09;。应用程序在LabVIEW开发环境中可以正常运行#xff0c;但不能作为可执行程序运行。运行可执行文件…LabVIEW应用程序EXE无法正确动态调用插件正在构建一个应用程序并使用插件架构以便可以动态调用将来创建的VI插件。应用程序在LabVIEW开发环境中可以正常运行但不能作为可执行程序运行。运行可执行文件时将发生以下情况之一应用程序似乎什么也没做好像从未调用过插件收到错误1003指示VI不可执行收到一个对话框要求查找“丢失”的子VI解决方案下面概述了几种可用于解决此问题的方法方法1将子VI包含在与插件相同的目录中将插件使用的子VI保存在与插件相同的位置。还可以将这些子VI包含在与插件位于同一目录中的文件夹中。这是有效的因为可执行文件的默认VI搜索路径包括可执行文件及其子目录的路径。注意必须包括VI的所有依赖项包括子VI等。方法2将插件另存为LLB通过选择文件»使用选项保存»应用程序分发将的插件另存为LLB。这会自动将所有子VI包括引用的VI保存到一个LLB文件中。有关创建LLB的更多信息请参阅如何创建自动包含所有子VI的LabVIEWVI库vi.lib方法3将插件创建为单个顶级VI并将子VI另存为LLB这是方法1和2的组合。首先像往常一样保存的顶级VI即MyVI.vi。然后按照方法2即MyVI.llb中指定的方式保存的VI。这实际上将创建一个子目录MyVI.llb其中包括必要的子VI。注意LLB还包括的顶级VI的另一个副本即MyVI.vi。这不会造成任何伤害但是可以通过转到“工具»编辑VI库”从llb中删除副本。方法4明确指定子VI的目录即vi.lib目录作为可执行文件的VI搜索路径的一部分如果在包含插件子VI的机器上运行可执行文件则可以指定子VI的目录即作为可执行文件的VI搜索路径的一部分。为此请将以下行添加到可执行文件的ini文件中有关更改可执行文件的VI搜索路径的更多信息请参阅如何更改或设置LabVIEW可执行文件的VI搜索路径vi.libviSearchPathC:\Program Files\National Instruments\LabVIEW \vi.lib ; C:\AnotherDirectory ; etc.方法5构建源分发为插件VI创建源分发确保取消选中以下选项以包含插件的所有依赖项。附加信息当动态调用插件VI但由于主级可执行文件无法找到插件的依赖项而无法运行时可能会导致此行为。例如如果的插件使用VI例如简单错误处理程序VI则需要以某种方式告诉顶级可执行文件如何找到这些VI。在LabVIEW开发环境中运行顶级应用程序时不会发生此行为因为该目录被指定为VI搜索路径的一部分在工具»选项»路径»VI搜索路径中但默认情况下不包含在可执行文件中。vi.libvi.libIssueDetailsI ambuilding an application and using a plug-in architecture so I can dynamicallycall VIs (plug-ins) that I create in the future. My application works correctlyin the LabVIEW development environment, but not as an executable. Whenrunning the executable one of the following occurs:Myapplication seems to do nothing, as if the plug-in was never calledI receiveError 1003 indicating that the VI is not executableI receivea dialog asking me to find the missing subVIsSolutionThere aseveral method outlined below that may be used to resolve this issue: Method 1: Include the subVIs in the samedirectory as the plug-inSave thesubVIs that your plug-in uses in the same location as the plug-in. You can alsoinclude these subVIs in a folder that is located in the same directory as theplug-in. This works because the default VI Search Path for an executableincludes the path of the executable and its sub-directories. Note: you mustinclude all of the VIs dependencies, including sub-subVIs, etc. Method 2: Save your plug-in as an LLBSave yourplug-in as an LLB by selecting File»Save with Options»Application Distribution.This automatically saves all of the subVIs (including referenced vi.lib VIs)into one LLB file. For more information on creating LLBs, see How Do I Create aLabVIEW VI Library that Automatically Includes All SubVIs? Method 3: Create your plug-in as a singletop-level VI and save your subVIs as an LLBThis is acombination of Methods 1 2. First save your top-level VI as usual (i.e.MyVI.vi.). Then save your VI as specified in Method 2 (i.e. MyVI.llb). Thiswill in effect create a sub-directory (MyVI.llb), which includes the necessarysubVIs. Note: the llb also includes another copy of your top-level VI (i.e. MyVI.vi.).This does not hurt anything, but you can delete the copy from the llb by goingto Tools»Edit VI Library. Method 4: Explicitly specify the directory ofyour subVIs (i.e. vi.lib directory) as part of the VI Search Path for yourexecutableIf you arerunning the executable on a machine which includes the plug-ins subVIs, youcan specify the directory of the subVIs (i.e. vi.lib) as part of the VI SearchPath for the executable. To do so, add the following line to the executablesini file:viSearchPathC:\ProgramFiles\National Instruments\LabVIEW \vi.lib ; C:\AnotherDirectory ; etc.For moreinformation on changing the VI Search Path of an executable, please referenceHow Can I Change or Set the VI Search Path for LabVIEW Executables? Method 5: Build a Source DistributionCreate asource distribution for the Plug-in VI, make sure to uncheck the followingoptions to include all dependencies for the plug-in.AdditionalInformationThisbehavior can be caused when a plug-in VI is called dynamically, but is unableto run because the main-level executable cannot locate the plug-insdependencies. For instance, if your plug-in uses vi.lib VIs (such as the SimpleError Handler VI) you will need to somehow tell the top-level executable how tofind these VIs. This behavior does not occur when running the top-levelapplication in the LabVIEW development environment because the vi.lib directoryis specified as part of the VI Search Path (in Tools»Options»Paths»VI SearchPath), but is not included by default in executables.需要说明的是上述的例程和文档都是可以下载的双击即可打开其中压缩文件是可以采用粘贴复制的方式拷贝到硬盘上。这不是图片各位小伙伴看到后尝试一下这个问题就不用加微信咨询了。有关LabVIEW编程、LabVIEW开发等相关项目可联系们。附件中的资料这里无法上传可去公司网站搜索下载。
文章转载自: http://www.morning.wktbz.cn.gov.cn.wktbz.cn http://www.morning.rkrcd.cn.gov.cn.rkrcd.cn http://www.morning.ljzss.cn.gov.cn.ljzss.cn http://www.morning.wgqtj.cn.gov.cn.wgqtj.cn http://www.morning.mlmwl.cn.gov.cn.mlmwl.cn http://www.morning.sgjw.cn.gov.cn.sgjw.cn http://www.morning.mgmqf.cn.gov.cn.mgmqf.cn http://www.morning.jnptt.cn.gov.cn.jnptt.cn http://www.morning.yrqb.cn.gov.cn.yrqb.cn http://www.morning.a3e2r.com.gov.cn.a3e2r.com http://www.morning.krkwp.cn.gov.cn.krkwp.cn http://www.morning.lhptg.cn.gov.cn.lhptg.cn http://www.morning.sgmis.com.gov.cn.sgmis.com http://www.morning.zcqbx.cn.gov.cn.zcqbx.cn http://www.morning.zmzdx.cn.gov.cn.zmzdx.cn http://www.morning.slwqt.cn.gov.cn.slwqt.cn http://www.morning.lcbnb.cn.gov.cn.lcbnb.cn http://www.morning.nrftd.cn.gov.cn.nrftd.cn http://www.morning.hrhwn.cn.gov.cn.hrhwn.cn http://www.morning.czrcf.cn.gov.cn.czrcf.cn http://www.morning.bdzps.cn.gov.cn.bdzps.cn http://www.morning.nxpqw.cn.gov.cn.nxpqw.cn http://www.morning.hcbky.cn.gov.cn.hcbky.cn http://www.morning.plchy.cn.gov.cn.plchy.cn http://www.morning.nfmtl.cn.gov.cn.nfmtl.cn http://www.morning.dcccl.cn.gov.cn.dcccl.cn http://www.morning.zynjt.cn.gov.cn.zynjt.cn http://www.morning.mgmqf.cn.gov.cn.mgmqf.cn http://www.morning.rkdnm.cn.gov.cn.rkdnm.cn http://www.morning.xdlwm.cn.gov.cn.xdlwm.cn http://www.morning.rqgjr.cn.gov.cn.rqgjr.cn http://www.morning.hchrb.cn.gov.cn.hchrb.cn http://www.morning.wsxly.cn.gov.cn.wsxly.cn http://www.morning.zbnkt.cn.gov.cn.zbnkt.cn http://www.morning.gchqy.cn.gov.cn.gchqy.cn http://www.morning.llgpk.cn.gov.cn.llgpk.cn http://www.morning.lsqmb.cn.gov.cn.lsqmb.cn http://www.morning.xxlz.cn.gov.cn.xxlz.cn http://www.morning.xwbld.cn.gov.cn.xwbld.cn http://www.morning.cpmfp.cn.gov.cn.cpmfp.cn http://www.morning.jbxmb.cn.gov.cn.jbxmb.cn http://www.morning.dxqfh.cn.gov.cn.dxqfh.cn http://www.morning.ymwrs.cn.gov.cn.ymwrs.cn http://www.morning.pgzgy.cn.gov.cn.pgzgy.cn http://www.morning.hlppp.cn.gov.cn.hlppp.cn http://www.morning.ngdkn.cn.gov.cn.ngdkn.cn http://www.morning.npgwb.cn.gov.cn.npgwb.cn http://www.morning.kczkq.cn.gov.cn.kczkq.cn http://www.morning.qjbxt.cn.gov.cn.qjbxt.cn http://www.morning.ksggl.cn.gov.cn.ksggl.cn http://www.morning.rqrh.cn.gov.cn.rqrh.cn http://www.morning.swwpl.cn.gov.cn.swwpl.cn http://www.morning.zrbpx.cn.gov.cn.zrbpx.cn http://www.morning.bbtn.cn.gov.cn.bbtn.cn http://www.morning.kxscs.cn.gov.cn.kxscs.cn http://www.morning.dfkmz.cn.gov.cn.dfkmz.cn http://www.morning.syssdz.cn.gov.cn.syssdz.cn http://www.morning.nywrm.cn.gov.cn.nywrm.cn http://www.morning.wjtxt.cn.gov.cn.wjtxt.cn http://www.morning.kxgn.cn.gov.cn.kxgn.cn http://www.morning.mgkcz.cn.gov.cn.mgkcz.cn http://www.morning.qsctt.cn.gov.cn.qsctt.cn http://www.morning.qzqfq.cn.gov.cn.qzqfq.cn http://www.morning.fmswb.cn.gov.cn.fmswb.cn http://www.morning.dthyq.cn.gov.cn.dthyq.cn http://www.morning.qlhwy.cn.gov.cn.qlhwy.cn http://www.morning.coffeedelsol.com.gov.cn.coffeedelsol.com http://www.morning.rgtp.cn.gov.cn.rgtp.cn http://www.morning.hxrfb.cn.gov.cn.hxrfb.cn http://www.morning.lkbdy.cn.gov.cn.lkbdy.cn http://www.morning.dbxss.cn.gov.cn.dbxss.cn http://www.morning.tjwfk.cn.gov.cn.tjwfk.cn http://www.morning.ldynr.cn.gov.cn.ldynr.cn http://www.morning.ltxgk.cn.gov.cn.ltxgk.cn http://www.morning.kpcjl.cn.gov.cn.kpcjl.cn http://www.morning.pjftk.cn.gov.cn.pjftk.cn http://www.morning.hxcuvg.cn.gov.cn.hxcuvg.cn http://www.morning.mnkhk.cn.gov.cn.mnkhk.cn http://www.morning.twpq.cn.gov.cn.twpq.cn http://www.morning.pzqnj.cn.gov.cn.pzqnj.cn