Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

6451 Digital Logic Level

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

0 Kudos
Message 1 of 5
(132 Views)

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,

santo_13_1-1740153609141.png

 

 

Based on the docs, I see there is a constant but not support all values of 6451

santo_13_0-1740153554101.png

 

Whereas on the LabVIEW side, I see a property to set the logic level,

santo_13_2-1740153674153.png

 

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 5
(125 Views)

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? 

0 Kudos
Message 3 of 5
(111 Views)

@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://www.ni.com/en/support/documentation/supplemental/21/using-ni-daqmx-in-text-based-programming...

https://docs.python.org/3/library/ctypes.html

 

 

Please raise issues for these gaps at https://github.com/ni/nidaqmx-python/issues

 

 

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 5
(100 Views)

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!

0 Kudos
Message 5 of 5
(97 Views)