LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

videoconference serial port error

Hello, I'm a spanish student and I'm doing a project with labview. This project is about video coding for low bit rate (H.263). Sometimes I have a problem reading from serial port. My program is composed for one sequence with three frames. In the first frame i read from serial port, in the second frame i decode one picture with a dll and in the last frame i show one picture. this frames are runnig constinuosly. I inicialize serial port with a buffer 65535 bytes and no flow control. I'm using only the line RxD. The problem is that appears "Error 16386 ocurred at bytes at port" hex code x4002. I don't understand why it happen if I have 65535 bytes of buffer and I receive data to 115200bps. I suppose that the buffer is full every 4'5 sec
onds and I don't understand why character is lost by overwrite. What can I do? I'm lost and I'm grateful for your help. I'm sorry for my English because it isn't very good. Thank You.

Jose Luis
0 Kudos
Message 1 of 3
(2,907 Views)
If serial port data is being overwritten this may be due to data being continously written. Try flushing the buffer after you do the initialize. For VISA, the function is VISA Flush I/O Buffer. If you're using the traditional Serial VIs, after the initialize, do a Bytes at Serial Port and then do a read of that number of bytes.

By the way, don't worry about your English. I think it's great.
Message 2 of 3
(2,907 Views)

Hi JLMS, I was working on some simillar project so I was wondering which dll did you use for coding the video

Thanks 

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