English
Forum

Sleep xx

 

Detlef
Tussing
How exactly the Timer with z.B. sleep 350 and how much Time need The thereafter subesquent command
in example

setdigi1%
sleep 350
x%=readdigi1%

with setdigi1% steuer I a externe hardware
with readdigi1% read I The hardware from
The ext. hardware needed 20 ms
then should x% to 370 ms a worth having
or lieg I there wrong
 
Gruß Detlef Tussing
Windows XP, XProfan 10
11/11/09  
 




Nico
Madysa
mathematical ought to it hinkommen, however must You Nich forget, that Sleep very inaccurate is. plus less 12 msec was The uncertainty, if I me not crazy.
 
Nico Madysa
11/11/09  
 




Detlef
Tussing
have you got there already experience so ?
 
Gruß Detlef Tussing
Windows XP, XProfan 10
11/11/09  
 




Nico
Madysa
No, as accurate had I yet yet never something timen; however have I here in the Forum already often times something drüber aufgeschnappt. i will bet, that The Forensuche to "Sleep" or "Timer" or something Ähnlichem you plenty Erkenntnisse bescheren becomes.
 
Nico Madysa
11/11/09  
 



windows Sleep is down not steady, independent time of eingebauter inaccuracy. must only one Process 100% muxen and from Sleep 100 becomes Sleep 100000, but never andersum.

The row x%=readdigi1% can You according to Rechnergeschwindigkeit a couple time per Millisekunde manage, here a whole ms draufzuaddieren would already plenty.

>> then should x% to 370 ms a worth having

Sleep 350 means were at least350+x ms. ^^
 
11/11/09  
 




Jörg
Sellmeyer
Accurate GEHTS probably with SetTimer 10 and then &GetTickCount abchecken.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/12/09  
 



Millisekundengenau even runs that here by me:
CompileMarkSeparation
 {$cleq}
#include compatible.inc
Print "Hallo Welt"
~setTimer(%hWnd,0,1,procAddr(myTest1,4))
waitinput
end

nproc myTest1

    parameters data&,b&,c&,d&
    setText(data&,str$(&getTickCount))
    return data&

11/12/09  
 




GDL
Hi Detlef,

I have the whole with sleep given.there with the thing zuviele interne things mitspielen.

instead of The RS232 only once abzufragen, question I The RS232 continurierlich ex.accordingly entgeht me no characters More.
CompileMarkSeparation
Windows7 Xprofan 8,9,10 [...]  [...] 
11/12/09  
 



GDL, Beitrag=54886, Zeitpunkt=12.11.2009
question I The RS232 continurierlich ex.accordingly entgeht me no characters More... settimer 10


Hello Georg,

are 10ms enough or. Why/when are 10ms enough?
 
11/12/09  
 




GDL
Hi,

this is experimentiell by me determined.
comes on The Number of To conceived Bytes on.apiece More umso longer settimer.

Ausserdem can in the Empfangsunterprogramm yet variieren.
by me given the The best Solution for 3 To conceived byte.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
11/12/09  
 



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.015 Views

Untitledvor 0 min.
ScanMaster06/20/24
Sven Bader08/02/21
Georg Teles05/01/20
Pk02/24/17
More...

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