How to Co-ordinate Two Modules
}
#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
ViSession
ViSession
ViChar
ViChar
ViInt32 i;
Agilent 8163A Lightwave Multimeter, Agilent 8164A Lightwave Measurement System, & Agilent 8166A Lightwave Multichannel
System, Third 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.
errStatus;
/* returned error code from visa call */
defaultRM;
/* default visa resource manager variable */
vi;
/* current session handle */
replyBuf[256]; /* buffer holding answers of the instrument */
c;
/* used in the keyboard wait loop */
/* loop counter */
VISA Programming Examples
143