02-04-2025 01:49 PM
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?
02-04-2025 02:31 PM
It appears to be fixed by installing Python 3.13.1 64-bit.
I have not yet tested Python 3.11 or 3.12.