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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

vme_put32(addr, data [, dmode ]) — Writes data to addr in the A32 address space.vme_move(from, to [ cnt [, dmode ]]) — Copies data between a <strong>spec</strong> data arrayand VME A32 address space. One of the from and to arguments must be thename of a <strong>spec</strong> data array while the other must be a VME address. If theoptional argument cnt is present, it designates how many data items (notbytes) to copy. Ifmissing or zero, the number of elements in the array iscopied.Miscellaneousreconfig — Reconfigures the hardware. This command obtains any modified configurationinformation, including hardware devices and types, CAMAC slotassignments and motor parameters and settings, from the config and settingsfiles. The sequence of events is as follows:First, <strong>spec</strong> waits for all asynchronous activity (moving and counting) to finish.It then does a sync of the motor controller registers, comparing them with theinternal program positions. Next, all open devices are closed. The config file isthen read to obtain the configuration information, and the program opens andpossibly does hardware presence tests on the selected devices. Finally, theinternal program motor positions are updated from the settings file and thenresynchronized with the motor hardware.set_sim(how) — If how is 0, simulate mode is turned off. If how is 1 (or positive), simulatemode is turned on. In either case the program waits for moving andcounting to finish before changing the mode, and the function returns the previousmode (0 or 1). If how ¡££¢£¢§ £ ¢¥¨ ¡ ¥¤ § £ ¡¤£ § § ££¥¤ § §£value of simulation mode without changing it. Whenever simulation mode isturned off, the motor settings file is reread to restore the motor positions. Simulationmode cannot be turned off if <strong>spec</strong> was invoked with the¡flag.wait() — Waits for all asynchronous activity to complete. Returns true.wait(flag) — If flag has bit one set (1), waits for moving to finish. If flag has bittwo set (2), waits for counting to finish. If flag has bit three set (4), waits forother data acquisition (multi-channel scaling, for example) to finish. If flaghas bit five set (32), the function returns true if any of the activities flagged bythe first three bits are active, otherwise it returns false. Thus wait(35) (orwait(0x23) )returns true if either counting or moving is active.stop() — Stops all asynchronous activity. Returns true.INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION REFERENCE MANUAL 99

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

Saved successfully!

Ooh no, something went wrong!