inp.camac
Class Crate

java.lang.Object
  |
  +--inp.camac.Crate

public class Crate
extends java.lang.Object

Class representing CAMAC crate hardware. To obtain Crate object use something like this:

    ....
   CamacDriver driver = CamacDriver.loadDriver("DriverCC232");
   Crate crate        = driver.getCrate(0);
    ....
 


Method Summary
 void addModule(Module module, int N)
          Add module to station N.
N is in terms if camac numeration from 1 to 24.
 void C()
          Execute C cycle in Crate
 void executeNAF(int N, int A, int F, int[] data, int bits)
          Methid to execute NAF in Crate This method can be used public to execute NAF on crate object, but better to use Module.AF(..) instead.
 Module getModule(int N)
           
 void I(boolean inhibit)
          set Inhibit bus state
 Module removeModule(int N)
          Remove module from specified position
 Module removeModule(Module m)
          remove Module from Crate
 void Z()
          Execute Z cycle in Crate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addModule

public void addModule(Module module,
                      int N)
Add module to station N.
N is in terms if camac numeration from 1 to 24. When called execute Module.setN(N) and Module.setCrate(Crate) to inform module about it's location;
Parameters:
module - module to add
N - position (1..24) where to add
See Also:
Module.setN(int), Module.setCrate(inp.camac.Crate)

removeModule

public Module removeModule(int N)
Remove module from specified position
Parameters:
N - position wherefrom to remove module
Returns:
removed Module

getModule

public Module getModule(int N)
Returns:
Module at position N

removeModule

public Module removeModule(Module m)
remove Module from Crate

executeNAF

public void executeNAF(int N,
                       int A,
                       int F,
                       int[] data,
                       int bits)
                throws java.io.IOException
Methid to execute NAF in Crate This method can be used public to execute NAF on crate object, but better to use Module.AF(..) instead.
Parameters:
N - Camac module position (1..24)
A - Camac subaddress
F - Camac function
data - Array of data, NAF will be executed as many times as data.length if null than NAF will be executed once without data transfer. In case of write operation, data from this array must be written in target module. In case of read operation data read from module must be placed in this array.
bits - Number of significant bits in data transfer. For some sort of hardware this parameter might be usefull to reduce data transfer time. Implementation might return either all 24 bits either only required number of bits

Z

public void Z()
       throws java.io.IOException
Execute Z cycle in Crate

C

public void C()
       throws java.io.IOException
Execute C cycle in Crate

I

public void I(boolean inhibit)
       throws java.io.IOException
set Inhibit bus state
Parameters:
inhibit - new state of bus