Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
FLIP.MAC Flip Magnet | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Other hardware Tools | ||||||
Description:
| ||||||
Documentation:
Those macros add to standard scan facility (motor scans and time scan), the possibility of flipping magnet polarity or whatever at counting. The data are plotted in additional windows and saved to standard DATAFILE in additional columns. EXAMPLE SETUP
INTERNALS %{%<A NAME="INTERNALS_1"></A>%}% %{%<A NAME="INTERNALS_2"></A>%}% DEPENDENCIES The file flip.mac has to be read in. It also needs: | ||||||
Macros:
Usage: flipsetup [sleep] General initialisation and default settings. One can specify here the time to wait after flipping has occured. flipinit Usage: flipinit Initialises internal macros and set defaults. Called by flipsetup. flipunsetup Usage: flipunsetup Remove flip software. flipstyle Usage: flipstyle [[number (always even)] [flag]] | | [style_string] Sets the number of countings and flippings. If flag is zero, flipping occurs between each couting; if it is 1, I dont know how to explain it, but the style_string way might help. It is a string of + and - ordered along with the flippings. e.g. +-+- would mean 4 countings flipped (flipstyle 4), +--+ is also 4 countings, but not flipped at the middle. It is flag 1. (flipstyle 4 1). There must be as many negative as positive countings for it works, and it will neither allow an odd number of countings. Means that allowed entries are 1, 2, 4 0, 4 1, or +--+, or +-+-. +-+--+-+ would also work, but not +-++-+... flipcounterselect Usage: flipcounterselect [ALL|mnemonic] [mnemonic] [mnemonic] ... Select the counters that will be plotted in flip window. flipsave Usage: flipsave [ALL|mnemonic] [mnemonic] [mnemonic] [mnemonic] Select the counters that will be dumpped their content to the file for additionnal measurements produced by flip. flipresetcontrol Usage: flipresetcontrol Remove any flip controller installed. fliphdwsim Usage: fliphdwsim Install a simulation of a hardware flipping. fliphdwrelay Usage: fliphdwrelay <relay_device_server_name> needs dio.mac macros. Install one CS Relay device server to control the flipping. Relay opens for negative polarity and closes for positive. fliphdwpulse Usage: fliphdwpulse <pulsedrelay_device_server_name> <pulse_time> needs dio.mac macros. Install one CS Pulsed Relay device server to control the flipping. Flipping occurs on relay pulsing. fliphdwdacpulse Usage: fliphdwdacpulse <dac_device_server_name> <pulse_time> <rest_voltage> <pulse_voltage> Install one DAC (icv712) output to control the flipping. Flipping occurs when output pulses. fliphdwdacpulse1 Usage: fliphdwdacpulse1 <dac_device_server_name> <pulse_time> <pulse_voltage> <rest_voltage> Install one DAC (icv712) output to control the flipping. Goes to positive polarity when pulse is positive, and to negative when pulse is negative. fliphdwdac Usage: fliphdwdac <dac_device_server_name> <positive_voltage> <negative_voltage> Install one DAC (icv712) output to control the flipping. Goes to positive polarity when <positive_voltage> is applied, and to negative when <negative_voltage> is applied. fliphdwdio Usage: fliphdwdio <dio_actuator_name> needs dio.mac macros and diosetup done. Install one DIO channel to control the flipping. This works only if diosetup has been done. Otherwise, use fliphdwrelay or fliphdwpulse. fliphdwsd Usage: fliphdwsd needs sdlin.mac macros and sdsetup Install the Sodilec BOS/S Power Supply to control the flipping. fliphdwoxford Usage: fliphdwoxford <oxpssetup_device_number> needs oxPS1.mac macros, and oxpssetup Install an Oxford PS 180 or 120 type Power Supply to control the flipping. <oxpssetup_device_number> starts from 1. flipcaldelta Usage: flipcaldelta Install some online DELTA calculation. flipcaldeltaoff Usage: flipcaldeltaoff Un-install delta calculation. flipcalaverage Usage: flipcalaverage Install some online AVERAGE calculation. flipcalaverageoff Usage: flipcalaverageoff Un-install average calculation. flip Usage: flip <standard_usual_scan_command> Does the flip scan. flipon Usage: flipon Hooks the flip to standard scans. flipoff Usage: flipoff Detach the flip from standard scans. flipsplot Usage: flipsplot Screen plot of flip data. flippplot Usage: flippplot [detector-mnemonic] [detector-mnemonic] ... flip data printer plot, pplot like. flipcplot Usage: flipcplot [detector-mnemonic] [detector-mnemonic] ... flip data cplot, cplot like. flipstat Usage: flipstat Shows what is installed. | ||||||
Internal Macros: | ||||||
Usage: _flip_config Configuration macro. (config_mac) _flip_style_keep_request Usage: _flip_style_keep_request _flip_Fhead Usage: _flip_Fhead _cols update and File output formatting. (Fheader). _flip_Foutput Usage: _flip_Foutput Compiles the global variables FLP_OUT and FLP_LABEL out of the flip style set up. Both are used for printing out flip data to scan file. Each counter name is added a suffix like "_1", for each measurement over the regular one. e.g.: FLP_LABEL = "Counter 1 Counter 2" or "Counter 1 Counter 2 Counter 1_1 ..." FLP_OUT = ",FLPDAT[NPTS][1],FLPDAT[NPTS][2]" flip_Foutput_old Usage: flip_Foutput_old _flip_Flab Usage: _flip_Flab (Flabel) _flip_delta Usage: _flip_delta DELTA online calculations. i.e. substracts negative countings from positive countings, stores the result in FLPDELTA array, and plots it out. _flip_average Usage: _flip_average AVERAGE online calculations. i.e. average all countings, stores the result in FLPAVER array, and plots it out. _flip_heading Usage: _flip_heading Scan heading string. (HEADING) _flip_count Usage: _flip_count (scan_count). Here is the flipping_counting manager. _flip_cleanup Usage: _flip_cleanup Cleanup macro. (user_cleanup2) _flip_rplot Usage: _flip_rplot <filter_num> <data_array_name> [window_title] Running scan plot for all flip data. _flip_splot Usage: _flip_splot <filter_num> <data_array_name> Final scan plot for all flip data. _flip_plotwhat Usage: _flip_plotwhat (number_of_countings) Returns FLPDAT array index string of what to plot. _flip_cplot Usage: _flip_cplot Does for cplot. _flip_y Usage: _flip_y Compiles Y index string to pass to cp_mplot. menu_2lists Usage: menu_2lists(list,sz,list0,sz0) Menu stuff. flipbody Usage: flipbody(mode) For use of blmenu (use blmenu.mac). | ||||||
|