Hello Everyone,
I'm writing this post for the sake of future reference and clarifying a
few confusing points touched on this thread. When working with
FieldPoint or Compact FieldPoint Network Controllers, targeting a
program to the controller is synonymous with embedding a program onto
that controller. In fact, if you target a network controller and
deploy a VI to it using the run button, you can disconnect your
development machine, your program will continue to run embedded on the
controller. Embedding, or targeting, a program to a [c]FP Network
Controller requires the LabVIEW Real-Time module. This module
allows you to target the IP address of the network controller, compiles
your program into an executable capable of running embedded on that
controller, and downloads the program to the controller's onboard
memory.
Without the LabVIEW Real-Time module, the only way to programmatically
interact with a [c]FP Network Controller is through the FieldPoint
Driver API, i.e. the FieldPoint Express VI or the FieldPoint Read/Write
VIs. These VIs allow you to 'subscribe' to the data being served
by the network controller. These methods use what is called a
FieldPoint IO Point, which is basically a network path to a specific
channel of data that your host machine can subscribe to. These
methods don't deploy or embed any actual programs to the network
controller. All of this can be done without the LabVIEW Real-Time
module, just using the FieldPoint driver and API.
The only way to access the serial ports a [c]FP-20xx Network Controller
is by embedding a program onto the controller, and in that program
accessing the onboard serial ports of the controller. Since
embedding, or targeting, a program to the controller requires the
LabVIEW Real-Time module, so does serial communication. The
easiest way to program serial communication is to use the NI-VISA
driver API. This requires that the NI-VISA driver be installed on
the [c]FP-20xx Network Controller, which can be done through
Measurement & Automation Explorer (MAX). Under 'Remote
Systems' in MAX, find your networked [c]FP-20xx and expand the software
category. By right-clicking on 'Software', you can easily
Add/Remove Software on the [c]FP-20xx. Make sure that the latest
version of the NI-VISA driver is installed on the network controller.
The cFP-2020 contains four onboard serial ports, three RS-232 and one
RS-484. There is a VISA alias associated with each port, from
COM1 through COM4. These ports also have a second VISA alias
titles 'ASRLx::INSTR' where the X is the COM number of the port.
Check the cFP-20xx and cFP-BP-x User Manual for more information about
each port. You can use either the Com names or the ASRL::INSTR
names to access the ports using the VISA Read and Write VIs. When
you target your program to the cFP-2020, your program runs embedded on
the controller and the COM port VISA accesses is local to that
controller.
I hope this clears things up and I apologize for the long-winded reply.
Regards,
Travis Gorkin
Applications Engineering
National Instruments
www.ni.com/support