Chapter 4
LabVIEW Real-Time Programming
©
National Instruments Corporation
4-7
cFP-21xx and cFP-BP-x User Manual
Use the
Application Path
and
Launch Application at Boot-up
settings to
automatically launch a built LabVIEW Real-Time application when you
start up the cFP-21
xx
. The LabVIEW Real-Time Engine launches the built
application specified by
Application Path
when you start up the cFP-21
xx
.
The specified path also determines the path and application name that
appear when you target LabVIEW Real-Time to the cFP-21
xx
and create an
embedded LabVIEW Real-Time application. Refer to the
Launching Embedded Applications at
sections for more information about embedding and launching
LabVIEW Real-Time applications on the cFP-21
xx
.
Select
Launch Application at Boot-up
to launch the application specified
in
Application Path
when you start up the cFP-21
xx
. You must first create
the application using the Application Builder before you select this option.
Refer to the
LabVIEW Application Builder Release Notes
and to the
LabVIEW Help
for more information about the Application Builder. Refer
to the
Embedding Applications on the cFP-21xx
section for more
information about creating LabVIEW Real-Time applications.
By changing the
Application Path
, you can create multiple
LabVIEW Real-Time applications on the cFP-21
xx
. However, if you
select
Launch Application at Boot-up
,
only the application you specify
in the
Application Path
launches at startup.
Use
Downloaded VI Path
to specify the default path for the Real-Time
Engine VIs downloaded by the Real-Time Development System. VIs are
stored on the host PC hard drive and are opened in the host Real-Time
Development System. Therefore, the Real-Time Engine does not know the
actual path of the downloaded VIs. The Real-Time Engine uses the path
specified in
Downloaded VI Path
for operations that require the VI path.
For example, the file constant
Current VI’s Path
normally returns the path
of the VI in which the constant is used. This constant may be used in a VI
that reads or writes data to a file on the disk. When you run this VI in the
LabVIEW Real-Time Engine on the cFP-21
xx
,
Current VI’s Path
returns
the path specified in the
Downloaded VI Path
option, appended with the
name of the VI.
Embedding Applications on the cFP-21
xx
LabVIEW Real-Time applications built on the host PC with the
Application Builder can be embedded on the cFP-21
xx
. This section
explains how to embed LabVIEW Real-Time applications on the cFP-21
xx
by using the Application Builder while LabVIEW Real-Time is targeted to
the controller.