Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
So you need to get a pointer to your Single value, and a pointer to a string, then you need to use the CopyMemory from kernel32 to copy data from the memory position of the single , to the string... then reorder the string so that each byte of the single be at a character position...
after this you will be able to transmit the characters trough the com port..
You will need to cast the data bytes on the other end of com line in order to be able to use the single value again...
note: Keep in mind that you need to do it considering both Sender and receiver memory formats (big-endian or little-endian)
OR
You can just print the Single value to string and send the ASCII values trough com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.