DISS-5 User library

1.0

This library is intended to provide an interface to the DISS-5 controller for Scanning Electron Microscopes. For more information on the hardware, see http://www.pointelectronic.de.

Author:
Brad Kratochvil

Overview

This library is divided into a number of classes for controlling the DSM962. The main ones are:

Example

#include "libdiss5.h"
#include "dsm962.h"

#include <iostream>
#include <signal.h>

using namespace std;

int main()
{
  try
  {
    point::Dsm962 dsm("/dev/ttyS0");
    dsm.ExternalScan(true);

    point::size_t size = {100, 100};

    point::Diss5       diss(0);
    point::Footer      footer;
    point::ScanParams  params;
    point::Image       image(size);

    params.Channel(0x01);
    params.SampleRepeat(1);
    params.ScanArea(size);
    params.CmdCode(point::CMD_DONT_STOP |
                   point::CMD_SCAN_FUNC |
                   point::CMD_KEEP_EXTERN |
                   point::CMD_RESPONSE_DELAY);

    // queue up an image
    diss.Send(params);

    diss.ReadBlk(&image, 200e-3); // set the timeout at 200 [ms]
    image.WritePgm();

    cout << "Finished!" << endl;

  }
  catch (point::Error& e)
  {
    cout << e << endl;
  }
}

Generated on Fri Mar 20 12:42:21 2009 for libdiss5 by  doxygen 1.5.3