From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

OSError when using nidaqmx-python

Solved!
Go to solution

I want to use nidaqmx-python to read data from NI cDAQ-9184.

The example code can't be executed correctly,and python produces: OSError: [WinError 193] %1 is not a valid Win32 application.

I use Anaconda 3, and create a virtual environment, which Python (64 bits) version is 3.6.9. I install nidaqmx which version is 0.5.7.

I use Windows 10 (64 bits), install labview 2015 (32 bits) and NI MAX. 

 

After some unsuccessful attempts, I find I can executed the example code correctly in Python (32 bits), Python3 (32 bits) is my python in my operating system. But I want to use Python (64 bits) in the future.

 

(I am sorry for my poor English expression.)

 

0 Kudos
Message 1 of 3
(2,253 Views)
Solution
Accepted by topic author WuTUT

Hi WuTuT,

 

From your description I assume the bit version of python should match that of labview, which means you should have 64-bit labview installed before you can use nidaqmx package in 64-bit python.

 

It's only my assumption, correct me if i'm wrong

 

Regards

0 Kudos
Message 2 of 3
(2,197 Views)

After install labview 2018 (64 bit) and NI DAQ 18.0, I can run the code in Python 3 (64 bits) correctly. So I think you are right.

Thank you for your help ! 

 

Regards.

 

0 Kudos
Message 3 of 3
(2,184 Views)