Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Control a USB-6525 using Python

Hi,

I am trying to control a USB-6525 using Python.  I have downloaded and installed the latest version of NI-MAX.  I also installed PyDAQmx.   However, it seems that there is a dependency that is probably not installed since I have minimal NI Hardware / Software installed in my machine.

 

The error I get: " Location of niDAQmx library and include file unknown on win32 - if you find out, please let the PyDAQmx project know"

 

I serched and the error is generated because there niDAQmx.h file is not present.   I found the following post:  https://www.ni.com/en/support/documentation/supplemental/18/location-of-ansi-c-ni-daqmx-shipping-exa...

 

However, there I cannot find an installation to install this examples.  Is there a location or an installation I can use to install those examples?

 

 

 

 

0 Kudos
Message 1 of 6
(6,483 Views)

What do you mean you downloaded latest NI MAX version? 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGQwCAO&l=en-US


I would suggest you downloading DAQmx lastest version in case you don't have it yet:
https://www.ni.com/en/support/downloads/drivers/download.ni-daq-mx.html

0 Kudos
Message 2 of 6
(6,406 Views)

Hi,

 

Posting this in case it can help somebody with  a similar issue.

I had downloaded the latest version of NI-DAQmx.  However, after speaking with an NI support engineer.  It seems that that was the installer for only runtime version.

I was pointed to the NI-DAQmx installer for development.  Once that installation happen.  PyDAQmx runs quite well.

 

Thanks,

 

Rafael

Message 3 of 6
(6,400 Views)

It was a pleasure, remember to Kudo the posts that are helpful and mark the posts as solutions to have an even better forum community!

 

 

0 Kudos
Message 4 of 6
(6,396 Views)

Hello.

 

I have searched for solutions where I can operate the USB-6525 with python. I guess I should need some kind of DLL-library. I was very surprised when the only thing is drivers at 1.8 Gb! Then is is not even obvious what I should install. Is there any easy to use DLL-library?

 

Kind regards

 

/Björn

Message 5 of 6
(5,492 Views)

Hi Bjorn,

 

It looks as if this thread is pretty old. I would recommend creating a new thread with your question in order to receive more attention. In the meantime, please review the following link. Your answer may be found here.

 

https://www.ni.com/en/support/documentation/supplemental/16/python-resources-for-ni-hardware-and-sof...

 

Best of luck!

 

Regards,

 

Austin

0 Kudos
Message 6 of 6
(5,476 Views)