Download Agilent Technologies Ininiium 90000 Technical data
Transcript
35 Sample Programs
#include
#include
#include
#include
<stdio.h>
<string.h>
<time.h>
<sicl.h>
/*
/*
/*
/*
#define SICL_ADDRESS
#define TIMEOUT
#define IEEEBLOCK_SPACE
/* Function prototypes */
void initialize(void);
void capture(void);
void analyze(void);
For printf(). */
For strcpy(), strcat(). */
For clock(). */
Agilent SICL routines. */
"lan[130.29.71.191]:inst0"
5000
500000
/* Initialize to known state. */
/* Capture the waveform. */
/* Analyze the captured waveform. */
void do_command(char *command);
/* Send command. */
int do_command_ieeeblock(char *command); /* Command w/IEEE block. */
void do_query_string(char *query);
/* Query for string. */
void do_query_number(char *query);
/* Query for number. */
void do_query_numbers(char *query);
/* Query for numbers. */
int do_query_ieeeblock(char *query);
/* Query for IEEE block. */
int do_query_ieeeblock_words(char *query);
/* Query for word data. */
void check_instrument_errors();
/* Check for inst errors. */
/* Global variables */
INST id;
/* Device session ID. */
char str_result[256] = {0};
/* Result from do_query_string(). */
double num_result;
/* Result from do_query_number(). */
unsigned char ieeeblock_data[IEEEBLOCK_SPACE];
/* Result from
do_query_ieeeblock(). */
signed short ieeeblock_data_words[IEEEBLOCK_SPACE];
/* Result from
do_query_ieeeblock_words(). */
double dbl_results[10];
/* Result from do_query_numbers(). */
/* Main Program
* --------------------------------------------------------------- */
void main(void)
{
/* Install a default SICL error handler that logs an error message
* and exits. On Windows 98SE or Windows Me, view messages with
* the SICL Message Viewer. For Windows 2000 or XP, use the Event
* Viewer.
*/
ionerror(I_ERROR_EXIT);
/* Open a device session using the SICL_ADDRESS */
id = iopen(SICL_ADDRESS);
if (id == 0)
{
printf ("Oscilloscope iopen failed!\n");
}
else
{
printf ("Oscilloscope session opened!\n");
}
1030
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
Related documents
Agilent Technologies Ininiium 9000 Technical data
Agilent Technologies Ininiium 90000 Specifications
Agilent Technologies Ininiium 90000 Specifications
Agilent Technologies 2000 X-Series Technical data
Agilent Technologies 86100A Technical data
Agilent Technologies InfiniiVision 3000 DSO-X 3054A Technical data
Agilent Technologies Ininiium 90000 Specifications
VDO MS 2000X - Technical data
(Agilent) 83495A Optical/electrical clock recovery
Agilent Technologies InfiniiVision 5000 Series Technical data
NCPlot™ v2.21 User Manual
NCPlot™ v2.26 User Manual