PCICommand
Sends a ( vector ) command to the pci board.
Syntax
long PCICommand( command );
Parameters
long command
A valid pci board command. See CController.h PCI command list for details.
Returns
long - A command specific reply value.
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
Exceptions can be caught using a try/catch block.
Example
        // This code demonstrates how to reset the PCI
        // board using PCICommand().

        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

        // .... open driver, initialize, etc ....

        try {
            long lReply = cController.PCICommand( PCI_RESET );

            if ( lReply != DON )
                throw std::runtime_error( "PCI_RESET failed" );
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.