OSError: [WinError 193] %1 Is Not Valid Win32 Application When Using LabVIEW DLL in Python

Updated May 2, 2025

Reported In

Software

  • LabVIEW

Programming Language

  • Python

Issue Details

I have created a basic DLL build by LabVIEW 2024 Q3 (32-bit) and I am unable to access the DLL using Python 3.10 (64-bit). The Python terminal reported error OSError: [WinError 193] %1 is not valid Win32 application. How can I resolve this issue? 

Solution

The issue comes from bitness of Python and LabVIEW software differences. Both software should have to be same in the same bitness and a compatible version.

 

For example, when using Python 64-bit, then you should use a compatible LabVIEW 64-bit to create the DLL. 

Tariff Impact Update Learn more

Was this information helpful?

Yes

No