GPIB Operation Programming Examples
ML2437A/38A OM/PM PN: 10585-00001 Rev. P 8-139
bin_data.cval[3] = *cptr++;
bin_data.cval[0] = *cptr++;
bin_data.cval[1] = *cptr++;
real_data2[loop++] = bin_data.fval;
count += 8;
}
real1_entries = loop;
real2_entries = loop;
}
else if (decode_type == CAL_FACTOR_BINARY_DATA)
{
/* Decode header */
/* Read length of binary data*/
ch_val[0] = buffer[6];
ch_val[1] = buffer[7];
ch_val[2] = NULL;
length = atoi(ch_val);
/* Point after the comma */
cptr = &buffer[9];
/* Read the table identity */
count = 8;
for (loop = 0; loop < count; loop++)
{
ident[loop] = *cptr++;
length—;
}
ident[count] = NULL;
/* Read number of entries*/
bin_data.cval[0] = *cptr++;
bin_data.cval[1] = *cptr++;
bin_data.cval[2] = 0;
bin_data.cval[3] = 0;