English
Forum

Interrupt

 
- Page 1 -



dr.dirk
Hi,

there in Profan The Possibility whom Programmablauf over one Interrupt To interrupting (z.B. Timergesteuert).
The Timer resolve standartmäßig one "WaitInput" from. the can I but so not use. my Program must constantly whom seriellen Port in the "Blick haben" and on most different Keys react. between all this releases should the program but after a exakten Zeitvorgabe over The serial interface one Telegramm Send.
Currently have I the "&GetTickCount" commands into Programmschleife installed and berechne The past ms since the last Aufrufes and if The desired Time vergangen is becomes the Telegramm gesendet.

Dirk
 
ich nutze XProfanX2
02/01/14  
 



« this Posting watts as Solution marked. »


dr.dirk
pExec - the was the entscheidene Info. I have the Telegramm Send so To say ausgelagert.
it sees in the momentum so from as though it functions.

Vielen Thanks
Dirk
 
ich nutze XProfanX2
02/01/14  
 




H.Brill
Reicht there not SetTimer from ? is since the Time run down, so
becomes even WaitInput leave. with the seriellen interface
make I the always so. one must hold only the Timing the
sendenden Gerätes in the look and have accordingly
whom Timer settle. so some MC (z.B. AVR)need there one
couple Millisekunden. If one then too The Puffer with OpenCom
big enough holds (z.B. 1024), goes too nothing lost.

one can but too The interface constantly pollen, if one
XProfans MultiProzessing (pExec) using. then can you whom
Timer for Send the Telegramms using.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
02/01/14  
 




dr.dirk
pExec - the was the entscheidene Info. I have the Telegramm Send so To say ausgelagert.
it sees in the momentum so from as though it functions.

Vielen Thanks
Dirk
 
ich nutze XProfanX2
02/01/14  
 




H.Brill
So I would the so make (Pseudocode) :
CompileMarkSeparation
SetTimer 1000'wenn alle Sekunde das Telegramm geschickt werden soll.
f& = Opencom(...)
' evtl mit Setcom() konfigurieren
' dann mit pExec() Prozess zum Abhorchen der Schnittstelle aufrufen.
pid& = pExec(|Polling, %HWnd oder Fensterhandle, f&)
' Handle der Schnittstelle und evtl. andere Handles, die in der Procedur
' angesprochen werden (z.B. ein Editcontrol,Listbox usw.) mitgeben.
ende% = 0

WhileNot ende%

    WaitInput

    If %wmTimer

        process("Suspend", pid&)' Prozess anhalten
        ' Hier das Telegramm senden
        process("Resume", pid&)' Prozess läuft weiter

    EndWhile

    Proc Polling

        Parameters handle&, Port&
        var ende% = 0

        Whilenot ende%

            case getText$(handle&) = "" : ende% = 1
            ' Hier Schnittstelle pollen

        EndWhile

    ENDPROC

 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
02/01/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.885 Views

Untitledvor 0 min.
H.Brill09/30/22
iF12/28/15
Georg Teles12/27/15
dr.dirk12/27/15
More...

Themeninformationen

this Topic has 2 subscriber:

H.Brill (2x)
dr.dirk (2x)


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