FrontPanel API 6.1.0
Loading...
Searching...
No Matches
Switching to OpalKelly::FrontPanelDevices

The device enumeration methods and OpenBySerial that used to be available on the main device class have been removed. New code should use the OpalKelly::FrontPanelDevices class instead.

For example, the old style code to open the first connected device:

okCFrontPanel* xem = new okCFrontPanel;
if (xem->OpenBySerial() != okCFrontPanel::NoError) {
... handle the error ...
delete xem;
return;
}
... use the device, e.g. call xem->ConfigureFPGA() ...
delete xem;

can be replaced with

if (!xem) {
... handle the error ...
return;
}
... use the device, e.g. call xem->ConfigureFPGA() ...
Allows to iterate over and open all devices available in the given realm.
Definition okFrontPanel.dox:260
FrontPanelPtr Open(const std::string &serial=std::string()) const
std::unique_ptr< OpalKelly::FrontPanel > FrontPanelPtr
Typedef for a smart pointer to OpalKelly::FrontPanel.
Definition okFrontPanel.dox:229

Notice that there is no need to explicitly call

delete xem

any more and that it is also possible to work with remote devices, via FPOIP, when using the new API, while the old API is limited to local devices only.


Copyright (c) 2005-2026 Opal Kelly Incorporated