1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Rep Power

    Reading in binary signals from another program.


    I have a dpr that manages a few different instruments for an ROV, such as a winch and sensors. At the same time we use an external program to gather information from a velocity log. This program sends packets of information every 0.77s through a serial port, I have isolated the data needed as bytes 23 and 24 from a 57 byte packet.

    I am just starting to use delphi and could use any advice available.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Rep Power
    I am not really clear with what you needed. If you want to do serial port reading/writing, go to sourceforge and search for TComport project. There are, of course, other great serial port libraries for Delphi. I just found TComport is the most convenient.

    Should you need to isolate bytes 23 and 24 from a 57 bytes packet, you could store the packet as ansi string ("normal" string in non-unicode Delphi, i.e. older than 2009) , and then read the 23rd and 24th chars. Easy.

IMN logo majestic logo threadwatch logo seochat tools logo