05-20-2016 11:50 AM
I am using a NI I/0 card (PCI-DIO-96) with DAQmx libraries under Linux.
I compiled and run the example WriteDigChan.c.
After i run this example, i used a multimeter to measure the voltage at each line and check if the card is working properly.
The problem is that when a line is set to logic low (0) the voltage i measure is ~4,916 Volts and when a line is set logic high (1) the voltage i measure is 0 Volts.
Shouldn't be viseversa? Or am I missing something?
05-23-2016 02:27 PM
Hi Insomnia,
This card is probably active low output by default - meaning that a low (0) will result in an active voltage. In this case since your Vcc seems to be 5V, a 0 output will result in roughly 5V being output. This also means that a logical 1 will be ouput as around 0V.
You can invert the lines using the DAQmx property function call DAQmxSetDOInvertLines.
05-24-2016 01:46 AM
Hi,
I used this board years ago and the outputs are not inverted or active low.
The output should be as expected a '0' is 0V and a '1' is 5V.
Are you not measuring between a output and the +5V ??
Kees
03-15-2025 11:48 PM
Hi there, I know it's was long ago, but can anyone please tell me how to use PCI-DIO-96 on ubuntu 22.04 ,
I've installed the DAQmx (used command : apt install ni-daqmx) but when I run "nilsdev" is shows nothing ( I can see the card in list of lspci and lsmod shows nikal is loaded)
could you please explain how did you install the daqmx and on what version of linux (what distribution) and were you able to see anything when run "nilsdev" command?
thanks a lot