2635A
Users Manual
F-8
/* Set timestamp */
scan->bcd_hours = *fi+;
scan->bcd_minutes = *fi+;
scan->bcd_seconds = *fi+;
scan->bcd_month = *fi+;
scan->bcd_day = *fi+;
scan->bcd_year = *fi+;
/* Get digital I/O and totalizer values */
scan->dout = *fi+;
scan->dio = *fi+;
fil= convert_float(&scan->total, file_data);
/* Get measurement for each non-off channel in this scan */
for (index=0; index < max_index; index++) {
/* Convert index to channel */
ch = index_to_chan[index];
/* Read this channel’s scan data */
fil= convert_float(&scan->meas[ch], file_data);
}
}
Using the above routines to decode the configuration of a data file and get the contents
of the first scan record will require something like the following:
char * file = “DAT00.HYD”;
int fd;
unsigned char buf[730];
int record_size;
/* Open the binary data file name pointed to by “file” */
fd = open(file, (O_RDONLY | O_BINARY));
/* Read and interpret the configuration header in the file */
read(fd, buf, 730);
record_size = convert_config(buf);
/* Read and convert the scan measurements */
read(fd, buf, record_size);
convert_scan_record(buf, &scan);
Содержание 2635A
Страница 8: ...2635A Users Manual vi...
Страница 26: ...2635A Users Manual xxiv...
Страница 29: ...Preparation for Use Introduction 1 1 3...
Страница 50: ...2635A Users Manual 1 24...
Страница 53: ...Front Panel Operations Summary of Front Panel Operations 2 2 3...
Страница 88: ...2635A Users Manual 2 38...
Страница 180: ...2635A Users Manual 5 10...
Страница 212: ......
Страница 234: ...2635A Users Manual B 4...
Страница 250: ...2635A Users Manual D 8...
Страница 251: ...E 1 Appendix E 8 Bit Binary Coded Decimal Table...
Страница 264: ...Hydra Memory Card Record DATA FILES SET UP FILES DATxx Application Note SETxx Application Note...
Страница 268: ...2635A Users Manual 4...