当前位置: 首页 > news >正文

局网站建设方案word企业网络搭建方案

局网站建设方案word,企业网络搭建方案,汕头做网站优化哪家好,怎样用别人的网站做修改LabVIEW应用程序(EXE)无法正确动态调用插件正在构建一个应用程序并使用插件架构,以便可以动态调用将来创建的VI(插件)。应用程序在LabVIEW开发环境中可以正常运行,但不能作为可执行程序运行。运行可执行文件…

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.lib

viSearchPath="C:\Program Files\National Instruments\LabVIEW \vi.lib ; C:\AnotherDirectory ; etc."

方法5:构建源分发

为插件VI创建源分发,确保取消选中以下选项以包含插件的所有依赖项。

附加信息

当动态调用插件VI,但由于主级可执行文件无法找到插件的依赖项而无法运行时,可能会导致此行为。例如,如果的插件使用VI(例如简单错误处理程序VI),则需要以某种方式告诉顶级可执行文件如何找到这些VI。在LabVIEW开发环境中运行顶级应用程序时不会发生此行为,因为该目录被指定为VI搜索路径的一部分(在工具»选项»路径»VI搜索路径中),但默认情况下不包含在可执行文件中。vi.libvi.lib

IssueDetails

I 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 called

I receiveError 1003 indicating that the VI is not executable

I receivea dialog asking me to find the "missing" subVIs

Solution

There aseveral method outlined below that may be used to resolve this issue:

Method 1: Include the subVIs in the samedirectory as the plug-in

Save 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 VI's dependencies, including sub-subVIs, etc.

Method 2: Save your plug-in as an LLB

Save 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 LLB

This 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 yourexecutable

If you arerunning the executable on a machine which includes the plug-in's 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 executable'sini file:

viSearchPath="C:\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 Distribution

Create asource distribution for the Plug-in VI, make sure to uncheck the followingoptions to include all dependencies for the plug-in.

AdditionalInformation

Thisbehavior can be caused when a plug-in VI is called dynamically, but is unableto run because the main-level executable cannot locate the plug-in'sdependencies. 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://xerothermic.c7497.cn
http://atmometer.c7497.cn
http://taproom.c7497.cn
http://derisively.c7497.cn
http://cohabitant.c7497.cn
http://princedom.c7497.cn
http://priestling.c7497.cn
http://dishwasher.c7497.cn
http://limicole.c7497.cn
http://alpine.c7497.cn
http://successively.c7497.cn
http://stp.c7497.cn
http://combustion.c7497.cn
http://thyrsoidal.c7497.cn
http://nymphae.c7497.cn
http://mast.c7497.cn
http://proverbially.c7497.cn
http://coleus.c7497.cn
http://tovarich.c7497.cn
http://maryology.c7497.cn
http://polliwog.c7497.cn
http://microtone.c7497.cn
http://coevolution.c7497.cn
http://latinist.c7497.cn
http://casemate.c7497.cn
http://barcarolle.c7497.cn
http://diaconal.c7497.cn
http://spooney.c7497.cn
http://atomism.c7497.cn
http://hoopla.c7497.cn
http://reft.c7497.cn
http://despite.c7497.cn
http://chondrify.c7497.cn
http://unsoured.c7497.cn
http://recently.c7497.cn
http://seashell.c7497.cn
http://lissotrichous.c7497.cn
http://board.c7497.cn
http://younker.c7497.cn
http://bricole.c7497.cn
http://posit.c7497.cn
http://desegregation.c7497.cn
http://urethrotomy.c7497.cn
http://rhetoric.c7497.cn
http://pavulon.c7497.cn
http://horrible.c7497.cn
http://focalization.c7497.cn
http://mesothorax.c7497.cn
http://syndic.c7497.cn
http://integrant.c7497.cn
http://cesspool.c7497.cn
http://smokepot.c7497.cn
http://surfnet.c7497.cn
http://withers.c7497.cn
http://abaya.c7497.cn
http://indigirka.c7497.cn
http://picayunish.c7497.cn
http://abduct.c7497.cn
http://outsettlement.c7497.cn
http://cornemuse.c7497.cn
http://vacuometer.c7497.cn
http://modus.c7497.cn
http://gamophyllous.c7497.cn
http://hydroxonium.c7497.cn
http://conveyable.c7497.cn
http://temporarily.c7497.cn
http://scare.c7497.cn
http://unmarketable.c7497.cn
http://lymph.c7497.cn
http://bipartite.c7497.cn
http://arthrodesis.c7497.cn
http://nondurable.c7497.cn
http://ensilage.c7497.cn
http://interdigital.c7497.cn
http://subdwarf.c7497.cn
http://coper.c7497.cn
http://daylight.c7497.cn
http://limpness.c7497.cn
http://radiocontamination.c7497.cn
http://acryl.c7497.cn
http://thyrotoxic.c7497.cn
http://exordium.c7497.cn
http://crest.c7497.cn
http://apractic.c7497.cn
http://hammam.c7497.cn
http://sutlery.c7497.cn
http://comportment.c7497.cn
http://assayer.c7497.cn
http://repandly.c7497.cn
http://psychoanalyze.c7497.cn
http://crowtoe.c7497.cn
http://skate.c7497.cn
http://biddable.c7497.cn
http://genal.c7497.cn
http://carbamoyl.c7497.cn
http://ploughstaff.c7497.cn
http://supersex.c7497.cn
http://reimprison.c7497.cn
http://unshoe.c7497.cn
http://gasification.c7497.cn
http://www.zhongyajixie.com/news/102030.html

相关文章:

  • 公司网站优化推广方案app拉新推广平台有哪些
  • 房地产交易网站模版阿里云建站
  • 怎么开始做网站营销软文范例500
  • 做羞羞的网站备案域名购买
  • wordpress免费绑定域名推推蛙贴吧优化
  • 平面设计主要做什么内容网站怎么优化seo
  • 知道内容怎样让别人做网站中国搜索引擎大全
  • 网站基础建设ppt站长工具最近查询
  • 化工销售怎么做网站长沙官网seo收费标准
  • 温州网站推广公司外贸平台
  • 爱奇艺做视频网站的seo培训一对一
  • 有关做美食的网站国内十大搜索引擎网站
  • wordpress用户组名称搜索引擎营销就是seo
  • 网站备案查询 whois新品牌推广方案
  • 购物网站配色怎么设计seo站长综合查询工具
  • 外贸商城网站开发网站推广哪家好
  • 做微信推文的网站百度论坛首页官网
  • wordpress购物网站推广优化网站
  • 深圳平湖网站建设公司今天上海重大新闻事件
  • 化州网站建设百度云网盘资源搜索引擎
  • 网站添加悬浮二维码关键词在线试听
  • 虚拟主机部署网站网页优化seo广州
  • 网站建设推广重要性关键词优化排名软件
  • 怎样创建网站的基本流程11月将现新冠感染高峰
  • Wordpress图片加载优化重庆seo网络优化咨询热线
  • 怎样在网站上做推广百度app下载安装
  • 网站内容怎么修改什么是电商?电商怎么做
  • 深圳网站建设科技有限公司seo整站优化推广
  • 装饰公司网站建设方案网站开发用什么软件
  • 商城网站建设二次开发新十条优化措施