Data? Example For Digital Channels - Agilent Technologies Infiniium 8000A Programmer's Reference Manual

Table of Contents

Advertisement

/* readdig. c */
/* Reading Byte and Word format Example.
commands suggested for operation of the Infiniium oscilloscope by LAN or GPIB.
This program initializes the scope, acquires data, transfers data in both the
BYTE and WORD formats, converts the data into hex, octal, binary and time values,
and stores the data in a file as comma-separated values.
for spreadsheet applications.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sicl.h"
/* Prototypes */
int InitIO( void );
void WriteIO( char *buffer );
unsigned long ReadByte( char *buffer, unsigned long BytesToRead);
unsigned long ReadWord( short *buffer, unsigned long BytesToRead);
void ReadDouble( double *buffer );
void CloseIO( void );
void AcquireData( void );
void GetTimeConversionFactors( void );
void CreateTimeData( unsigned long AcquiredLength,
void WriteCsvToFile( double *TimeValues, unsigned short *wordData,
unsigned long SetupDataTransfer( double lTime, double rTime );
int Round( double number );
/* Defines */
#define MAX_LENGTH 8192000
#define LAN
#ifdef LAN
#define INTERFACE "lan[130.29.71.202]:hpib7,7"
#else
#define INTERFACE "hpib7"
Waveform Commands

DATA? Example for Digital Channels

DATA? Example for Digital Channels
The following C example shows how to transfer both BYTE and WORD
formatted waveform data for digital channels to a computer. There is a file on
the Infiniium Oscilloscope Example Programs disk called readdig.c in the c
directory that contains this program.
/* location of: printf() */
/* location of: atof(), atoi() */
/* location of: strlen() */
double *TimeValues );
unsigned char *byteData, unsigned long AcquiredLength);
30-26
This program demonstrates the order of
This format is useful

Advertisement

Table of Contents
loading

Table of Contents