CERN home page CERN home page Consult pages Consult pages Writeups at CERN Writeups at CERN Garfield pages Garfield pages Help Help &SIGNAL &SIGNAL This page This page Table of contents Keyword index

&SIGNAL: WRITE-SIGNALS


FORMAT

By default, the signals are written in a Spice readable format as a Piece Wise Linear (PWL) input signal. Information about the use of Spice at CERN can be found in http://wwwinfo.cern.ch/ce/ae/Pspice/

The alternative is the Sceptre format, i.e. a comma between time and current but neither a heading nor a closing line.

In both cases, the file contains records indicating the wires on which the signal was induced and the number of records that have been written out.

Other formats can be added - please contact the author.


condition

Enables the user to write selectively a part of the signal to a dataset.

The condition is an expression in terms of the following variables:

Variable Meaning
SAMPLE the sample number, 1 to MXLIST
SIGNAL in case of a pure signal, the current in microAmp
TIME the time corresponding to the sample in microsec

The condition must evaluate to a Logical.

The condition is remembered, and re-used, by default from one call to the next - the initial default is 'True'.

Examples:

wr-if 'time>0.5&time<1'

wr-if 'signal<-0.02'

Call threshold_crossing(1,-0.02,`falling,plot`,n1,t1_fall) Call threshold_crossing(1,-0.02,`rising,plot`,n2,t1_rise) If 'n1<1 | n2<1' Then Say "Didn't find both a falling and a rising edge." Elseif 't1_fall > t1_rise' Then Say "Rising edge precedes falling edge." Else write-signal dataset signal.list ... write-if 'time>{t1_fall}&time<{t1_rise}' Say "Writing out the signal for {t1_fall} < t < {t1_rise}" Endif

The first 2 examples are simple applications of the write condition: writing out only the signal within a fixed time range and writing out only the portions of the signal that are below a threshold of -0.02 microAmp.

The 3rd example illustrates how one can obtain the times at which the signal passes a threshold in a given direction and to write out the signal between the rising and falling edges.


file

The name of the file in which you wish to write the signals.

member

The name by which you will want to reference the member.

remark

A remark string that helps in identifying the member.

By default, the remark field will contain the read-out electrode number and an indication whether the signal is direct or cross induced,


units

By default, the time is written to the dataset in units of micro second and the current in micro Ampere. You can change this via the UNITS keyword followed by the SI units you wish:

Keyword Meaning Keyword Meaning
- - KILO-AMPERE 10^3 A
SECOND sec AMPERE A
MILLI-SECOND 10^-3 sec MILLI-AMPERE 10^-3 A
MICRO-SECOND 10^-6 sec MICRO-AMPERE 10^-6 A
NANO-SECOND 10^-9 sec NANO-AMPERE 10^-9 A
PICO-SECOND 10^-12 sec PICO-AMPERE 10^-12 A
FEMTO-SECOND 10^-15 sec FEMTO-AMPERE 10^-15 A
ATTO-SECOND 10^-18 sec ATTO-AMPERE 10^-18 A

Some commonly abbreviations of these units are recognised (e.g. nsec).


Go to the top level, to &SIGNAL, to WRITE-SIGNALS, to the topic index or to the table of contents.

Formatted on 0100-08-24 at 22:37.