12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

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.

66.FOURC> getcounts; printf("%s = %g\n%s = %g\n%s = %g\n",\67.cont> S_NA[0], S[0]/1000, S_NA[1], S[1], S_NA[2], S[2])seconds = 1monitor = 347detector = 3503168.FOURC>The first scaler, labeled seconds ,isusually fed a 1 kHz signal, so it actually tracksmilliseconds and is therefore divided by 1000. The number of scalers availabledepends on the particular hardware and the number of detectors and monitors used.The default scaler channel numbering for the first three scalers puts a 1 kHz timesignal in scaler 0, monitor counts in scaler 1 and detector counts in scaler 2.Youcan also count to a fixed number of monitor pulses, rather than to a fixed timeperiod.68.FOURC> mcount(1e4)69.FOURC> getcounts; printf("%s = %.1f\n%s = %g\n%s = %g\n",\70.cont> S_NA[0], S[0]/1000, S_NA[1], S[1], S_NA[2], S[2])seconds = 28.8monitor = 10000detector = 1.00954e+671.FOURC>Counting is asynchronous, i.e., the tcount() and mcount() functions return immediatelyafter starting the clock. They do not wait until the counting period is over. Usethe wait() function to determine when counting is finished.Auseful macro has been written to count and print the scaler contents:71.FOURC> ct 5Thu Aug 20 19:11:51 1987Seconds = 5 Detector = 175103 (35020.6/s) Monitor = 1730 (346/s)72.FOURC>If the argument is omitted, a default count time (stored in the global variable COUNT )is used. Apositive argument to ct signifies seconds; a negative argument signifiesmonitor counts.72.FOURC> ct -10000Thu Aug 20 19:13:42 1987Seconds = 28.3 Detector = 1.0434e6 (36869.3/s) Monitor = 10000 (353.36/s)73.FOURC>INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION USER MANUAL AND TUTORIALS 33

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

Saved successfully!

Ooh no, something went wrong!