English
Forum

How do I use the THREAD.PCU?

 

Stephan
Sonneborn
Hello people, Hello iF,

I have the following Programmierproblem:
In one Program should (later) Messwerte over The serial interface or a Schnittstellenkarte be read. The values should so in ca. 40Hz - Takten arrive.
around the Program beforehand already time vorzubereiten, would like I a Simulationsmodus arrange, the me The values generiert.
now to the trouble:
I question any Dialogobjekte (too The, The To Program Start not yet existieren) in a Hauptprogrammschleife ex. the new CLICKED() of XPROFAN 9 does there very good services. circa now The values To Generate starte I a Timer, the the WAITINPUT to that Timerzeitpunkt durchbricht, around the values To to charge, aufzubereiten and view. at the same time go but too The Dialogobjekte treats. apiece kürzer the Timerwert tuned is, so tougher becomes it, The Dialogobjekte abzufragen: tappt im dunkeln react simply not any more.

now have I me virtual, iFs THREAD.PCU for To benefit:
CompileMarkSeparation
How but make I with the the THREAD.PCU? goes the at all? means How starte I a on the side-job within einens Profan-Program and How stoppe I it again and can I so a integrally normal procedure started etc.
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
03/13/05  
 



Perfect - very for something like isses virtual.

1. The DLG-Items examine You too furthermore in the Hauptschleife ex.
2. your Timer beseitigst You restlos - so the Waitinput not any more durchbrochen becomes.

fundamentally so:
CompileMarkSeparation
thread.start 1,7// wenn sekündlicher aufruf der thread.do reicht. oder
thread.start 1,1// wenn die thread.do ständig laufen soll. (3=mittelwert)

whilenot exit%

    waitinput

    if clicked....

    wend

    thread.stop 1
    end

    proc thread.do

        parameters n&

        if n&=1

            machhierwadduwillst wären dessen waitinput wartet :)

        elseif n&=2

            wenn du einen 2. thread brauchst und dieses mit thread.start 2[,1-7] gestartet hast

        endif

    endproc

helps you the?

salvo, iF
 
03/13/05  
 




Stephan
Sonneborn
Hello iF,

Thank you! the Tool working lovely! I must whom Source another slightly optimize (CPU-Last > 20%), but fundamentally runs it very so, How I it having wants.
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
03/13/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.078 Views

Untitledvor 0 min.
Walter05/08/20
p.specht11/22/19
E.T.12/26/18
AndreasS12/07/18
More...

Themeninformationen

this Topic has 2 subscriber:

Stephan Sonneborn (2x)
iF (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