So I am a newb.
I am using Python, and found out that you need to Close the Frontpanel GUI, and then Open the Device in a Python Console. Also, make sure your correct image is loaded onto the device, I am using the “First” provided, and had to compile it myself via Quartus. (Not Provided as a .bit or .sof/rbf by Opal Kelly)
Once I have the Sample “First” image loaded to the OK, I then make sure that no GUI of Frontpanel is running.
Open up a Python Terminal, and then do the following…
import ok //(Files provided need to be added to “site-packages”)
dev = ok.okCFrontPanel() //Creates a device handle
dev.GetDeviceCount(1) //Returns number of Opal Kellys connected to Host PC
serial = dev.GetDeviceListSerial(0) //saves device 0’s serial number into the ‘serial’ variable
dev.IsOpen() //shows that device has successfully been opened
I am still having problems reading and writing to Pipes, Wires, Registers, etc… I will create a separate thread, but wanted to post what I have done thus far to see if it helps anyone else in the future who is new to this.