12.07.2015 Views

Time Interval and Frequency Counter

Time Interval and Frequency Counter

Time Interval and Frequency Counter

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.

30 Programming Comm<strong>and</strong>ssynchronization to be achieved using thesynchronization comm<strong>and</strong>s.There is no need to wait between comm<strong>and</strong>s. TheSR620 has a 256 character input buffer <strong>and</strong>processes comm<strong>and</strong>s in the order received. If thebuffer fills up the SR620 will hold off h<strong>and</strong>shakingon the GPIB <strong>and</strong> attempt to hold off h<strong>and</strong>shakingon RS232. If the buffer overflows the buffer will becleared <strong>and</strong> an error reported. Similarly, theSR620 has a 256 character output buffer to storeoutput until the host computer is ready to receiveit. If the output buffer fills up it is cleared <strong>and</strong> anerror reported. The GPIB output buffer may becleared by using the Device Clear universalcomm<strong>and</strong>.The present value of a particular parameter maybe determined by querying the SR620 for itsvalue. A query is formed by appending a questionmark "?" to the comm<strong>and</strong> mnemonic <strong>and</strong> omittingthe desired parameter from the comm<strong>and</strong>. Ifmultiple queries are sent on one comm<strong>and</strong> line(separated by semicolons, of course) the answerswill be returned in a single response line with theindividual responses separated by semicolons.The default response terminator that the SR620sends with any answer to a query is carriagereturn-linefeed on RS232 <strong>and</strong> linefeedplus EOI on GPIB. The RS232 terminator may bechanged using the ENDT comm<strong>and</strong>, while theGPIB terminator is fixed. All comm<strong>and</strong>s returninteger results except as noted in individualcomm<strong>and</strong> descriptions.Examples of Comm<strong>and</strong> FormatsTERM 1, 1 Sets the A channel inputimpedence to 1 Mohm (2parameters).TERM? 1 Queries the A inputtermination (query of 2parameter comm<strong>and</strong>)..*IDN? Queries the deviceidentification (query, noparameters).STRT Starts a measurement noparameters).MODE 1 ; MODE? Sets mode to width (1) thenqueries the mode.Detailed Comm<strong>and</strong> Listsequence consists of parameters. Multipleparameters are separated by commas.Parameters shown in {} are optional or may bequeried while those not in {} are required.Comm<strong>and</strong>s that may be queried have a questionmark? in parentheses (?) after the mnemonic.Comm<strong>and</strong>s that may ONLY be queried have a ?after the mnemonic. Comm<strong>and</strong>s that MAY NOTbe queried have no?. Do not send ( ) or { } as partof the comm<strong>and</strong>.Variable i is an integer that selects an inputchannel for the comm<strong>and</strong>:i Channel0 External input1 A input2 B inputThe variables j,k,l,m, <strong>and</strong> n are also integers. Thevariable x is a real number.All variables may be expressed in integer, floatingpoint or exponential formats ( ie., the number fivecan be either 5, 5.0, or .5E1).IMPORTANT NOTE: ALL of the front panelsettings to the left of the "CONFIG" button, <strong>and</strong> theJITTER type (Allan variance or st<strong>and</strong>ard deviation)are properties of the present operating mode <strong>and</strong>are saved when the mode is changed. Thus, if themode is changed the previous settings of theseparameters in the new mode will automatically beset. The programmer MUST be careful to set allrelevant parameters each time the mode ischanged to prevent conflicts between thepresumed <strong>and</strong> actual states of the instrument.Trigger Control Comm<strong>and</strong>sLEVL(?)i {,x}The LEVL comm<strong>and</strong> sets, or reads, the triggerthreshold for channel i. If the SR620 is in theautolevel mode, this comm<strong>and</strong> will turn off theautolevel mode <strong>and</strong> set the desired threshold.The trigger level set by the LEVL comm<strong>and</strong> willremain in effect until the front panel knob isrotated. In remote mode the front panel knob isignored. If the trigger level is queried (LEVL? i )the answer returned is a floating point number with2 digits to the right of the decimal point, forexample, -1.07.The four letter mnemonic in each comm<strong>and</strong>sequence specifies the comm<strong>and</strong>. The rest of theSR620 Universal <strong>Time</strong> <strong>Interval</strong> <strong>Counter</strong>

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

Saved successfully!

Ooh no, something went wrong!