ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

nidaqmx breaks Python debugging in VSCode with a USB-6343

From the moment my program executes nidaqmx.Task("name") debugging is disabled for the rest of the execution:  breakpoints don't work, exceptions don't get caught by VS code.  However, the analog i/o lines I'm using do work as expected.

 

I stepped into it and the actual line that kills it is in _library_interpreter.py function set_runtime_environment: 

cfunc = lib_importer.windll.DAQmxSetRuntimeEnvironment

 

I've tried Python 3.10.4 32-bit and Python 3.10.16 64-bit.   (I have a separate requirement, nican, for 32-bit which I could work around if needed.)

 

Windows 10, VSCode latest.  I've tried both the release and pre-release version of the Python and Python debugger extensions.

 

NI-Daqmx driver 21.8.   (We are also using LabVIEW 2021)

 

Has anyone seen this issue before and found a workaround?

0 Kudos
Message 1 of 2
(690 Views)

It appears to be fixed by installing Python 3.13.1 64-bit.

I have not yet tested Python 3.11 or 3.12.

0 Kudos
Message 2 of 2
(677 Views)