How To Co-Ordinate Two Modules - Agilent Technologies 8163A Programming Manual

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

Advertisement

How to Co-ordinate Two Modules

Agilent 8163A/B, 8164A/B & 8166A/B Mainframes, Fifth Edition
How to Co-ordinate Two
Modules
This example shows the interaction of two modules in the same frame.
Install a Power Sensor in Slot 1 and a Laser Source in Slot 2 and connect
the Laser Source output to the Power Sensor input, before executing this
example.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <visa.h>
/* function prototypes for this examples */
/* function for a simple error handling explained in example 1 */
void checkError(ViSession session, ViStatus err_status );
void main (void)
{
ViStatus
errStatus;
ViSession
defaultRM;
*/
ViSession
vi;
ViChar
replyBuf[256]; /* buffer holding answers of the
instrument */
ViChar
c;
ViInt32
i;
ViInt32
cmdDone;
/* First get initialized 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; */
VISA Programming Examples
/* returned error code from visa call */
/* default visa resource manager variable
/* current session handle */
/* used in the keyboard wait loop */
/* loop counter */
/* return value for OPC command */
199

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

8166a8166b8163b8164a8164b

Table of Contents