English
Forum

RS232 Receive buffer clear

 

GDL
Hi,

coming today by chance hereon, that following routine of course whom Receive buffer ausliest, but not leert.
only if I whom ausgeremten part dazunehme Gibts none Pufferüberlauf.
CompileMarkSeparation
declare comi1&,erfolg%,comwert$
cls
comi1&=opencom(Com1:,4096,4096)
erfolg%=SetCom(COM1:9600,N,8,1)

proc lesen

    comwert$=@ReadCom$(comi1&,1)
    @ComError(comi1&)

    whilenot comwert$=

        comwert$=@ReadCom$(comi1&,1)
        @ComError(comi1&)

    wend

    closecom(comi1&)
    comi1&=opencom(Com1:,4096,4096)
    erfolg%=SetCom(COM1:9600,N,8,1)

endproc

whilenot 0

    lesen

wend

closecom(
)

I took always on, that The Number of gelesenen characters, whom Puffer circa this worth again freigibt.
knows of you someone a commands to that Puffer delete?

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
03/08/07  
 




GDL
Hi,
have whom code now with Using Frank Steinberg modifiziert.now GEHTS.
CompileMarkSeparation
declare comi1&,erfolg%,comwert$,SSuccess&
DEF @PurgeComm(2) !KERNEL32,PurgeComm
cls
comi1&=opencom(Com1:,4096,4096)
erfolg%=SetCom(COM1:9600,N,8,1)

proc lesen

    comwert$=@ReadCom$(comi1&,1)
    @ComError(comi1&)

    whilenot comwert$=

        comwert$=@ReadCom$(comi1&,1)
        @ComError(comi1&)

    wend

    closecom(comi1&)
    comi1&=opencom(Com1:,4096,4096)
    erfolg%=SetCom(COM1:9600,N,8,1)
    LET SSuccess& = @PurgeComm(comi1&,8)
    drawtext 20,50,Erfolg : +str$(ssuccess&)

endproc

whilenot 0

    lesen

wend

closecom(i1&)

Roland, i'd me for XProfan11 Please Profaninterne Löschbefehle for read and Schreibpuffer wish.thanks.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
03/08/07  
 




RGH
GDL
Roland, i'd me for XProfan11 Please Profaninterne Löschbefehle for read and Schreibpuffer wish.thanks.


Hello Georg,
this is a good idea! i'll the same time into suitable Forumsbereich (Proposals for future XProfan-versions) copy!

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/09/07  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

967 Views

Untitledvor 0 min.
H.Brill04/21/24
RudiB.02/26/24
Chregu Mueller04/02/13
Robert Hildebrand02/24/12
More...

Themeninformationen

this Topic has 2 subscriber:

GDL (2x)
RGH (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie