13.07.2015 Views

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

SHOW MORE
SHOW LESS

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

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

QuickBasic and QuickC ProgramsMicrosoft QuickC 2.0 ProgramCopyright (c) 1993, Keithley Instruments, Inc.IntroductionThe following program will continuously scan 160 channels using Group Execute Trigger (GET) as the channel control event.Requirements:• Keithley <strong>Model</strong> KPC-488.2AT IEEE-488 Interface Card installed in a PC or PC-compatible computer.• <strong>Model</strong> 7011 Multiplexer Card installed in slot 1 of the <strong>Model</strong> 7002.NOTEIn the absense of a <strong>Model</strong> 7011 switch card, this program can be run by assigning slot 1 of the <strong>Model</strong>7002 as a multiplexer simulator (9990). See paragraph 4.13.1 for details.Program:#include#include#include#include#include#include#define k7002 07main(){ time_t tstart,tend;int stat, l;long cntr;charcharcharchar/*** Reset 7002 ***/status, keych;cmd[255];ki2001[100];operstat[80];_clearscreen(_GWINDOW);initialize(21,0); /* Set Controller to Addr 21 */setoutputEOS(10,0); /* Set output EOS to ‘LF’ */setinputEOS(10); /* Set input EOS to ‘LF’ */settimeout(5000); /* Set timeout to 5 sseconds */send(k7002,”*RST”,&status); /* Send *RST to 7002 */time(&tstart);do time(&tend); while( (tend-tstart)

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

Saved successfully!

Ooh no, something went wrong!