I'm using Eclipse + PyDev for Python projects. I have PyDAQmx installed which leverages the C library of DAQmx. However, whenever I call any function or reference any constant from that file, I get an "Undefined Variable" error, despite importing the necessary parts. The program runs just fine, so I believe this is Eclipse/PyDev not linking with the C library. I've included it in as an External Lib, but I still get the same error.
Here is a code sample. This is valid and works fine if I run it, but it's annoying trying to hunt for actual errors with Eclipse always telling me it has undefined variables.
from PyDAQmx.DAQmxFunctions import *
from PyDAQmx.DAQmxConstants import *
counter="Dev1/ctr0"
DAQmxResetDevice(counter.split('/')[0])
What do I need to do to get Eclipse happy with me using these functions/constants? Thanks