Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated

Can I Set a VI to Download But Not Run When My Real-Time Target Boots?



Primary Software: LabVIEW Modules>>LabVIEW Real-Time Module
Primary Software Version: 2009 SP1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have a networked real-time target controller, and I want a VI to be loaded into memory on boot up. I do not want it to actually begin running on boot because I am going to start it from a VI on my host computer through VI Server. Is this possible?

Solution:
Yes, this is possible with the help of the application builder. The steps are very similar to the method documented in the LabVIEW Real-Time Module Help: Building and Deploying a Stand-Alone Real-Time Application (Real-Time Module) which explains how to set the startup executable to launch at boot.

The difference is that, by default, when you build an executable, the top-level VI is set to run when opened. While targeted to your real-time controller and building your startup.exe, you must do the following:

After adding your VI as the top-level VI for the build, switch to the Source File Settings tab.Select  your top-level VI in the list (they are in alphabetical order) and select Customize VI Properties.



The VI Properties Dialog box will populate and in the Execution section, you will see a Run when opened option. If you want to disable this option, click the checkbox under Use VI Property and then deselect the Run when opened option.


Click OK. Now Build the executable and when you deploy your code, the startup executable will just load and not begin executing.

Related Links:
LabVIEW Real-Time Module Help: Building and Deploying a Stand-Alone Real-Time Application (Real-Time Module)

Attachments:





Report Date: 11/25/2002
Last Updated: 03/01/2017
Document ID: 2ROFIHEW

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit