09-09-2010 06:07 AM
Hi-everyone.
I am using optoNCDT 1401 as a displacement sensor, which give digital optput from 40 to 4055 with RS232 interface.
Bit rate: 38400 Data bits: 8
Parity: none; One Start/Stopbit
Line length: 10 m
but I am not able to get searial data properly.
some time it give framing error and it does not give framing output nver been in correct format.
I am attaching snap shot of my program and output without error.
thanks in advance.
gurkirt
IIT Kanpur
09-09-2010 06:33 AM
Hi,
Be sure the RS-232 settings are OK.
The Framing error source can be a bad connection, wrong RS-232 levels or defective hardware.
09-10-2010 07:00 AM
Hi Gurkirt,
These links might help you..
http://digital.ni.com/public.nsf/allkb/F3E0621CB71AA16786256F970000FC57?OpenDocument
http://digital.ni.com/public.nsf/allkb/13A20C0F9DF265FB86256FC60066D9C2?OpenDocument
Regards,
Rajshekar P
Applications Engineer
National Instruments
09-20-2010 02:18 AM
@K C wrote:
Hi,
Be sure the RS-232 settings are OK.
The Framing error source can be a bad connection, wrong RS-232 levels or defective hardware.
Adding a low quality cable , noise / interfearence / groundloops to the cable, or the cable capacity is to high for the driver circuit at this speed. A scope at the PC-RX might give a hint.
Can you make a short connection directly to the unit?
09-20-2010 04:50 AM
Hi Henrik,
Du hast so regt……(so far for my German writing)
Too bad, there is no further reply from the originator.
Kees
09-20-2010 04:59 AM
thank you all for replying..
rs232 cable and connection are fine i checked it with other software it works fine with other software but there is allways a problem with labview.
please have look at the snapshots i have attached.
thanks and regards
gurkirt
iit kanpur
09-20-2010 05:08 AM
Hi,
The snapshot only shows a read from the COM port. Can you post the complete program.
With the snapshot you set the com port parameters and read the com port once.