GW Instek GDS-2000 series Programming manual User Manual
Page 93
GDS-2000 Series Programming Manual
93
Appendix A: How can we convert the hexadecimal format to a floating point
format
Question: As the previous example listed on page 32, how can the hexadecimal
value of “0Ч34 0Ч56 0ЧBF 0Ч94” transfer to 200ns?
Answer:
just use the attached C language program:
#include
int main()
{
union data
{
char a[4];
float f;
} myData;
myData.a[0]=0x94; /* little-endian byte ordering here, */
myData.a[1]=0xBF; /* so, the last of 0x94 should be placed */
myData.a[2]=0x56; /* in the first order. */
myData.a[3]=0x34;
printf("Here is the Data:\n%0x\n%0x\n%0x\n%0x\n%.3e\n",\
myData.a[0]&0xff,
myData.a[1]&0xff,
myData.a[2]&0xff,
myData.a[3]&0xff,\
myData.f );
return 0;
}
and the output result is following: 2.000e -007=200ns
See also other documents in the category GW Instek Equipment:
- GDB-03 (99 pages)
- GLA-1000 Series User Manual (111 pages)
- GLA-1000 Series Quick start guide (20 pages)
- GOS-630FC (20 pages)
- GOS-635G (36 pages)
- GOS-6000 Series (27 pages)
- GOS-6103C (30 pages)
- GOS-6100 Series (30 pages)
- GRS-6000A Series (51 pages)
- GDS-122 Installation Guide (4 pages)
- GDS-122 User Manual (52 pages)
- GDS-2000A series CAN/LIN bus User Manual (18 pages)
- GDS-2000A series Quick start guide for DS2-FGN (6 pages)
- GDS-2000A series Freewave User Manual (26 pages)
- GDS-2000A series Quick start guide for Logic analyzer option (18 pages)
- GDS-2000A series Quick start quide for DS2-LAN (2 pages)
- GDS-2000A series Option User Manual (80 pages)
- GDS-2000A series User Manual (261 pages)
- GDS-2000A series Programming Manual (272 pages)
- GDS-2000A series Single sheet for LA Quick start guide (2 pages)
- GBS-1000 Series Programming Manual (88 pages)
- GBS-1000 Series User Manual (187 pages)
- GDS-1000-U Series firmware upgrade (1 page)
- GDS-1000-U Series Programming Manual (70 pages)
- GDS-1000-U Series Quick start guide (2 pages)
- GDS-1000-U Series User Manual (133 pages)
- GDS-1000A-U Series Programming Manual (88 pages)
- GDS-1000A-U Series Quick start guide (2 pages)
- GDS-1000A-U Series User Manual (148 pages)
- GDS-3000 Series GCP-530/1030 current probe User Manual (40 pages)
- GDS-3000 Series GDP-025/050/100 differential probe User Manual (21 pages)
- GDS-3000 Series DS3-PWR Power analysis manual (37 pages)
- GDS-3000 Series User Manual (209 pages)
- GDS-3000 Series Programming Manual (103 pages)
- GDS-3000 Series DS3-SBD Serial Bus decode (29 pages)
- GDS-3000 Series GKT-100 deskew fixture User Manual (1 page)
- GDS-3000 Series GUG-001, GPIB to USB adapter User Manual (15 pages)
- GDS-300 Series User Manual (188 pages)
- GDS-300 Series Programming Manual (139 pages)
- GDS-300 Series Quick start guide (21 pages)
- GRF-3300 Series Student Manual (26 pages)
- GRF-3300 Series Teacher Manual (26 pages)
- GRF-1300A (124 pages)
- GSP-810 User Manual (40 pages)
- GSP-810 Software Manual (3 pages)