Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 289

Table of Contents

Advertisement

int OutputLogicData(FILE* inputFile,
{
int success = 0;
if (waveformHeader->NWaveformBuffers == 2)
{
// Two Pods stored
unsigned char* podData1 = ReadLogicWaveform(inputFile, waveformHeader);
unsigned char* podData2 = ReadLogicWaveform(inputFile, waveformHeader);
if (podData1 && podData2)
{
// Output Time and Logic Data
int i;
for (i = 0; i < waveformHeader->Points; ++i)
{
double time = ComputeTimeFromIndex(i, waveformHeader);
fprintf(outputFile, "%e, %x%x\n", time, podData2[i], podData1[i]);
}
success = 1;
// Client is responsible for freeing memory
free(podData1);
free(podData2);
}
}
else
{
// Only a single pod
unsigned char* podData = ReadLogicWaveform(inputFile,
if (podData)
{
// Output Time and Logic Data
int i;
for (i = 0; i < waveformHeader->Points; ++i)
{
double time = ComputeTimeFromIndex(i, waveformHeader);
fprintf(outputFile, "%e, %x\n", time, podData[i]);
}
success = 1;
// Client is responsible for freeing memory
free(podData);
}
}
return success;
}
const tPBWaveformHeader* waveformHeader,
FILE* outputFile)
BIN Header Format
waveformHeader);
Disk Commands
13-35

Advertisement

Table of Contents
loading

Table of Contents