FrontPanel SDK Examples

These pages include a number of resources to help make you more productive with our products. Please refer to the following resources if you need a hand.

Open the first device available

Opening the first available device requires only an instance of okCFrontPanel and is done by calling OpenBySerial without a specified serial number. In C++ OpenBySerial can take NULL as an input, but C#, Java, and Python require an empty string.

okCFrontPanel dev;
dev.OpenBySerial();
okCFrontPanel dev = new okCFrontPanel();
dev.OpenBySerial("");
dev = ok.okCFrontPanel()
dev.OpenBySerial("")
public class example{
     okCFrontPanel dev;
 
     public void OpenDevice(){
          dev = new okCFrontPanel();
          dev.OpenBySerial("");
     }
}