Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

Python with NI USB-8451 OEM

$
0
0

Hello everybody.

 

My main goal is to use python to control some NI devices which I could do it with the NI USB-6501 OEM version but not the 8451.

I used nidaqmx in python and it's not working because I think the NI device is not recognized like the 6501 (not shown in NI device monitor)

I can see it with NI MAX and I renamed it into Dev3.

When I run these python line code for see every device connected it doesn't appear :

 

import nidaqmx

system = nidaqmx.system.System.local()

for device in system.devices:
     devices = str(device)
     print(devices)

 

console return :

Device(name=SimDev1)

 

 

I uninstall reinstall several time the NI 845x driver 17 (and 18, I'm using version 17)

 

I've try also with this http://www.ni.com/example/8911/en/

but according to the exemple 2 I've tried this :

I use -> physicalChannel = "Dev3" , not sure if it's correct but I've tried Dev3/ai0, Dev3/port0/line0 and it always return the same error.

 

Python 2:

Line 55 : returnValue = dll.DAQmxCreateAIVoltageChan(taskHandle, physicalChannel, channelName, terminalConfig, minVal, maxVal, units, customScaleName)

return : -200220

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019PCxSAM&l=fr-CH

Error -200220 occurred.
Possible reason(s):
Device identifier is invalid.

 

Python3 :

Line 55 again

return : -200088

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019QMjSAM&l=fr-CH

Error -200088: Task specified is invalid or does not exist.

 

If anyone can help me with that, because now I'm struggling and ruining out of idea .

 

Best regards

 

Adrien


Viewing all articles
Browse latest Browse all 2167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>