![]() How accurate is Delphi's 'Now' timestamp. I'm going to be working on a project that will require (fairly) accurate time- stamping of incoming RS2. As the data will be coming from a number of independant hardware sources, I will need to timestamp all data so it can be deskewed/ interpolated to a nominal point in time. My immediate though was just to use the inbuilt Now command to timestamp, however a quick Google seems to indicate that this is only going to be accurate to around 5. Unfortunately, the more I read the more confused I become. There seems to be a lot of conflicting advice on Get. Tick. Count and Query. Performance. Counter, with complications due to todays multicore processors and CPU throttling. I have also seen posts recommending using the Windows multimedia timers, but I cannot seem to find any code snippets to do this. So, can anyone advise me: 1) How accurate 'Now' will be. Whether there is a simple, higher accuracy alternative. Note: I would be hoping to timestamp to within, say , 1. This will be running on a Windows 7 3. PC. I will be using either Delphi XE or Delphi 2. ![]() Serial Number Delphi 7 Second![]() Using a PC's serial port- ele. HOME > >. ELECTRONICS MAIN PAGE > >. ELECTRONICS PROJECTS CONTENTS Bookmark this on Delicious. Recommend at Stumble. Upon. This is your entry point to a variety of material about using the serial port of a Windows PC. Some of the information here, for instance the pin assignments, will even be useful to Linux users. There's a table of contents in a moment. Dangerfield January. 2010 V1.0 Delphi PSS 7 Introduction: The Rel. 3 software Installation CD1 will load the DS150E diagnostics software. The BelkinBluetooth software. Once you have done that, there's also my tutorial on a program which reads from and writes to a device using the serial port. There's more about these in the Software section of this page. While they are most immediately useful to a Delphi programmer, there is little . Over the years, some USB, LAN and TCP/IP stuff has crept in. If any of those are your interest, use your browser's . A detail: References to . ![]() Windows 7 Activation key ( http:// Having been used for several years, your computer may get crashed often? Every time when it goes crashed. Do you like Torry's Delphi Pages? You can support it by donation at your choice by button below. The Delphi Oracle - From Strong's Concordance: 4436: Puthon Tabtight professional, free when you need it, VPN service. Also a page specifically about the issues of connecting big computers to microprocessors like the Arduino, etc. Any use you make of anything you find here must be. AT YOUR OWN RISKI've also published information and an offer about a small, hobbyist friendly circuit with relays and opto- isolators, which may be of interest. It is for protecting your PC if you connect things via the parallel port. Don't let the warning above worry you too much.. I want to stress that there is a lot of fun to be had with electronics projects. Find yourself an 'antique' PC. If you can't rescue one from a dusty corner, you can buy one for almost nothing. You can use the same monitor as you use on your main machine. If you wreck the antique, it hasn't cost you much! Ever set up a web server? It isn't hard! If you have an always- on broadband connection, Far. Watch may be of interest. I have written pages for you explaining how to use an old Win. Win. 98 box is at from anywhere on the internet. Nothing to buy! And if you connect something to that PC via it's serial port, you can . What do you connect where? And what about cables? Mundane though those . If you are coming here from one of the several great hobbyist friendly microprocessors out there, e. In happy innocence, you may think that . And the can be shown that way. But they aren't always shown that way. The next few sentences may give you rising annoyance, but hang in there.. I'm pretty sure it was the . These voltages were part of what it meant when you said . Wikipedia has more on the subject. There are simple chips, if you want to do things the hard way, and simple small circuits if you want to go the . Note that we are not talking just about the change from 1. I've explained all this in greater detail, and presented solutions for you, at my page on RS- 2. TTL converters. They stand for . The PC transmits to the attached device's receive line. So is the blue wire the TX or the RX wire? This, like the voltage levels mentioned earlier, is one of those things I re- check every time. In general, you have to be careful when not sure if something is an input or an output. In this instance, you will often times get away with shorting an output to ground, because the RS- 2. But don't rely on every part of your ! Although operating systems still have support for serial communications channels, the hardware is increasingly scarce on the PCs being sold today. One solution is a virtual serial port carried across a USB device. The hardware half of you sees a USB device, but the software side of you only has to deal with the virtual serial port created by the USB hardware. Again, Wulfden to the rescue with their . Even after you have converted the 1. PCs serial port to zero volts/ 5v (or is it the other way around?), there remains a problem. In other words, how much current can run in, or out, of the wire before the 5v droops or the zero volts rises? If you say that a circuit is a . This isn't something you need to lose a lot of sleep over if you are just using a MAX2. PC's serial port (be it . Just don't think that you can, for instance, connect a serial port output to a bank of 5. LEDs to get a simple high frequency light show! I just didn't want you worrying about the TTL stuff that you will see when you read about the MAX2. Return to page's Table of Contents. Software.. I have, after several serious attempts sprinkled across MANY years of trying, finally sussed out the underlying routines for a Hyperterminal clone. While they are most immediately useful to a Delphi programmer, there is little . Once you've mastered what is in that, there's also my tutorial on a program which reads from and writes to a device using the serial port. Both pages include links to downloads for the sourcecode and for compiled . Hyperterminal was a simple serial comms package for Windows which allowed you to send messages to and receive answers from devices connected to a Windows computer's COM1 (or 2,3,4.) port, i. The port is sometimes referred to as an RS- 2. Hyperterminal is being phased out. When you are developing a project, you can only do so much at once. For those times (and those finished projects) when you need a simple, made- for- you- by- others serial terminal program, I am in the early stages of becoming a fan of Pu. TTy. It works with Windows and under Linux. It is modular and un- bloated. If you just want a simple terminal, you only need to download the file called putty. That is not a set up program. It is the serial terminal program. Doesn't get much simpler than that! If only everything were so simple. It is scraps of information collected along my journey to the happy state I finally achieved in April 2. It does include some links to information about connecting to telephone equipment which aren't found elsewhere in this page. I think the author was working with Delphi 5; Other sources suggested that a similar approach will work with Delphi 2. For Delphi 1, you'd take a different approach. He has written a number of articles, components and applications. Search Google for . Among other things, his page shows how to programmatically set baud rate, etc, too. The code in the FAQ also. Warning. There may be an error in the FAQ - it may be that Number. Written must be. dword not Long. Int. var Number. Written: dword. Phone. Number, Comm. Port: string. h. Comm. File: THandle. Phone. Number : = 'ATDT 1- 5. Comm. Port : = 'COM2'. Comm. File : = Create. File(PChar(Comm. Port). GENERIC. You must configure the Time. Out. Buffer. I don't know what good values should be, so I used 3. Eventually, I will use Read. File. Ex because it will call a routine when a barcode is scanned. Once the port is open and configured, here are 2 routines that will read the port. For test purposes. Uh, both routines work when run from the IDE .. I have no idea why. Instead, it uses the following Kernel. Depends. exe). Set. Comm. Timeouts, Set. Comm. Config. Get. Comm. Timeouts, Get. Comm. Config. Comm. Config. Dialog. A. If you try to search the Delphi 5 help for Read. File, there are no hits. This is because Read. File is a Windows API command .. Instead, click on it in your code and press F1. Because. they have already been tested on numerous systems and. Hope you can find that if other sources don't give you what you're looking for! I have to admit: This is only the second time I've done it, as I generally don't like to do it. But I've had no regrets. I used Dejan Crnila's TCom. Port component A program called . Another free, probably Win. Uses overlapped. I/O for full Windows NT. Only basic serial comms are provided - . Programmer's Heaven. For Async. Free.. My idea is to split the problem. Suggested project parts. Basic serial communication (input and output buffer, line events). Data and event dispatcher (user timers, input data- driven events..). Opened for linking to other communication enabling components. Win. Socket, DCOM.. I have something prepared, but the code should be rewritten as it is rather closed and not divided according. Version 2. 1, . Serial comm library. Windows API. Includes. XMODEM & YMODEM, and. Requires Delphi compiler. This tool is. a fully redesign of my former Tool for Windows 9. It comes with several Demos. Source Codes. It is implemented using two threads. Comm Port. Has. built- in dialogs for choosing a port, displaying error. Includes full. source code, and a help file. It should work with. Delphi 3, 4 or 6, but I can't say for sure. Not just serial port stuff, but. KDTele Tools 3. 0 (Active. X/VCL). KDTele is a collection of controls that provide to. Make and answer phone calls. Detect tone and pulse digit from the phone. Capture Caller ID - Play and record on the phone. Silence detection. Send and .. Visual Basic's Learning Edition doesn't include. MSComm. But you can use the freeware XMComm Active. X control.. From Richard Grier's Hard & Software.. An Active X control for very basic serial I/O. Windows 9. 5/NT. From Stephen Payne.. Link WAS.. http: //members. Seems dead 1/2. 01. Quotes from Easy. IO site.. Use it as. Win. 32 communications library. See web for details not given here. It used to be at http: //www. There is a sourceforge page for Async Pro! To quote from that: . It provides direct access to serial ports, TAPI, and the Microsoft Speech API. It supports faxing, terminal emulation, VOIP, & more. It provides direct access to serial ports, and supports terminal emulation, file transfer protocols, & more. At 1/2. 01. 1 I couldn't get in at Turbo. Power. com. Unfortunately, when I went to the Turbo. Power site, I found a notice that. Open sourcing our products. We sincerely hope. There are nearly. The resulting open source projects. Source. Forge. SEE TEXT.. TComm. Port. Driver. Freeware serial- communications. Delphi. Includes source code that shows. Windows API calls to access serial ports. From Marco Cocco. Seems to have been used by numerous people. But, of course, I hadn't downloaded it myself, and the link above is dead 1/2. Anyone know of a source?? TComm. Port. Driver is a component for Borland Delphi 2. COM ports (com. 1- com. Supports asynchronous and synchronous data RX. This allows IO under Win. Win NT. I know the latter normally blocks attempts to Write to/Read from specific addresses but the. DLL (legally) get around the problem.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |