02-21-2025 09:19 AM
Hello,
I'm trying to set the digital logic level on my 6451.
I've tried setting the do logic family for each channel in the task but I get an error:
nidaqmx.errors.DaqError: Specified property is not supported by the device. Use the recommended Physical Channel property outside of the task instead.
Unsupported Property: DAQmx_DO_LogicFamily
Recommended Property: DAQmx_PhysicalChan_Dig_PortLogicFamily
I can't work out how to following this hint
I'm using the DAQmx driver in Python
Many Thanks
Nick
02-21-2025 10:01 AM
Based on the specification, you can set the logic level for the whole port but not by channel.
Looks like the Python wrapper is NOT fully featured. Only related property I found is this,
Based on the docs, I see there is a constant but not support all values of 6451
Whereas on the LabVIEW side, I see a property to set the logic level,
02-21-2025 12:56 PM
Thanks for your answer.
I tried the power up state function but also got a "not supported on this device" error.
Immensely frustrating that the python API is not properly supported.
There is no chance we are using LabVIEW.
Is there someway I can call the DLL direct from python?
02-21-2025 02:54 PM
@niNickCardiff wrote:
Thanks for your answer.
I tried the power up state function but also got a "not supported on this device" error.
Immensely frustrating that the python API is not properly supported.
There is no chance we are using LabVIEW.
Is there someway I can call the DLL direct from python?
Yes, you can call the C-dll directly in Python.
https://docs.python.org/3/library/ctypes.html
Please raise issues for these gaps at https://github.com/ni/nidaqmx-python/issues
02-21-2025 02:58 PM
I'm not sure why I considered this as I really need both Windows and Linux support and I don't really want all that faff.
Unfortunately, this is gonna be a bit of a deal breaker for use of NI hardware I think.
Wild that they don't have really well featured python drivers.
Thanks for your help!