启动计算机时自动打开并运行一个 VI
主要软件:
主要软件版本: 7.1
主要软件修正版本: N/A
次要软件: LabVIEW Development Systems>>LabVIEW Full Development System, LabVIEW Development Systems>>LabVIEW Full Development System
问题: 当我启动我的电脑时,我需要一个 VI 自动打开并开始运行,而不需要我手动打开 LabVIEW。
解答: 下列步骤可以在启动时自动运行一个 VI:
- 进入
C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe
- 在您的桌面上为这个 exe 创建一个快捷方式。
- 打开这个 exe 的属性并将目标从
C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe
改为 C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe - xyz.vi
,其中 xyz.vi 是您想要启动时运行的 VI。
- 拷贝这个 xyz.vi 到您 LabVIEW.exe 所在的 National Instruments 文件夹中。
- 打开 VI,进入 VI 属性。
- 在 "execution" 项目下,选中 "run when opened" 复选框。
- 进入程序框图,将 Functions>>All Functions>>Application Control>>Exit LabVIEW 下的 "Quit LabVIEW when stopped" 放到程序框图中。
- 保存 VI。
- 将您桌面上的 LabVIEW.exe 快捷方式拷贝到
C:\Documents and Settings\Desktop\Start Menu\Programs\Startup
中的 Startup Folder 上。
- 重新启动您的电脑。
相关链接:
附件:
报告日期: 06/22/2006
最近更新: 09/23/2007
文档编号: 3LLMRAN6
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.