2635A
Users Manual
F-6
hydra.chan[ch].function = *fi+;
hydra.chan[ch].range = *fi+;
hydra.chan[ch].temperature = *fi+;
hydra.chan[ch].alarm_flags = *fi+;
fil= convert_float(&hydra.chan[ch].alarm_limit_1,
file_data);
fil= convert_float(&hydra.chan[ch].alarm_limit_2,
file_data);
hydra.chan[ch].alarm_assoc_1 = *fi+;
hydra.chan[ch].alarm_dr_1 = *fi+;
hydra.chan[ch].alarm_assoc_2 = *fi+;
hydra.chan[ch].alarm_dr_2 = *fi+;
fil= convert_float(&hydra.chan[ch].m, file_data);
fil= convert_float(&hydra.chan[ch].b, file_data);
hydra.chan[ch].m_dr = *fi+;
hydra.chan[ch].b_dr = *fi+;
fil= convert_float(&hydra.chan[ch].rtd_r0, file_data);
/* Create index to channel conversion table */
if (hydra.chan[ch].function != 0) {
index_to_chan[ma+] = ch;
}
}
/* Ignore trailing CRC bytes */
/* return number of bytes per scan record */
return (4 * max 12);
}
/*
-* convert_float(): Convert binary data stream to a floating point variable
**
** This routine assumes that both input and output are four-byte IEEE
** single-precision data in the DOS (Intel x86) architecture. This
** is very machine dependent. You may need to change this routine to
** fit the needs of your architecture.
**
** Inputs:
** float_dest Pointer to C floating point variable (destination).
** src Pointer to four bytes of binary file data.
**
** Outputs:
** float_dest Set to a floating point value.
**
** Returns:
** Number of bytes consumed (4)
*/
int
convert_float(float * dest, unsigned char * src)
{
unsigned char * byte_dest = (unsigned char *) dest;
*by+ = *src++;
*by+ = *src++;
*by+ = *src++;
*byte_dest = *src;
return sizeof(float);
}
Содержание 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...