Notes on Diag

There are some notes on diag - A program used to run the SpeX array controller to diagnose software and hardware.

1. diag - The diag program is used to test/debug spex array controller code.
   Is is sometimes quicker/easier/and more verbose that the ic
   applications.   

2. General Sequence

   boot - Boot/Resets DSP. 1st boot done a startup.
   load - loads the DSP code.

   set -  set parameters.
   go  -  take data.


3. Summary of usage/commands as print out by it 'help' command.

This program tests the low level DSP Functions. Summary of commands:

 Usage: diag [ -b { 0 | 1 } ]
    -b 0 - BBMODE_S32 - Single Fiber 32 pixels per channel (default).
       1 - BBMODE_D16 - Duel Fiber 16 pixels per channel.

 List of Commands
    autosave { off | on }- sets autosave mode
    boot - boot/reset the dsp boards
    coadd num - sets number of coadds
    cycles num - adjust number of cycles
   *CvTest - Convert Test: Convert 32 values.
    DvHostname host - Who is running DV
    Do filename - execute commands in a file.
    Filename root - Sets root name for data files.
    Go   - 5-4-3-2-1..Go Baby Go!.
    Help - Prints this message.
    ImageNumber num - Number part of filename.
    Itime sec - adjust integration time.
    Load - Loads the clock & buffer dsp programs.
    Path path - specify the data directory.
    Quit - quits the application.
   *Set  - Sets array parameters (Interactive).
   *Test - Test command.
    Viewer {dv|vf} - pick dv or vf
    VMEReset - Generates a VME SYSRESET.
    BB2DV - transfers data from DSP to DV
   *BBFillSRAM - write some values in RAM.
    BBGetStats - Perform some calculations
   *BBIntTest- Test routine for VME Interupts.
    BBLoad - Load & start the bcard DSP.
    BBStatus board_id - displays dsp3 status block
    BBSetMem - initialize ixr1 memory values
    BBTest1 - run test1 function in bcard dsp.
   *CkExeTbl - Executes a clocking table.
   *CkIntTest- Test routine for VME Interupts.
    CkLoad - Load & start the clock DSP.
    CkReset - Adjust background reset variables
    CkRFifo - Reset the clock fifo
    CkSetDAC brd dac volt - Sets voltage on DAC.
    CkSetMask mask - Sets the data mask.
   *CkSetSTBB - Set/clr STBB.
    CkStatus - Display dsp1 status block
   *CkTest1 - test interrupts on the clock DSP.
   *CkTest2 - Run clock Test2 function.
   *rdm  - Use hostAPI host_rdm()
   *rdm2 - Use hostAPI host_rdm() in a loop.
   *wdm  - Use hostAPI host_wdm().
   *wdm2 - Use hostAPI host_wdm() in a loop.

Note: * indicates interactive commands.