06-05-2006 02:37 PM
06-06-2006 04:09 PM
Hello Tak,
In order for a LabVIEW application to access the serial port on the FieldPoint
controller, the vi must be running on the FieldPoint controller. This
means targeting the controller, as you have already tried. You can find
more information on this here.
If you want to read data on your FieldPoint controller through RS-232 and record it on your PC, you could read in the data with an embedded
VI and send it back to another VI running on your computer. This could be
done by using TCP or DataSocket.
There are many examples in NI Example finder for both TCP and DataSocket
communication.
Regards,
Jesse O.
Applications Engineering
National Instruments
06-06-2006 09:22 PM
06-07-2006 01:02 PM
Tak,
When writing data to the FieldPoint controller it should allow you to append to
a file instead of just overwriting it. You do not mention how you are writing
the file, but based on what you described, I assume that you are using the
LabVIEW Write Measurement File Express VI. This VI by default will save
to the LabVIEW Data folder on the controller. I have tested this, and I
was able to write several iterations to the file and append correctly. I
would verify that when you target your controller that the file settings are correct.
You might want to change some of the settings, perhaps the filename, to insure
that your program is updating the values when operating on the controller.
If you are using the Express VI to write your data please make sure that under
the 'If file already exists?' that ‘Append to file’ is selected. You
might want to set the header option to 'One header only'.
If this does not work for you, you can always try using the file I/O options
under the File I/O palette. There are examples in example finder that
show how to use these
Regards,
Jesse O.
Applications Engineering
National Instruments
06-08-2006 07:56 AM
Hi Jesse,
Thanks for the clarification. I will double check my program. Thanks for your suggestions.
tak