English
Forum

to program To high

 

Ulrich
Milde
From of/ one Lüftersteuerung with Microcontroller read I over The serial interface The temperature from and show these on. I have moreover solely the Beispielprogramm for serial interface on the supplied Datenformat adjusted. functions well, this is not the trouble. The to program lying permanent with 100% and thereby is it alike, whether I the program in the interpreter mode or compiliert as eigenständige application walk let. so a wildly Auslastung is unfortunately inakzeptabel, straight because it itself around the first step to a application deals, The The temperature to supervise should.

I use Profan 7.6a under How to remove and the Simplicity halber show I The data first in the Profan "DOS" Window on . Upgrade on XProfan10, on it I had already virtual, but is the CPU Auslastung there less? Perhaps there too another Solution the Lastproblems? i'm grateful for each Tipp!

thanks and Tschüss!
 
02/15/07  
 



@Ulrich

One little Program-code would helpful...
 
02/15/07  
 




RGH
Hello Ulrich,

naturally stops I The acquisition one Updates on XProfan 10 for a very good Solution ;) , but I befürchte, the would on Your trouble nothing Change. there might presumably one "Sleep 1" in the Hauptschleife do wonders. the sorgt for, that too with of/ one While-Loop without Wait-command others processes a chance get. an While-Loop without Wait- and Sleep-command lead in the rule To 100% Systemauslastung. important: 100 % Systemauslastung means not, that except the Program niuchts More goes and the restliche system to that stood still comes. for a distribution the Prozessorzeit on The different processes sorgt itself already Windows itself. it means only, that the Program then each free Prozessorzeit for itself uses.

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
02/15/07  
 



Erstmal Welcome Ulrich.

your trouble is so To to fix the You ebend not whom Temparaturstand hundreds Male per second abrufst - separate plenty seltener.

i'd you subesquent Bauplan recommend:
CompileMarkSeparation
 
02/15/07  
 




Ulrich
Milde
to program of 100% circa ca. 100% sunk, the nenn I time a really 100%tigen success! the Program here To post becomes incidentally nothing bring because without whom Microcontroller will nothing do. thereby has the program eh eachone, the Profan has.
Help Starting and then - introduction - link with the Aussenwelt - Serielle interface - behind each the both ReadCom$ command the Beispielprogramms once Sleep1 insert, and the brought already the Performancewunder

This will incidentally a application, The with completion together with the proposition on derOpenMicro Website [...]  stand becomes. Perhaps can I,may I another question to put, because moreover have I nothing found, weder in the Profanhilfe yet here. integrally right in the Taskbar are Icons of Programs, The not just minimizes walk, but in background on ihren employment Waiting. me comes the almost so to as windows analogy to a DOS TSR Program. How can I it achieve, that itself the program there cache, but active remaining? Temperaturanzeige in the Icon self, so How with SpeedFan or the MBM5 (Motherboard Monitor) would naturally yet rather, but I befürchte the could too much hoisted go.

I bedanke me already time, not lastly with the Info I me XProfan10 probably buy will be. with SetComExtended can I namely my DOS Program to that read of my Multimeters finally Windows adjust.

thanks and Tschüss!
 
02/15/07  
 




Jörg
Sellmeyer
Hello Ulrich,
look you the at times: [...] 

and such too time on XProfan.de time to "systray"
Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/15/07  
 




Ulrich
Milde
SysTray, correctly., thereafter had I search should! but this is viiiel a blank because the Reading the seriellen made Problems. I could the trouble zurückverfolgen except for The Leseroutine, The I unchanged from the funtionirenden Beispielprogramm übernommen have.,
Fakt is: Serielle data go gesendet, but not receive. ComError is 0 and because no data receive go, becomes The Leseschleife never leave. Dieselbe Leseschleife under the Virtually DOS surroundings of changed Beispielprogramm runs free from problems and supply data. Very strange!
I could the trouble with WaitKey and Co. in the äusseren Windowstypischen Loop fasten. only Inkey$() letting The interface so works as his should. evident disturbing Profan-interne processes with WaitKey the Handling the seriellen interface, though the program itself then in the seriellen procedure befindet. now, where I the knows is the trouble not so bad, but the Fehlersuche has me partly on me self doubt let.
The question is now whether and How I only with InKey$() a windows typische Benutzeroberfläche building can? Mausaktionen inquire, the must I first yet try, but I befürchte almost that it too there seriell crux could. i'll I grösstenteils on my own durchbeissen must, because the Microcontroller on the seriellen interface heard moreover. without whom there no data, around the it really goes.

