Labview Vis And The Fp-20Xx - National Instruments FieldPoint FP-2000 User Manual

Hide thumbs Also See for FieldPoint FP-2000:
Table of Contents

Advertisement

LabVIEW VIs and the FP-20xx

Note
The strings provided to the VI must exactly match the names in FieldPoint Explorer,
including spaces and letter case.
You may use FP Advise in place of FP Read. However, it is best not to place anything
Note
else in a while loop with FP Advise. When using FP Advise, you can configure its timing
as an input to the VI. Also, do not put more than one FP Advise VI in a loop. All VIs in a
© National Instruments Corporation
modules. Click the IP address or host name of the network module and
browse to the desired data.
An alternative method is to use the
data.
When you install the FieldPoint software, a library of FieldPoint VIs is
created if LabVIEW has already been installed on your computer. The
FieldPoint VIs (FP Open, FP Get Configuration Info, FP Create Tag,
FP Advise, FP Read, FP Write, and FP Close) directly access the I/O Items
you configured in the FieldPoint Explorer program. For help using these
VIs, refer to the examples in
the FieldPoint LabVIEW Help, which is in the same program group as
FieldPoint Explorer on the Windows taskbar. You can use this same set
of VIs to access the FP-20xx from the host PC or to run an embedded
application. For more information about programming embedded
applications for the FP-20xx, refer to Chapter 5,
Programming.
A simple FieldPoint application to read an I/O Item might only need to use
four of the VIs. To create an example of such an application, complete the
following steps.
1.
Use FP Open to open the server. By default, the server opens with the
configuration file you last saved with FieldPoint Explorer.
2.
Use FP Create Tag to create a handle to an I/O Item that you defined
in FieldPoint Explorer. You provide three string names to this VI to
indicate which I/O Item you want access to. These three strings are
the names given to the communications resource, the device, and the
I/O Item.
3.
Use FP Read.vi to monitor an I/O Item. You should also add a delay
into the loop so that the loop operates at your desired rate. Otherwise,
it may load the processor at 100% and lock the software in the module.
To write to an Output Item, use FP Write instead of FP Read.
Chapter 3
fpoint.cbx
LabVIEW\examples\FieldPoint
3-17
Hardware and Software Configuration
to access the channel
LabVIEW RT
FP-2000/2010/2015 User Manual
or use

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fieldpoint fp-2015Fieldpoint fp-2010

Table of Contents