FrontPanel Programmer's Interface

Overview (Version 4.0.0)

The FrontPanel API provides a powerful C++ interface to Opal Kelly USB and PCI Express FPGA boards.

To build an application using this API, you need to include the files okFrontPanelDLL.h and okFrontPanelDLL.cpp in your project. These contain stub functions that will make calls to the DLL. You will also need to include the okFrontPanel.dll library in the same directory as your executable.

To use the library, you create an instance of okCUsbFrontPanel which encapsulates communication with the USB driver and provides access to FrontPanel endpoints. Call GetDeviceCount to determine how many XEMs are attached to the USB. You can use the GetDeviceListXXX methods to determine specific information about the boards attached, then call OpenBySerial to open one of them by referring to its serial number. (If no serial number is provided, this method opens the first available device.)

ConfigureFPGA is used to download a configuration file to the FPGA. Sending data to Wire In endpoints is done with calls to SetWireInValue followed by a call to UpdateWireIns to simultaneously update all Wire Ins. ActivateTriggerIn is used to trigger the XEM.

The API uses polling to query the values of output endpoints such as Wire Outs and Trigger Outs. The methods UpdateWireOuts and UpdateTriggerOuts perform these queries. Once the wire and trigger values have been updated by these methods, you can retrieve the values using the methods GetWireOutValue and IsTriggered.


Version:

$Rev: 1022 $
$Date: 2011-10-31 12:52:58 -0700 (Mon, 31 Oct 2011) $

Copyright (c) 2005 Opal Kelly Incorporated