check_timer, alias ct
get_offsets
This function determines the counter offsets and stores them in the
symbols SCAN_OFFSET_C1, SCAN_OFFSET_C2, ....
The function relies on the symbols SCAN_TIMER, SCAN_C1, SCAN_C2....
The sample time can be specified as the argument,
the default sample time is 10s.
$ret = get_offsets( 3);
get_timer_external_base, alias gteb
get_counts, alias gc
reset_all_counters, alias resaco
$ret = resaco();
reset_counter, alias resco
read_and_reset_counter, alias rrc
read_counter, alias rc
$val = Rc( "c1");
set_timer_external_base, alias steb
start_and_wait_for_cont_timer, alias sawfct
start_and_wait_for_timer, alias sawft
$ret = sawft( "t1", "1.5");
start_and_wait_for_preset_timer, alias sawfpt
$ret = sawfpt( "t1", "10000");
start_timer, alias st
$ret = st( "t1", "1.234");
start_timer_using_motor, alias stum
$ret = stum( $timer, $st, $motor, $pos, $tolerance);
stop_timer, alias stpt
vfc
$val = vfc( "c1", "t1", 1.2345);
vfcp
$val = vfcp( "c1", "t1", $counts, $time_max);
vfc_bw4
wait_for_timer, alias wft
$ret = wft( "t1");
was_injection, alias wi
$ret = wi( "c1", "t1", "st", "min-rate", "heatup");
write_counter, alias wc
$ret = wc( "c1", "1000");
Here is an example for accessing counter/timer functions:
#!/bin/perl use Spectra; # # reset-all-counter # $ret = Spectra::resaco(); # # start-and-wait-for-timer # $ret = Spectra::sawft( "t1", "1.2345"); # # read-counter # $val = Spectra::rc("c1"); print " Counter reading: $val\n";