LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read serial port via compact field point controller

Hi everyone,
 
I am currently using Labview 7.1 and currently running RT target on a compact field point controller. I have some question about the serial port on the controller. Hope someone can help me with this because I have no experience in working with serial communication.
 
I purchased a pressure sensor that has only a serial connection and is designed to send data via the serial connection back to the PC and read it using its own program. I would like to make use of the serial connection on my cFP-2015 controller to read the data and save it to the computer.
 
I tried to use the "Basic Serial Write and Read.vi" and the "Advanced Serial Write and Read.vi" to read something off from the serial connection from my controller. Using all the default setting didn't seem to enable me to read anything from the controller (didn't seem to do anything).
 
Can somebody give me some suggestion of the best way to do this? All I need is to be able to log the data from the device into some sort of readable format. Many thanks in advance.
 
 
tak
 
0 Kudos
Message 1 of 3
(2,755 Views)
Hello Tak,
Most serial ports must be configured to the specific baud rate, data bits, termination characters and parity for the device you want to read from.  From the sounds of it, the default settings are not what your device requires.  You should check what requirements your device needs.  The program that comes with the device may perform some adjustments without exposing the settings to the user, so look in the user manual.  Then you can adjust these settings in the Serial programs you are trying to use.
 
I hope this helps, good luck with your application.
Regards,
Angela
Applications Engineer
0 Kudos
Message 2 of 3
(2,742 Views)

Hi Little A,

Thanks. I finally got it to work. It turns out that the device requires some special write format, and that's why it wasn't working before.

 

tak

0 Kudos
Message 3 of 3
(2,726 Views)