legacy/
tripx.pro
NAME: tx_WACCU PURPOSE: This function add two spectra, using CATEGORY: . CALLING SEQUENCE: ??? tx_WACCU, xa, za, ea, na, OPER='+', xs, zs, es, ns INPUTS: XA: X data. WA: Y data. EA: Error data. NA: Normalisation vector. WB: An N-element vector of type: float, or double. KEYWORD PARAMETERS: OPER: If set to a non-zero value, computations are done in double precision arithmetic. EXAMPLE: Define an accumulator (a). a = [ 2.0, 1.0, 1.0] And operande (b). b = [3.0, 10.0, -5.0] Compute a = a + b. PROCEDURE: tx_WACCU.PRO uses data and to calculate a new scan REFERENCE: Filing (Alain Bouvet) MODIFICATION HISTORY:
Routines
tx_comb_accu, x_a, w_a, e_a, n_a, x_tolerance, file_factor, global_monitor, combine, x_s, w_s, e_s, n_s
result = tx_nb2str(number)
result = tx_pick_event(event)
tx_pick, pickbase, path, filter, file_list, file, owner, pfw_upd_but
tx_see, par1, par2, par3, par4, par5, par6, par7, par8, par9
tx_WACCU, xa, wa, ea, na, oper, xs, ws, es, ns, x_tol, n_factor, monitor
tx_commons
result = tx_bufferize(position, x, y, w, n, e, p)
result = tx_calculate(accu_nb, oper, read_nb, x_tol, str, txw_basec, factor, monitor)
result = tx_extract(partxt, line_tag, var_tag, value)
result = tx_get_buffer(position, accu_nb)
result = tx_get_step(partxt, Step_Name_Array, Step_Value_Array, Best_Step_Index)
result = tx_monitor_changed(tx_nsel, monitor, tx_codes)
result = tx_read(run, typ)
result = tx_script(tx_numor, y_txt, x_txt, monitor_txt)
tx_accumulate, accu_nb, str
tx_build_but, base, base_id, tx_codes, tx_eg_txt, txw_xbut, txw_wbut
tx_build_par, base
tx_calculate_ranges, which
tx_data_process
tx_end, wid
tx_export, workspace_number, OWN=OWN
tx_grant_w, wnb, x, y, w, n, e, tit, xtit, ytit, SubTit
tx_help, dummy, formu, formt
tx_initialize, nbwok
tx_save, export_str
tx_see_buffers
tx_plot, wid, wnb, x_range, y_range, type, PS=PS
tx_remove_points, wnb, removing_window
tx_reset_buffers
tx_send_msg, wid, txt_msg
tx_send_err_msg, wid, txt_msg
tx_store_parameters
tx_unscript, txt, tx_numor, y_txt, x_txt, monitor_txt
tx_update_ranges
tx_update_w, wnb, x, y, w, n, e
tripx_event, Event
tripx, Three_Axis=Three_Axis
Routine details
top tx_comb_accu
tx_comb_accu, x_a, w_a, e_a, n_a, x_tolerance, file_factor, global_monitor, combine, x_s, w_s, e_s, n_s
************************************************************************************** Apply file_factor on accu and data within the tolerance Thanks to Alain Bouvet
Parameters
- x_a
- w_a
- e_a
- n_a
- x_tolerance
- file_factor
- global_monitor
- combine
- x_s
- w_s
- e_s
- n_s
top tx_nb2str
result = tx_nb2str(number)
****************************************************************************** This function return the string of a number expression Leading and/or trailing spaces are removed.
Parameters
- number
top tx_pick_event
result = tx_pick_event(event)
****************************************************************************** This procedure parses the tx_pick events IN : the event generated by tx_pick interface OUT : Event are redistributed to tripx event (Search next Event_Func)
Parameters
- event
top tx_pick
tx_pick, pickbase, path, filter, file_list, file, owner, pfw_upd_but
****************************************************************************** This procedure creates the tx_pick interface The parameters are defaults values, owner is the WID of father interface Other variables are self_explanatory
Parameters
- pickbase
- path
- filter
- file_list
- file
- owner
- pfw_upd_but
top tx_see
tx_see, par1, par2, par3, par4, par5, par6, par7, par8, par9
****************************************************************************** + NAME: tx_see PURPOSE: To print parameters CATEGORY: . CALLING SEQUENCE: tx_see, p1, p2, ....., p9 INPUTS: None KEYWORD PARAMETERS: None EXAMPLE: tx_see, 'x=',x,'y=',y PROCEDURE: None REFERENCE: None MODIFICATION HISTORY:
Parameters
- par1
- par2
- par3
- par4
- par5
- par6
- par7
- par8
- par9
top tx_WACCU
tx_WACCU, xa, wa, ea, na, oper, xs, ws, es, ns, x_tol, n_factor, monitor
****************************************************************************** The calculation factor used in tripx x|w|e|n followed by a are accumulator values x|w|e|n followed by s are loaded spectrum values oper is operator code, x_tol is the x_tolerance value n_factor is the factor value (used for combine operation only) monitor is the user defined value
Parameters
- xa
- wa
- ea
- na
- oper
- xs
- ws
- es
- ns
- x_tol
- n_factor
- monitor
top tx_commons
tx_commons
****************************************************************************** This procedure was created to define all common blocks for the tripx program.
top tx_bufferize
result = tx_bufferize(position, x, y, w, n, e, p)
******************************************************************************
Parameters
- position
- x
- y
- w
- n
- e
- p
top tx_calculate
result = tx_calculate(accu_nb, oper, read_nb, x_tol, str, txw_basec, factor, monitor)
****************************************************************************** All purpose calculation function return 0 if no error occured return -1 if no data available
Parameters
- accu_nb
- oper
- read_nb
- x_tol
- str
- txw_basec
- factor
- monitor
top tx_extract
result = tx_extract(partxt, line_tag, var_tag, value)
****************************************************************************** partxt is an array of lines
Parameters
- partxt
- line_tag
- var_tag
- value
top tx_get_buffer
result = tx_get_buffer(position, accu_nb)
******************************************************************************
Parameters
- position
- accu_nb
top tx_get_step
result = tx_get_step(partxt, Step_Name_Array, Step_Value_Array, Best_Step_Index)
****************************************************************************** partxt is an array of line
Parameters
- partxt
- Step_Name_Array
- Step_Value_Array
- Best_Step_Index
top tx_monitor_changed
result = tx_monitor_changed(tx_nsel, monitor, tx_codes)
******************************************************************************
Parameters
- tx_nsel
- monitor
- tx_codes
top tx_read
****************************************************************************** gets tripple axis scan in order gjk
Parameters
- run
- typ
top tx_script
result = tx_script(tx_numor, y_txt, x_txt, monitor_txt)
****************************************************************************** This Function return a compiled string which describe a tripx set of data
Parameters
- tx_numor
- y_txt
- x_txt
- monitor_txt
top tx_accumulate
****************************************************************************** Tx_Last_buffer is updated by bufferize function
Parameters
- accu_nb
- str
top tx_build_but
tx_build_but, base, base_id, tx_codes, tx_eg_txt, txw_xbut, txw_wbut
****************************************************************************** This procedure built the widget buttons to select y, x axis and monitor
Parameters
- base
- base_id
- tx_codes
- tx_eg_txt
- txw_xbut
- txw_wbut
top tx_build_par
tx_build_par, base
****************************************************************************** This procedure built the parameters widget
Parameters
- base
top tx_calculate_ranges
tx_calculate_ranges, which
****************************************************************************** Which is optionnal it can be 0, 1 or 2 0 : ranges are calculated using read and accu spectra 1 : ranges are calculated using read spectra only 2 : ranges are calculated using accu spectra only
Parameters
- which
top tx_data_process
tx_data_process
****************************************************************************** Process data to be plotted
top tx_end
tx_end, wid
****************************************************************************** tx_end is invoked when tripx is interrupted
Parameters
- wid
top tx_export
tx_export, workspace_number, OWN=OWN
****************************************************************************** Export to Workspace defined into text widget the workspace "workspace_number"
Parameters
- workspace_number
Keywords
- OWN
top tx_grant_w
tx_grant_w, wnb, x, y, w, n, e, tit, xtit, ytit, SubTit
******************************************************************************
Parameters
- wnb
- x
- y
- w
- n
- e
- tit
- xtit
- ytit
- SubTit
top tx_initialize
tx_initialize, nbwok
******************************************************************************
Parameters
- nbwok
top tx_save
tx_save, export_str
******************************************************************************
Parameters
- export_str
top tx_see_buffers
tx_see_buffers
****************************************************************************** To view buffer content
top tx_plot
tx_plot, wid, wnb, x_range, y_range, type, PS=PS
****************************************************************************** The unique plotting procedure for the whole tripx project (by JR) x_tit , y_tit , z_tit , w_tit , other_tit , head_tit
Parameters
- wid
- wnb
- x_range
- y_range
- type
Keywords
- PS
top tx_remove_points
tx_remove_points, wnb, removing_window
******************************************************************************
Parameters
- wnb
- removing_window
top tx_reset_buffers
tx_reset_buffers
******************************************************************************
top tx_send_msg
****************************************************************************** Send a message into the relevant widget label
Parameters
- wid
- txt_msg
top tx_send_err_msg
****************************************************************************** beep and send a message into the relevant widget label (using tx_send_msg)
Parameters
- wid
- txt_msg
top tx_store_parameters
tx_store_parameters
******************************************************************************
top tx_unscript
tx_unscript, txt, tx_numor, y_txt, x_txt, monitor_txt
******************************************************************************
Parameters
- txt
- tx_numor
- y_txt
- x_txt
- monitor_txt
top tx_update_ranges
tx_update_ranges
******************************************************************************
top tx_update_w
tx_update_w, wnb, x, y, w, n, e
******************************************************************************
Parameters
- wnb
- x
- y
- w
- n
- e
top tripx_event
tripx_event, Event
****************************************************************************** ???
Parameters
- Event
top tripx
tripx, Three_Axis=Three_Axis
****************************************************************************** Create the main Tripx Interface, do initialisations and register tripx to Xmanager. This procedure generated widgets, their events are handled by the tripx_event procedure, just above (I presume ;-)
Keywords
- Three_Axis
File attributes
Modification date: | Tue Oct 1 14:11:46 2013 |
Lines: | 2,402 |