Tuesday 15 February 2011

Receive binary 64-bit float from Matlab Simulink on UDP Server in c -


I get a binary 64 bit float on the udp server in the CD. Can I not convert the four array buf which any idea in the binary float number?

  RC = RicachFram (S, Buff, 90,0, (Sokkadar *) and Remote Edender, and Remand Edelen); If (rc == SOCKET_ERROR) {printf ("Fehler: recvfrom, fehler code:% d \ n", WSAGetLastError ()); System ("pause"); Return 1; } And {printf ("% d bytes amphafengan! \ N", RC); Buf [rc] = '\ 0'; } Printf ("Amphygen Day:% s \ n", Buff);    

I have the solution I send the binary code ... for example Dezimal 322 .. For example, if I send it 32 bits with 32 bits then I get it in four forms. One variable is 8 bit long ... decimal 322 i Reiceve 0 0 1 66 ... due to this Binary code 00000000 00000000 00000001 01000010 Each variable stands for 0 characters [2] for [3] 0 character [2] 2 and four [0] is 66 ... every four has its own 8 bit decimal number Iditv was that .. you get?

No comments:

Post a Comment