Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 framing error

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

Download All
0 Kudos
Message 1 of 7
(5,841 Views)

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.

0 Kudos
Message 2 of 7
(5,836 Views)

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

0 Kudos
Message 3 of 7
(5,794 Views)

 


@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?

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 7
(5,705 Views)

Hi Henrik,

 

Du hast so regt……(so far for my German writing)   Smiley Tongue

 

Too bad, there is no further reply from the originator.   Smiley Sad

 

Kees

0 Kudos
Message 5 of 7
(5,696 Views)

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

0 Kudos
Message 6 of 7
(5,693 Views)

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.

 

 

 

0 Kudos
Message 7 of 7
(5,683 Views)