How To Set Up A Fixed Laser Source - Agilent Technologies 8163A Programming Manual

Lightwave multimeter; lightwave measurement system; lightwave multichannel system
Hide thumbs Also See for 8163A:
Table of Contents

Advertisement

VISA Programming Examples
192
How to Set up a Fixed Laser
Source
This example sets up a fixed laser source.
Install a Laser Source in Slot 2, before executing this example.
#include <stdio.h>
#include <stdlib.h>
#include <visa.h>
/* function prototypes for this examples */
/* function for simple error handling explained in example 1 */
void checkError(ViSession session, ViStatus err_status );
void main (void)
{
ViStatus
errStatus;
ViSession
defaultRM;
variable*/
ViSession
vi;
ViChar
c;
ViReal32 wavelength;
/* initialize the visa library (see example 1) */
errStatus = viOpenDefaultRM (&defaultRM);
if(errStatus < VI_SUCCESS)
{
printf("Failed to open VISA Resource manager\n");
exit(errStatus);
}
/* Open session to GPIB device at address 20;*/
errStatus = viOpen (defaultRM, "GPIB::20::INSTR",
VI_NULL,VI_NULL,&vi);
if(errStatus < VI_SUCCESS)
{
printf("Failed to open instrument\n");
exit(errStatus);
}
/*set timeout to 20 sec; this should work for all commands except
zeroing */
Agilent 8163A/B, 8164A/B & 8166A/B Mainframes, Fifth Edition

How to Set up a Fixed Laser Source

/* returned error code from visa call */
/* default visa resource manager
/* current session handle */
/* used in the keyboard wait loop */
/* wavelength of the laser source */

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

8166a8166b8163b8164a8164b

Table of Contents