Download Opal Kelly

Transcript
FrontPanel User’s Manual
Method
Description
IsFrontPanelEnabled
Checks to see that an instance of the okHostInterface is installed in
the FPGA configuration.
IsFrontPanel3Supported Returns true if the firmware on the device supports FrontPanel-3.
ResetFPGA
Sends a reset signal through the host interface. This is used to reset
the host interface or any endpoints. It can also be used to reset user
hardware.
UpdateWireIns
Updates all wire in values (to FPGA) simultaneously with the values
held internally to the API.
UpdateWireOuts
Simultaneously retrieves all wire out values (from FPGA) and stores
the values internally.
UpdateTriggerOuts
Retrieves all trigger out values (from FPGA) and records which endpoints have triggered since the last query.
SetWireInValue
Sets a wire in endpoint value. Requires a subsequent call to UpdateWireIns.
GetWireOutValue
Retrieves a wire out endpoint value. Requires a previous call to
UpdateWireOuts.
ActivateTriggerIn
Activates a given trigger in endpoint.
IsTriggered
Returns true if a particular trigger out endpoint has been triggered
since a previous call to UpdateTriggerOuts.
WriteToPipeIn
Writes data (byte array) to a pipe in.
ReadFromPipeOut
Reads data (byte array) from a pipe out.
WriteToBlockPipeIn
Writes data to a block-throttled pipe in.
ReadFromBlockPipeOut Reads data from a block-throttled pipe out.
Communicating with Multiple Devices
In most cases, your software will communicate with a single device attached to the USB. However, some applications require simultaneous communication with two or more devices. Multipledevice communication is fully supported by the driver and API but will require special consideration when initializing the communication.
Querying Attached Devices
You can call the method GetDeviceCount() to determine the number of supported devices attached to the bus before opening a specific a specific device. The GetDeviceCount() method
also queries the device serial numbers, board types, and device ID strings of all the attached
devices. This information can then be accessed by calling the methods GetDeviceListSerial(),
GetDeviceListModel(), and GetDeviceListID(), respectively.
Connecting to a Specific Device
It is expected that you would identify a specific board using the serial number (factory-assigned
and not user-mutable) or using the device ID string (user configurable via FrontPanel). A typical
process for openening multiple devices would then be:
1.
Create two instances (call them x and y) of the okCUsbFrontPanel.
2. Call x.GetDeviceCount() to verify that two boards are connected and to query the serial
numbers and other device information.
20
www.opalkelly.com