Jump to content

JDRenk

Members
  • Content Count

    26
  • Joined

  • Last visited

Everything posted by JDRenk

  1. JDRenk

    Open File Dialog

    I have added the File Menu (from File Menu Template) to my Main Menu along with Open Dialog and Save Dialog and it is not working. I have compared it with working code and it is the same. The difference is under Structure, the File Icons are partially shown which seems to indicate something amiss. Thanks, Jeff
  2. How do I save binary data to a file with a fixed header? Like using APPEND for text.
  3. JDRenk

    TChart

    Is there no TChart component in 10.4 Community Edition??
  4. JDRenk

    TChart

    Got it: Tools-->Manage Platforms-->Additional Options-->Teechart Standard
  5. JDRenk

    Windows XP App

    I have created an App with Delphi 10.4 and Windows 10. Will I be able to run the App on Windows XP??
  6. JDRenk

    Windows XP App

    Thanks all, enough said... XP is replaced.
  7. JDRenk

    Windows XP App

    I am using the FTDI chip, FT4232.
  8. JDRenk

    Windows XP App

    No, I'm not doing any Bluetooth. But, I am using the Winsoft version ComPort. How do I find out if that's calling it?
  9. JDRenk

    Windows XP App

    Yes, XP must go away!
  10. JDRenk

    Windows XP App

    I am using TComPort
  11. JDRenk

    Windows XP App

    I don't have that answer. I am using Delphi to create an App to log data through USB. I am not an experienced programmer.
  12. JDRenk

    Windows XP App

    The error is: The procedure entry point SetupDiGetDevicePropertyW could not be located in the dynamic link library SetupAPI.dll
  13. JDRenk

    Windows XP App

    It looks like XP doesn't support SetupDiGetDevicePropertyW. Any thoughts?
  14. JDRenk

    Comport Serial Port help

    First, I am new to programming, but have many, many years experience as an EE/designer. I am trying to read an A/D that sends 24 bit two's complement data out a UART using Winsoft Comport. It is working to the point I can read data as an ANSI String, but I don't know how to read it as two's complement data. Any help would be greatly appreciated.
  15. JDRenk

    Comport Serial Port help

    All sensors are working and I'm logging data! I would like to display live data trends and see TChart should do that, but I can't find it. Is it not available in the Community Edition 10.4?
  16. JDRenk

    Comport Serial Port help

    Thanks again. That code works in converting to a string, although I am getting what seem to be random memory errors.
  17. JDRenk

    Comport Serial Port help

    Thanks, but I don't quite understand how to apply that. I'm new to this. This is my procedure: procedure TForm2.ComPort3RxChar(Sender: TObject); var Buffer3 : array[0..14] of Byte; Result3: array[0..3] of byte; begin ComPort3.Read(@Buffer3,15); Move(Buffer3[7],Result3,4); end; Result3 is the float32_t buffer I am using Delphi 10.4 Community Edition
  18. JDRenk

    Comport Serial Port help

    Thanks, I now have that Com Port and sensor working OK. Now I have another sensor and Com Port that are totally different. This one returns a 4 byte float32_t value. I have the 4 bytes in an array of bytes. How would I convert that to a decimal string?
  19. JDRenk

    Comport Serial Port help

    I am aware that the data doesn't come in one read so I delayed the read to allow the buffer to fill and also am using a comport monitor to verify the correct # of bytes. All looks correct.
  20. JDRenk

    Comport Serial Port help

    Thank you. Now I'm having success in debugger mode, but when I run without debugger on I get "'$' is not a valid integer value." The result is correct, just the pop up issue. It is coming from the StrToInt because if I change the $ to 0x I get the 0x in the message.
  21. JDRenk

    Comport Serial Port help

    This is what I have: procedure TForm2.ComPort1RxChar(Sender: TObject); var A : integer; Buffer1 : AnsiString; Result1 : AnsiString; begin Buffer1 := ComPort1.ReadAnsiString; Result1 := Copy(Buffer1,21,8); A := StrToInt ($Result1); end; But it is saying StrToInt is overloaded, not sure what that means.
  22. JDRenk

    Comport Serial Port help

    I am using Delphi 10.4 Community Edition. I don't believe it has a Systems.AnsiStrings unit. The COPY function seems to work. My next issue is......... Copy gives me an eight character string of a HEX value, (eg. 1289ABEF). How do I convert that to its Integer value (eg. 311012335)?
  23. JDRenk

    Comport Serial Port help

    Ok, I have a better handle on this. Since I am getting data back from different sensors via 3 UARTs, I found the best way for all is to read an ANSIString or byte by byte into a buffer. The data contains other information I need to discard. So how would I select characters i->j out of k total? "xxxxxxxxixxxxxxjxxxxxxxxxxk" Thanks, Jeff
  24. JDRenk

    Comport Serial Port help

    Thank you all for your advice. As I said I am new to programming and simply need to understand things better.
  25. JDRenk

    Comport Serial Port help

    The A/D only sends 3 bytes at a time. I am looking at WinSoft's ComPort demo to get an idea of what to do.
×