![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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.
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:
write-signal dataset "signal.list" wr-if 'time>0.5&time<1'write-signal dataset "signal.list" 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.
By default, the remark field will contain the read-out electrode number and an indication whether the signal is direct or cross induced,
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).
Formatted on 0108-03- at 04:26.