LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RELAY CONTROL USING USB-6008

Solved!
Go to solution

Hi everyone i'm new to labview, i want to control the relay using USB-6008. could someone help me in to find valuable solution, as this one is my final mechanical engg project. Also i need the circuit connection diagram and if it's digital control then mention the ports/lines details to which i have to connect.  

 

In this i've attached the relay diagram, wherein i have to just magnetise that core to attract that soft iron. so i have to make it ON and OFF. please guide me, and advance thanks too.

0 Kudos
Message 1 of 20
(8,405 Views)

What is the voltage and current requirements of your relay coil? 

 

A USB-60008 can output only 5 V and a very low level of current.  Probably not enough to directly drive your relay coil.

 

You will likely need a transistor circuit so that the 5V digital output can turn on and off a transistor which can drive a larger voltage and current circuit that will match the specifications of your relay coil.  If you search the forums and/or the web, you should be able to find examples of such a circuit.  That, or talk to your advisor for your mechanical engineering project.

0 Kudos
Message 2 of 20
(8,380 Views)

relay parameters are 1.6V and 2 mA.  i tried by choosing DAQ Assistant>Generate signals>Digital Signals>port or lines, but did'nt got any output. I'm really confused with the circuit connections, please suggest a suitable block diagram, front panel, and circuit diagram......

 

0 Kudos
Message 3 of 20
(8,374 Views)

BYm,

 

As Ravens Fan has said the 6008 has fairly limited current handling capability. The DO ports should only be used to sink current and never as a source. So for example you would want to turn your relay on by bringing a DO line on the 6008 low. I suggest using a solid state relay, and as has been mentioned you need to specify the LOAD conditions before proceeding to select a relay. I have a  6008 and have used the KYOTTO KF02D  DC SSR successfully with it. The relay can control up to 60V DC @ 2A. KYOTTO  also makes an AC SSR. Both devices electrically isolate the load from the DAQ. The SSR's are available from Digikey and Jameco (and plenty of other places)

 

 

Alan

Message 4 of 20
(8,373 Views)

BYm,

 

Post your VI

 

Alan

0 Kudos
Message 5 of 20
(8,372 Views)

hello sir, thanks for your adviceSmiley Happy. I tried your method, as shown in the block diagram. I can able to control the device by making solid state realy On and Off in "Measurement and Automation Explorer". and i generated one VI, wherein i chose

DAQ > OUTPUT > GENERATE SIGNALS > PORT0/LINE0 > 1 SIGNAL ON DEMAND

but later got strucked in between. I need a Boolean controller, could you please sort this out sir.

 

sir, also check my circuit connections in the attached file, if any corrections are there then let me know sir...

0 Kudos
Message 6 of 20
(8,312 Views)

Post the VI you made.

 

Alan

0 Kudos
Message 7 of 20
(8,302 Views)

The diagram looks good.  And you have already said it works in M&A, Just post the VI you made, so we can see where the problem might be?

 

Alan

0 Kudos
Message 8 of 20
(8,259 Views)

hello sir, this is the vi which i'm planning to do..... Is it the correct one?

 

0 Kudos
Message 9 of 20
(8,158 Views)

Well, I don't get a few things there. Why would you want to control the Amplitude of a square wave, I thought you were using one of the Digital I/O ports? The signal is going to be +5 or 0 V.  Why do you want to send a square wave any way? I thought you wanted to control the relay? A square wave will just turn the relay on and off continuously. I think you want to get rid of the simulate square wave and replace it with a Boolean switch. That way  the user can turn on and off the relay.  Also I would just wire the STOP button directly to the condition terminal. It makes more sense that way.

 

Alan

0 Kudos
Message 10 of 20
(8,135 Views)