LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to control a relay using labview

i want to control a output to a relay from relay using serial port.How can i do that
0 Kudos
Message 1 of 6
(3,624 Views)
This link should be able to guide you to something

http://www.hut.fi/Misc/Electronics/circuits/parallel_output.html
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 6
(3,624 Views)
Greetings Parimala!

What sort of power lever are you anticipating? There are some relays available that will work with TTL voltage on the coil. If you need something beefier, you can use an intermediate power transistor between the serial port TTL output and the relay. As far as the actual serial communications is concerned, you can just transmit a continuous string of 1's to turn the relay on, or 0's to turn it off. (You might need to build a simple RC filter to take care of any chatter) I've used this technique with Hyperterm with good success)
Alternatively, there is a neat little SERIAL DAQ module available from B&B electronics that does a bangup job for controlling relays and such from the serial port. Last I checked, they were around 40 bucks
or so. {Note to Developer Exchange censors:(Am I allowed to mention other products on a National Instruments site? :)}

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 3 of 6
(3,624 Views)
You mean to say that Transmission of continous 1s through the serial port can make the relay closed.Is it correct.
OK which one i have to use either VISA or serial i/o capability vis
0 Kudos
Message 4 of 6
(3,624 Views)
opps!... this is for Parallel Port Control.

gomenne
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 6
(3,624 Views)
Hi,

We strongly recommended using NI-VISA. The serial compatibility VIs have been unsupported for a while. LabVIEW 7 doesn't even show them for development (they are available, but hidden, for backwards compatibility).

Also, I don't think there is any problem mentioning other vendors products if that would help solve customer problems.

DiegoF
National Instruments
0 Kudos
Message 6 of 6
(3,624 Views)