04-18-2013 03:02 AM
In order to test if a relay is ON/OFF using de DAQ of my PCI 6221 card and the AI ports. I conect one of the contacts of the relay to a AO which gives 5v, and the other contact to an AI in order to detect the corrent. Also a bridge is needed to close the circuit betweeb the AO and the AI.
Shoud this bridge conect the GND of both ports?
The conexions scheme is: relay -- AO (5 v) -- AO GND --- AI GND --- AI0 ---- relay
This doesn't work, and gives a continuous corrent of 10 V (I think its a saturated measure)
Any hint, please?
Solved! Go to Solution.
04-18-2013 08:27 AM
AI and AO ? Why don't you use the +5V output of the PCI 6221 (pin 8 or 14) and one of its DIs ?
04-18-2013 08:45 AM
I do not know the electronic functioning of the card, and I thought that Digital ports were output only. In this case, should a GND port be conected also?
04-18-2013 08:58 AM
The most basic connection is :
But I would add a resistor (eg 10k) from DI to GND of PCI 6221. This will set the input to GND when the contact of the relay is open.
04-18-2013 09:27 AM
Thanks, I am going to try this.
04-18-2013 10:17 AM - edited 04-18-2013 10:23 AM
first of all...
from what i read so far...i would use an inline shunt resistor (very low resistance dependant on the nominal current used on the relay and maximun voltage read specification of the 6221) connected to the differential 6221 AI's to sense voltage and the connection of current flowing through the relay being 'on'.
04-19-2013 01:22 AM - edited 04-19-2013 01:27 AM
apok a écrit :
first of all...
- what are the specifications of the relay
- do not drive any devices(relays) if your 6221 specification for sourcing is beyond nominal operation
- try to buffer(protect) these devices from electrical damage
- use a ttl driver(ULN, transistors, optocoupler,fets, voltage compators....)
from what i read so far...i would use an inline shunt resistor (very low resistance dependant on the nominal current used on the relay and maximun voltage read specification of the 6221) connected to the differential 6221 AI's to sense voltage and the connection of current flowing through the relay being 'on'.
Unless I'm wrong, the coil of the relay is controlled by some other signal and the PCI-6221 is only used to check the switching of the relay's contact. Please correct me if this is not correct. In this case your recommendations are very important because the PCI-6221 can be damaged !
04-20-2013 04:39 PM - edited 04-20-2013 04:50 PM
@JB wrote:
Unless I'm wrong, the coil of the relay is controlled by some other signal and the PCI-6221 is only used to check the switching of the relay's contact. Please correct me if this is not correct. In this case your recommendations are very important because the PCI-6221 can be damaged !
6221 has both AI and DO:
so tell me where the damage would be?
04-22-2013 01:49 AM
I'm also speaking about using the AO of the PCI-6221 to drive the relay.
04-22-2013 08:50 AM
@JB wrote:
I'm also speaking about using the AO of the PCI-6221 to drive the relay.
but I would not recommend the 6221 driving the relay, use an external source
I'd rather have a $15 power supply take the brunt of my load rather than my $3000 Daq card taking a dump.....