Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending Byte List
#13
It is a fiber optic strain gauge reader. I do have documentation but it is sparse and proprietary & 'I am not to divulge it to anyone for any purpose'.
My apology, I don't mean to be cagey- I have to. Your help is invaluable.
Sorry I missed the 'true by default' on the read Uint16's the first time... the fact it's there is brilliant.
Though I quickly coded serial lines to handle what it is sending currently I know you are right, I need to read each packet separately so that if the series changes I will handle it. I am reading the number of sensors and setting dynamic array lengths with it so this must involve extensive error checking too.

'You still have to packetize the raw bytes you receive, so let Indy handle that for you.'

I'm not sure what you mean there but it sounds fabulous. Using the Uint16 read I place the data in record variables and a dynamic array sized by the number of sensors value I read last night successfully for the first time. I am interested in the bytes to record and record to bytes routines that I've seen briefly are in Indy, the help that shipped with Delphi 10.2 Tokyo is extensive. In the past I've used pointers to records to overlay the buffer for reading the values, here the records are so small I just read the bytes.

This morning I have the IO working, converting the raw sensor data to useful units, and displaying it in an oscilloscope component as the data streams from the device! I have a test coupon with one gauge I can bend to change the data real time, copied into a number of channels for testing.

Now to enjoy the labor Day weekend here, I have Monday off!
Reply


Messages In This Thread
Sending Byte List - by krshin - 08-22-2018, 07:19 PM
RE: Sending Byte List - by rlebeau - 08-22-2018, 08:27 PM
RE: Sending Byte List - by krshin - 08-23-2018, 05:52 AM
RE: Sending Byte List - by rlebeau - 08-23-2018, 10:32 PM
RE: Sending Byte List - by CaptRick - 08-29-2018, 11:43 AM
RE: Sending Byte List - by rlebeau - 08-29-2018, 06:22 PM
RE: Sending Byte List - by CaptRick - 08-29-2018, 10:50 PM
RE: Sending Byte List - by CaptRick - 08-31-2018, 10:38 AM
RE: Sending Byte List - by rlebeau - 08-31-2018, 05:10 PM
RE: Sending Byte List - by CaptRick - 08-31-2018, 09:02 PM
RE: Sending Byte List - by rlebeau - 08-31-2018, 09:35 PM
RE: Sending Byte List - by CaptRick - 08-31-2018, 09:46 PM
RE: Sending Byte List - by CaptRick - 09-01-2018, 12:46 PM
RE: Sending Byte List - by CaptRick - 09-04-2018, 03:35 PM
RE: Sending Byte List - by rlebeau - 09-04-2018, 06:32 PM
RE: Sending Byte List - by kudzu - 09-05-2018, 02:28 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)