Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Change signal polarity in NI9401 and NI9472

Hi,
how can I change the polarity of a digital signal in a DAQmx with NI9401 and NI9472 modules? Is there any example you guys could send me? Is it possible to change the polarity with a VI?
tks
0 Kudos
Message 1 of 7
(4,785 Views)
Hi,

We could reverse the logic of your signal.  The DIO line is not going to output a negative voltage though.  If you could clarify your application a bit I think I could help a litle more.  Are we dealing with input or output, and do you want to have the logic switched or do you want to actually have a negative voltage input or output?

Have a great day,

Michael D
Applications Engineering
National Instruments

Message Edited by MickeyD on 02-06-2007 06:44 PM

0 Kudos
Message 2 of 7
(4,779 Views)
Hello,
actually I want to switch voltage from - to + and vice-versa so that I can open and close a latch solenoid valve according to determined conditions.
Sorry for not have being so clear.
tks
0 Kudos
Message 3 of 7
(4,769 Views)
One more thing, I am dealing with an output signal.
tks
0 Kudos
Message 4 of 7
(4,769 Views)
Hi,

The 9401 and 9427 are just meant to be digital logic boards, that accept or output different ranges.  You would want an analog output board to be able to output a negative and positive voltage.  You could change the logic by which you output 5 or 0 or 20 or 0, but the board is not designed to change from outputing 5 volts to outputing negative 5 volts.  This would be simple to implement with one of the Analog output boards, and I could give you some more info on that if it would be helpful.  Let me know if you have any other questions.

Happy thermocouple thursday,

Michael D
Applications Engineering
National Instruments
0 Kudos
Message 5 of 7
(4,754 Views)
I think the OP's question rather refers to reverse the logic level of the output. Usually (in non-inverting mode) an activated output refers to a physically high state (min. 2.8V) of the digital output line. I am not familiar with the driver software of this board but with other boards I have seen it is possible to set the digital output(s) to inverting mode. In this case, activating an output refers to a physically low state (max. 0.8V).

Check the output specs of your board to make sure it can supply (or sink, see below) enough current to drive the solenoid.

Since the output voltage in physically high state usually is not very well defined and can be anywhere in the range of 2.8 to 5.0V, usually you connect solenoids in sink mode. I.e., one terminal of the solenoid is connected to +5V and the other one to the digital output. This makes definition of the logic state somewhat more puzzling. You should set the outputs to inverting mode (if possible). If an output is activated, the voltage will drop to close to 0V, thus generating a voltage drop of close to 5V across the solenoid.

In any case, make sure to add a clamping diode in parallel with the solenoid. The cathode must be connected to the terminal with lower voltage, the anode to the terminal with higher voltage.
0 Kudos
Message 6 of 7
(4,751 Views)
Hi,

If logical inversion is what you were looking to do as described in the above post, then that is definitely possible.  You can search for invert in the DAQmx help and find a description of logical inversion in the DAQmx driver.  The VI to do the inversion is the signal routing VI.  If you are not using LabVIEW the calls are all covered in the signal routing section of the DAQmx C reference help.  Please let me know if you have any further questions.

Have a great week,

Michael D
Applications Engineer
National Instruments
0 Kudos
Message 7 of 7
(4,737 Views)