Open a specific device

The OpenBySerial() method accepts a string that contains the serial number of the target device, the last digits of which are printed on the barcode sticker of each Opal Kelly FPGA integration module. The FrontPanel Application displays the full serial number when communicating with a device as shown in the screenshot to the right.

C/C++

okCFrontPanel dev; dev.OpenBySerial("143400058N");
Code language: JavaScript (javascript)

C#

okCFrontPanel dev = new okCFrontPanel(); error = dev.OpenBySerial("143400058N");
Code language: JavaScript (javascript)

Python

dev = ok.okCFrontPanel() dev.OpenBySerial("143400058N")
Code language: JavaScript (javascript)

Java

public class example{ okCFrontPanel dev; public void OpenWithSerial(){ dev = new okCFrontPanel(); dev.OpenBySerial("143400058N"); } }
Code language: PHP (php)