Trying to retrieve data from a device that will send it back to me as mixed ASCII and binary. I can read the ASCII part of the string, but cannot convert the binary into a number (sent as IEEE floating point).
I receive: 6 bytes of ASCII then 5 bytes of binary, with the first binary byte being in integer between 1 and 6 and the following four representing an IEEE floating point number. Ignoring the floating point for now, I am struggling to convert my 7th byte into an integer, having been returned from the control as an ASCII string. If I can get this working a should be able to apply the same principal to the final four bytes to get my floating point number.
I have tried changing the InputMode for the COM control before reading the binary data but this does not seem to work - is this even allowed, I'm not sure.
Any suggestions?