// Author: Thomas Hadig (Group EB SLAC Stanford CA USA)
// Last update: $Date: 2003/08/22 22:31:11 $
// Copyright: Thomas Hadig, hadig@slac.stanford.edu
#ifndef __CRTGPIB3988BOARD_CXX
#define __CRTGPIB3988BOARD_CXX
////////////////////////////////////////////////////////////////////////////////
//
// Cosmic Ray Telescope Data Aquisition Software
//
// generic driver for GPIB crate: NewPort PMC200 motion controller board
//
// This module features:
// - 2 channels for actuators
//
// If there's only an actuator to be controlled, set an actuator for the other axis -
// that will display 0 as position. Give setposition with 0 as other axis's position.
//
////////////////////////////////////////////////////////////////////////////////
#include <gendriver/gpib3988board.hh>
#include <gendriver/gpibcrate.hh>
namespace CRT
{
//{{{}}}
//{{{ constructor
CrtGpib3988Board::CrtGpib3988Board() : CrtBoard()
{
// default constructor
fOk=0;
}
//}}}
//{{{ constructor CrtGpib3988Board(const Char_t *inName, Int_t inBoardNumber, CrtGpibCrate *inCrate)
CrtGpib3988Board::CrtGpib3988Board(const Char_t *inName, Int_t inBoardNumber, CrtGpibCrate *inCrate)
: CrtBoard(inName, inBoardNumber, (CrtCrate *)inCrate)
{
// constructor
// inBoardNumber is the number of the Camac slot
// inCrate is a pointer to the Camac crate object
fIdents[0]=inBoardNumber;
}
//}}}
//{{{ destructor
CrtGpib3988Board::~CrtGpib3988Board()
{
// destructor
}
//}}}
//{{{ Send
Int_t CrtGpib3988Board::Send(Int_t inCommand) const
{
return -1;
}
//}}}
//{{{ Enable
Int_t CrtGpib3988Board::Enable(Int_t inFlag, Int_t inChannel) const
{
// enables board features
// Available features:
// none
return -1;
}
//}}}
//{{{ Disable
Int_t CrtGpib3988Board::Disable(Int_t inFlag, Int_t inChannel) const
{
// disables board features
// Available features:
// none
return -1;
}
//}}}
//{{{ Clear
Int_t CrtGpib3988Board::Clear(Int_t inFlag, Int_t inChannel) const
{
// clears board features
// Available features:
// none
return -1;
}
//}}}
//{{{ Test
Int_t CrtGpib3988Board::Test(Int_t inFlag, Int_t inChannel) const
{
// tests board features
// Available features:
// none
return -1;
}
//}}}
//{{{ Query
Int_t CrtGpib3988Board::Query(Int_t inChannel, Int_t *outValue) const
{
return -1;
}
//}}}
//{{{ Assign
Int_t CrtGpib3988Board::Assign(Int_t inChannel, Int_t inValue) const
{
return -1;
}
//}}}
//{{{ Send
Int_t CrtGpib3988Board::Send(const Char_t*inCommand, Int_t inLength) const
{
return ((CrtGpibCrate *)fInCrate)->SendCommand(fIdent, inCommand, inLength, 100, 0);
}
//}}}
//{{{ Read
Int_t CrtGpib3988Board::Read(Char_t *outCommand, Int_t inLength) const
{
return ((CrtGpibCrate *)fInCrate)->ReadResponse(fIdent, outCommand, inLength, 100, 1);
}
//}}}
}
ClassImp(CRT::CrtGpib3988Board) // class for the GPIB 3988 camac controller
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.