Hi there, Just a little tutorial to help set up the nScope python API
STILL FIGURING THIS OUT, so I have changed the nature of what this post was going to be about.
I will make a separate final post that is hopefully clear and concise.
The software for the nScope is here : http://www.nscope.org/download/
I created a local repo for it.
In my local repo the libnscope.dll file is here
H:\Program Files\GitHub\nScopeAPI\windows
I may need this one later if the program cant find one installed some where else.
After moving the nScopePython.py and program.py files to my pythonx.x/lib folder I created a small file to test where I was.
import sys
sys.path.append('../')
from nScopePy import *
import matplotlib.animation as animation
from pylab import *
def main():
print('main')
if __name__ == "__main__":
main()
Trying to track down the issue that is causing an "unable to connect to nScope"
https://github.com/nLabs-nScope/nScopeAPI/issues/2
Moved the following files into the c:/Windows folder
libnscope.dll, libnscope.lib, make_test.mingw
O right this is just an issue with the python version.
Converted the nScopePythonPy.py file to have the correct print version (3.4)
print "asdf" --> print ("asdf")
New error to track down.
Traceback (most recent call last):
File "testOfAPI.py", line 3, in module
from nScopePy import *
File "H:\Python34\lib\nScopePy.py", line 16, in module
nScopeAPI = CDLL(os.path.join(os.path.dirname(file), "../windows/libnscope.dll"))
File "H:\Python34\lib\ctypes_init_.py", line 351, in init self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
This is where I'm at. I'll come back to this tomorrow.
Documentation
Documentation for the nScope API is here: http://www.nscope.org/apidocs/