API Error Codes

How can I decode the error indications used in the Python API?

The API documentation (
http://www.opalkelly.com/library/FrontPanelAPI/index.html
) shows that the error codes are strings (e.g. for ConfigureFPGA the errors are NoError, DeviceNotOpen, etc.). However, the FrontPanel User’s Manual shows the Python error codes to be integers in the example on page 25. I’m getting non unity errors (e.g. 0, -5, -7) from ConfigureFPGA. How can I crack the mystery of what these errors are?

Justin

Justin–

These error codes are defined in the API header file (okFrontPanelDLL.h). I’ll see that we get these codes moved to the API documentation so it’s easier for non-C users to find them intuitively.