Serial Port Overrun Error Labview

Автор:
Serial Port Overrun Error Labview Average ratng: 3,5/5 65 reviews


AuthorMessage
Empty serial port buffer?

Is it possible to empty the buffer of the serial input port without
reading from it?


Sat, 12 Nov 2005 20:44:49 GMT
Yes it is. If you are using VISA (and you should, its better) you can
use the 'VISA empty buffer' VI under the 'advanced' palette in the
VISA commands.

If not using VISA, simply get the number of bytes at the port, read
them and discard the contents.

Shane

PS my version is in german, and I forget what the exact names of the
VIs are in english.. My translations may not coincide with those of
NI.



Sat, 12 Nov 2005 21:00:13 GMT
hi

use VISA FLUSH I/O BUFFER

regards
wha



Sat, 12 Nov 2005 21:01:04 GMT

> Is it possible to empty the buffer of the serial input port without
> reading from it?
You have several options.

Old standard serial VI's
----------------------
Use 'Bytes at Serial Port' to get number of byte present and wire it to
'Serial Port Read' and don't use the data from the VI.

VISA flush buffer
----------------------
The function 'VISA Flush I/O Buffer'.
This did not work for me, it took to long time.

VISA eqvivalent of number of bytes at serial port.
----------------------
There is a VISA property to read number of bytes on the receive buffer of
the serial port. Use this to get number of bytes and wire this number to
the VISAread function.
The problem is that this only works for serial port.

Use VISA read
-------------
-1- Get VISA timeout value (VISA property node)
-2- Set VISA timout to 0 (VISA property node)
-3- make a while loop with
VISA read function with e.g 1000 bytes to read.
End the while loop when number of bytes read is 0
-4- Set VISA timeout back to the value set in step 1

--
Rolf



Sun, 13 Nov 2005 14:37:23 GMT
Excellent!
I have the same experience with the VISA flush buffer.
Will try the Use VISA read option.
Thanks


Sun, 13 Nov 2005 22:59:57 GMT
Page 1 of 1
[ 5 post ]

1. NEWBIE: Serial Port Buffering / Timing

2. How do I flush the serial port buffer?

3. input buffer of serial port

4. serial port buffer receive overflow????

5. serial-port traffic clogs buffers?

6. connecting port of mode OUT with port of mode BUFFER

7. Serial Error 0x4002 (Error 16386, character was lost by overwrite / serial port overrun error)

8. trouble with serial communication (serial port init.vi)

Free ecw jpeg 2000 compressor car

9. REQUEST: Serial port code for processing serial mouse data

10. HELP: buffer empty after Browse Selection (C5.0EE)

11. Port I/O through serial port on sound card

12. Using Serial Port to send mouse actions to remote computers mouse port


Powered by phpBB® Forum Software
2007-02-14 14:10:13 UTC
Hi ,
  I am having a simple Matlab model which controls the output port with constant control. I created a 'dll' correspondent to this mdl file and calling this dll in Labview using SIT.  Actually i want to control the 'analog output port' with this model, While running the VI I am getting the Error 62.
 
Could anyone help what is the root cause for this error and how to overcome from this?
 
I attached the erro info.
 
Thanks
naveen
err62.zip:
http://forums.ni.com/attachments/ni/170/229851/1/err62.zip
Port

NI-Serial 17.5 adds support for LabVIEW NXG 2.0. It also adds support for the Recover Ports utility, Basic Serial Port Settings view and configuration, and Advanced Serial Port Settings view in System Designer. In addition, it adds Self-Test support in MAX and System Designer.