I have the now sooner as report written, as me with my proposition ergangen is. I knows not whether it in this Forum fit, if I of Time To Time anew poste as the Program (and accordingly too me...) goes.

Regards and Tschüss!
 
02/16/07  
 




Jörg
Sellmeyer
"WaitKey" can objectively only Keyboardeingaben through. Versuchs still time with "WaitInput". best You postest simply time one little code. otherwise is that here only gerate. too ifs from whom Examples is. we knoe Yes not, what You already evtl. changed have.
iF has Yes in the principle already one Grundgerüst viewed. you mußt only to the Loop Buttons and other Fensterelemente produce and the then inside the Loop with of/ one If-structure inquire:
CompileMarkSeparation
If %wmtimer

    ...

EndIf

If GetFocus(Button1&)

    ...

ElseIf GetFocus(Button2&)

    ...

ElseIf ...

    ...

EndIf


Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/16/07  
 




Ulrich
Milde
thanks for code, the becomes the Grundgerüst go. code post, the reicht not yet because I to Time still in the Stadium be, in the in the first everything constantly umgeworfen becomes. what about me secondly mainly on the seriellen receptions rumgebastelt have. the close the Datenformat with one and accordingly too the program of Microcontroller. as well as I The seriellen data tidy in the Grundgerüst "sehen" can, then Better get going differently and be is hopefully right soon his!
Nochmal To WaitKey: I find it remarkable that WaitKey The stoppende hand on almost everything places, inkl. the seriellen interface. One geradezu gefährlicher commands

thanks and Tschüss!
 
02/16/07  
 



Hm can it his the there eigendlich garnix gestoppt becomes - separate sooner ebend only not read becomes if z.B. Waitkey or Waitinput on the Zuge is?

If You means still Perhaps without "Warten" permanent whom Port read? If "Ja" - then should You a 2-Process-application program. to that a ne manner ServerAnwendung which Fensterlos permanent from the Port reads - and to that second the program what The Benutzeroberfläche darstellt. usually could one this over Threads do - XProfan is not Thread-sure, means must 2 processes instead of Threads since - takes itself but eigendlich hardly what.

The processes must now but somehow too together communicate can - so The Fensteranwendung the Serveranwendung command give can. Hierfür recommend I The Pipe-Unit.

can But Perhaps too his the it plainer goes? GDL power still too something like!? it swarms from the Thread.Pcu (The does so as though NEN Thread created becomes uses but NEN Timerkonstrukt) and meant still always the it without these hardly possible would?! Geeeooooorrrg????
 
02/16/07  
 




Ulrich
Milde
Uuups, the goes so a little over my horizon! i'm of course no beginner what program angeht; too no Profan beginner, but Profan stood too long in the corner and staubte to itself there. Erschwerend hinzu comes yet that I in the principle one DOS-QBasic Dinosaurier be, for the OOP concept heavy verständlich is. as long as I in thoughts with Datenstruktiuren, Procedures, functions and Parameterübergaben stay can, The my Verständnisrahmen not übersteigen, goes everything yet. too in Profan Have I already what nice hinbekommen. unfortunately stick there irgenwo one Error drinnen, the only zeitweilig appears so that Train-Sim.com on my Program dispense had

here and now fürchte though that, that windows and (X)Profanspezialitäten addressed go, The my horizon übersteigen. XProfan have I not yet and is too yet something last, because on the wednesday go by me some zugewachsene fangs ausgegraben. its To befürchten I then some days no grosse pleasure having will be me whom head over programs and Profan To break.....

I find it cool that my profanen difficulty same aufgegriffen been are what about me hope very, I in the site will be The Tipps and Info too umzusetzen. i'll first so go on, at all what serielles with a eingermassen lesbarem Progamm without whom Profan DOS Screen windowsähnlich on the Monitor To bring. the wede I (hopefully) this weekend yet hinbekommen. then I will see as weitergeht.

Vielen Thanks and Tschüss!
 
02/16/07  
 




GDL
Hi,
the trouble with two freilaufenden RS232 Interfaces is always "WANN DARF ICH AUSLESEN.it must under no circumstance read go ,if the the MControler straight sends.If too yet Fehlerbytes ausgewertet go Better get going extreme difficult.
either You uses The Handshakingleitungen or send before a Präambel.
I use always The 255.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
02/16/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

9.552 Views

Untitledvor 0 min.
RudiB.10/06/22
Andre Rohland01/06/19
Julian Schmidt06/29/11
iF03/10/11

Themeninformationen



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