13.07.2015 Views

Model SR715 Model SR720 LCR Meters

Model SR715 Model SR720 LCR Meters

Model SR715 Model SR720 LCR Meters

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

REMOTE PROGRAMMINGEXAMPLE PROGRAM 2Using Microsoft C with the Capital Equipment Corp. (CEC) GPIB card on the IBM PC.To successfully interface the <strong>SR715</strong>/720 to a PC via the GPIB interface, the instrument, interface card, andinterface drivers must all be configured properly. To configure the <strong>SR715</strong>/720, the GPIB address must be setusing the switches SW2 on the rear panel.Make sure that you follow all the instructions for installing the GPIB card. The CEC GPIB card needs to belocated in memory where it will not conflict with any other devices in the PC.Once the hardware is configured, use "TRTEST". This terminal emulation program (supplied by CEC) allowsyou to send commands to the <strong>SR715</strong>/720 directly from your computer's keyboard. If you cannot talk to the<strong>SR715</strong>/720 via "TRTEST", then your programs will not run./*************************************************************************************//*This program demonstrates the use of the <strong>SR720</strong>'s binary return format. A measurement is taken andreturned to the computer along with the type of reading (R,L,Q, etc.) and measurement status.This program is written in Microsoft C version 5.1. The header file for the GPIB interface is ms-c488.h(supplied by Capitol Equipment Corp). To compile this program, use CL/AL/c. Then link the resulting object filewith GPIB.OBJ (supplied by CEC).*/#include #include #include #include #define sr720 17 /* GPIB address (make this equal to the <strong>SR720</strong> address on SW2 *//* function prototypes */void main (void);void InitGpib (void);void TxGpib (int,char *);void GetGpib (int);void MakeTalk (int);void StatCheck (int);/* Global variables */int status, length, count;char recv[80];unsigned char data[100];/* Major and minor parameter types */char mmaj[4][20] = {"Resistance", "Inductance", "Capacitance", "Capacitance"};char mmin[4][20] = {"Q", "Q", "Dissipation", "Resistance"};void main (){float maj,min;int seg,mtype,errs;InitGpib ();TxGpib (sr720,"*RST;MMOD1;PMOD0");/* reset <strong>LCR</strong> meter, triggered mode, set to automeasurement mode */4-14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!