LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 error

I'm using Labview to discuss with an interface board with the RS232 protocol.
The interface board is an engeneering solution developped by us to drive one application.
Dur inf the communication with the interface when we write on it we send two header and then 4 bytes.
When we read th interface we have to read the 4 bytes only. if we look at the data during the read we do not ahve any problem but we have an error generated by labview : error 16400!!
is there someone how can explain me that error.
I join the vi ( the error is generated in the sequence 3 on the "bytes at serial port vi)
Thanks

regards

Philippe
0 Kudos
Message 1 of 5
(4,549 Views)
0 Kudos
Message 2 of 5
(4,549 Views)
Hello,

You get error 16400 (x4010)probably due to bad programming. This error will be caused when break conditions exist on the serial port before a LabVIEW program starts and initializes the serial port.

You can simulate this problem by following these steps:
1. Use a null modem cable to connect one COM port to another.
2. Use the Serial Port Break.vi to send a break to a COM port.
3. Run the example Serial Read.vi and this error will occur.

The Serial Port Initialize VI clears the serial buffer, but does not clear the break condition on the serial port. When a LabVIEW VI is subsequently run, error 16400 or 16408 occurs indicating a break condition.

To clear the break condition you need to complete the following steps:

Be sure that when the VI s
tarts, you close the serial driver using Close Serial Driver.vi found in C:\Program Files\National Instruments\LabVIEW\vi.lib\instr\sersup.llb.

Initialize the serial port using the Serial Port Init.vi.
This will close the serial driver, initialize the serial port, and effectively eliminate the break.

I hope this helps.
Best regards.

Matthieu Gourssies
National Instruments France.
0 Kudos
Message 3 of 5
(4,549 Views)

Hi all,

 I have a problem while interfacing keithley source meter 2182 using labview via rs 232. when i initialised the instrument using the labview driver provided i was getting an error at the error out as error-1073807339 . when I saw the back panel i came to know that its a timeout error. i am not able to resolve this as i am fairly new to labview. can anybody help me in fixing this up.

 

thanks in advance

 

Sam rocker

0 Kudos
Message 4 of 5
(4,103 Views)

Hi sam rocker,

  It is indeed true that the erro no:-1073807339 is a time out error.May be there is an error in the sysntax in the command given by you for initialising the keithley or the may be the serial port configuration is different like(baud rate mismatch like that).

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 5 of 5
(4,090 Views)