Appendices
Binary Upload of Logged Data
C
C-3
0, 0x3f, 2, 1, 0x30, 4, /* dst[0] from src[0] and src[1] */
1, 0x0f, 4, 2, 0x3c, 2, /* dst[1] from src[1] and src[2] */
2, 0x03, 6, 3, 0x3f, 0, /* dst[2] from src[2] and src[3] */
};
auto unsigned char n;
auto struct nibtab_s *t;
auto unsigned char tmpsrc[4];
auto int dst_bytes;
/* Number of bytes created */
dst_bytes = 0;
/* Process src in chunks of four */
while (*src) {
/* Copy source, filing "holes" at end with zeros */
for (n = 0; n < 4; n++) {
if (*src)
tmpsrc[n] = *src++ - ’0’;
else
tmpsrc[n] = 0;
}
/* Mung source into destination */
for (t = nibtab; t < &nibtab[3]; t++) {
*dst = (tmpsrc[t->lindex] & t->lmask) << t->lshift;
*dst |= (tmpsrc[t->rindex] & t->rmask) >> t->rshift;
dst++;
ds+;
}
}
return (dst_bytes);
}
Figure C-1. ASCII String Decoding
The raw data output array contains the information listed below. Note that the number of
floating point values is equal to the number of channels in use, plus one. (The totalizer
count is always present in the data, and is stored as a floating point number.)
•
Time stamp (BCD format)
byte0: hours
byte1: minutes
byte2: seconds
byte3: month
byte4: date
byte5: year
•
Temperature units, measurement rate, and I/O
Summary of Contents for 2635A
Page 8: ...2635A Users Manual vi...
Page 26: ...2635A Users Manual xxiv...
Page 29: ...Preparation for Use Introduction 1 1 3...
Page 50: ...2635A Users Manual 1 24...
Page 53: ...Front Panel Operations Summary of Front Panel Operations 2 2 3...
Page 88: ...2635A Users Manual 2 38...
Page 180: ...2635A Users Manual 5 10...
Page 212: ......
Page 234: ...2635A Users Manual B 4...
Page 250: ...2635A Users Manual D 8...
Page 251: ...E 1 Appendix E 8 Bit Binary Coded Decimal Table...
Page 264: ...Hydra Memory Card Record DATA FILES SET UP FILES DATxx Application Note SETxx Application Note...
Page 268: ...2635A Users Manual 4...