The functions which are described in this section perform raw CAMAC I/O. They are intended to be used for debugging purposes or for testing new hardware.
|
The following example code demonstrates how data is read/written from/to an input/output register.
#!/bin/perl use Spectra; $n = 9; $f = 0; $a = 0; $status = cmcrd( $n, $f, $a); print " cmcrd: Got $status \n"; $n = 8; $f = 16; $a = 0; $date = 15; $status = cmcwd( $n, $f, $a, $data); print " cmcwd status: $status \n";