Showing results for 
Search instead for 
Did you mean: 

interfacing labview with relays

Go to solution



Could someone please tell me how could I interface labview to an relay in the external hardware to switch ON/OFF the path of a circuit. Thankyou in advance...........



0 Kudos
Message 1 of 9



you need some DAQ hardware...

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 9

could you please tell me what kind of DAQ hardware device can I use......

0 Kudos
Message 3 of 9



you could use any hardware that allows to output digital signals. The cheapest from NI might be the USB6000…

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 9

MCCDAQ has the least expensive DAQ's, or you could pay more and have the relay bult into the board (


You could try using the parallel port with LabVIEW, I saw this work many years ago.


You should know that unless the board is built with the relay installed like the link above, you will need to amplify the signal so that it can drive the coil.

Message 5 of 9

I like to use the PCI/PXI-6009 DIO card (96 DIO!) to control relays.  That card can put out enough current to turn on a transistor that will then turn on a relay or drive a SSR directly (depending on how much current the control needs).

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 9

For those on a budget I usually recommend an Arduino Uno.  You can usually find them for under $30, sometimes under $20.  Then you load up the LIFA toolkit by NI, and you've got your self a bunch of DIO, a few AI, PWM, SPI, I2C, and a few other basic features.  Again you won't be driving relayes directly with this, each pin has a very low current capability.  You would have some kind of buffer circuit that could drive a mechanical relay.

Message 7 of 9

Thanks alot......Actually I am using GPIB  as the DAQ hardware to interface labview with my test circuit, in which I am using relays for switching purpose........ is it possible to use the same GPIB  even to interface the relays with labview ? 


Best Regards


0 Kudos
Message 8 of 9
Accepted by topic author pratheek
GPIB is not DAQ hardware. If you have a GPIB instrument that has some sort of switching, you should have mentioned that in the first place and if you want help in controlling this instrument, provide the make and model. I would also hope that you've already checked for an instrument driver by using Help> Find Instrument Drivers.
Message 9 of 9