[DUG] Controlling PC Hardware Ports
Tim Perry
Tim.Perry at xtra.co.nz
Fri Oct 10 19:43:35 NZDT 2008
Definitely rules out windows, when was working in military in UK it also
ruled out any time-sliced OS/Processor.
Do a search on why the first generation of Patriot Missiles missed (I recall
that was a CPU problem).
BTW is it still true that some missiles are still the only machine that
uses software to predict the future? It's been that long since I have seen a
line of code .....
Tim
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Myles Penlington
Sent: Friday, 10 October 2008 4:34 p.m.
To: NZ Borland Developers Group - Delphi List; rohit at cfl.co.nz
Subject: Re: [DUG] Controlling PC Hardware Ports
That probably rules out using windows.
Would have to run at real time priority, and I have no idea what accuracy
that will give you.
In fact you may have to write your own kernel mode driver for that kind of
stuff.
It's not exactly what windows was designed to do. There are other real time
OS out there.
Myles.
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Colin/Mina
Sent: Friday, 10 October 2008 4:28 p.m.
To: rohit at cfl.co.nz; NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Controlling PC Hardware Ports
Thanks, but I forgot to mention that I need sub-millisecond accuracy hence
wanting to use the 'scope.
Probably rules out using a standard Coms driver too.
Cheers
Colin
----- Original Message -----
From: Rohit Gupta <mailto:rohit at cfl.co.nz>
To: NZ Borland Developers <mailto:delphi at delphi.org.nz> Group - Delphi List
Sent: Friday, October 10, 2008 3:53 PM
Subject: Re: [DUG] Controlling PC Hardware Ports
The other thing to do is to log the timing (current time) to a log file
Colin/Mina wrote:
Hi,
I want to monitor some code to ensure that I have some timing correct. I
was hoping to hook my oscilloscope to a readily available electrical signal
(Such as Serial Port RTS) and to add instructions in my code to set and
clear the appropriate modem port.
Unfortunately the old Turbo Pascal instructions that allowed this, eg
Port[$2FC] := 2) // Set b2 of Modem Register
and
Port[$2FC] := NOT 2) // Clear b2 of Modem Register
but these don't appear to be available in Delphi (not in D5 anyway).
Any solutions please?
Thanks
Colin
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3509 (20081009) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
_____
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3509 (20081009) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
--
Rohit Gupta
B.E. Elec. M.E. Mem IEEE Associate IEE
Technical Manager
Computer Fanatics Limited
Tel +64 9 4892280
Fax +64 9 4892290
Email <mailto:rohit at cfl.co.nz> rohit at cfl.co.nz
Web <http://www.cfl.co.nz/> www.cfl.co.nz
_____
This email and any attachments contain information, which is confidential
and may be subject to legal privilege and copyright. If you are not the
intended recipient, you must not use, distribute or copy this email or
attachments. If you have received this in error, please notify us
immediately by return email and then delete this email and any attachments.
_____
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
Attention:
This communication is confidential and may be legally privileged. If you
are not the intended recipient, please do not use, disclose, copy or
distribute it, other than to return it to us with your confirmation that it
has been deleted from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20081010/2f5296a0/attachment-0001.html
More information about the Delphi
mailing list