EasyManuals Logo

Agilent Technologies 8719ET Programmer's Guide

Agilent Technologies 8719ET
541 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #377 background imageLoading...
Page #377 background image
7-14 Chapter7
Programming Examples
Measurement Setup Examples
// Channel 1
err_status = hp875x_channelSelect(vi, hp875x_CH1);
checkErr(vi, err_status);
// Turn auxiliary channel on.
err_status = hp875x_auxChannel(vi, hp875x_CH1, hp875x_ON);
checkErr(vi, err_status);
// Channel 2
err_status = hp875x_channelSelect(vi, hp875x_CH2);
checkErr(vi, err_status);
// Turn auxiliary channel on.
err_status = hp875x_auxChannel(vi, hp875x_CH2, hp875x_ON);
checkErr(vi, err_status);
// Channel 2 Insertion Loss measurement, no parameter conversion
// For 8719ET/8720ET/8722ET/8753ET, hp875x_S_PAR21 is interpreted as hp875x_TRANS
err_status = hp875x_measType(vi, hp875x_S_PAR21, hp875x_CONV_OFF);
checkErr(vi, err_status);
// Log magnitude and autoscale
err_status = hp875x_displaySelect(vi,hp875x_CH2,hp875x_DISP_DATA,hp875x_DISP_LOGM);
checkErr(vi, err_status);
err_status = hp875x_autoscale(vi);
checkErr(vi, err_status);
// Channel 3 Reflected Power measurement, no parameter conversion
err_status = hp875x_channelSelect(vi, hp875x_CH3);
checkErr(vi, err_status);
err_status = hp875x_measType(vi, hp875x_IN_MA, hp875x_CONV_OFF);
checkErr(vi, err_status);
// Log magnitude and autoscale
err_status = hp875x_displaySelect(vi,hp875x_CH3,hp875x_DISP_DATA,hp875x_DISP_LOGM);
checkErr(vi, err_status);
err_status = hp875x_autoscale(vi);
checkErr(vi, err_status);
// Channel 4 Transmitted Power measurement, no parameter conversion
err_status = hp875x_channelSelect(vi, hp875x_CH4);
checkErr(vi, err_status);
err_status = hp875x_measType(vi, hp875x_IN_MB, hp875x_CONV_OFF);
checkErr(vi, err_status);
// Log magnitude and autoscale
err_status = hp875x_displaySelect(vi,hp875x_CH4,hp875x_DISP_DATA,hp875x_DISP_LOGM);
checkErr(vi, err_status);
err_status = hp875x_autoscale(vi);
checkErr(vi, err_status);
// Display all 4 measurements, each in a separate graticule, Channel 3 in upper right
err_status = hp875x_dualSplit4Parm(vi, hp875x_DUAL_CHAN_ON, hp875x_DISP_4_GRAT,
hp875x_DISP_2_CHAN3_TOP, hp875x_DISP_4_CHAN3_UPR);
checkErr(vi, err_status);
// Wait for analyzer to finish
err_status = hp875x_opc_Q(vi, “WAIT”, &reply);
checkErr(vi, err_status);
// Close the session
err_status = hp875x_close(vi);
checkErr(vi, err_status);
printf(“Program completed\n”);
return(0);
}
ViStatus initialize(ViRsrc Nwa, ViBoolean id_query, ViBoolean do_reset, ViPSession
vi_ptr)
{

Table of Contents

Other manuals for Agilent Technologies 8719ET

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 8719ET and is the answer not in the manual?

Agilent Technologies 8719ET Specifications

General IconGeneral
BrandAgilent Technologies
Model8719ET
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals