Keysight N9320B Programmer's Manual page 59

Spectrum analyzer
Hide thumbs Also See for N9320B:
Table of Contents

Advertisement

Using Marker Delta Mode and Marker Minimum Search
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include "visa.h"
ViSession defaultRM, viN9320B;
ViStatus errStatus;
ViChar cIdBuff[256] ={0};
char cEnter = 0;
int iResult =0;
/*Set the input port to the 50MHz amplitude reference*/
void Route50MHzSignal()
{
viQueryf(viN9320B, "*IDN?\n", "%t", &cIdBuff);
/* prompt the user*/
/* to connect the amplitude reference output to the
input*/
printf ("Connect CAL OUT to the RF IN \n");
printf ("......Press Return to continue \n");
scanf( "%c",&cEnter);
/*Externally route the 50MHz Signal*/
viPrintf(viN9320B,"CAL:SOUR:STAT ON \n");
}
void main()
{
/*Program Variable*/
ViStatus viStatus = 0;
double dStartFreq =0.0;
double dStopFreq =0.0;
double dMarkerAmplitude = 0.0;
{
Programming Example
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents