11-19-2008 02:15 PM
I try to use PXI-6250 through BNC-2110 to control 5V relay. Please give advice if it is possible and how.
Thanks
Liming
Solved! Go to Solution.
11-21-2008 10:31 AM - edited 11-21-2008 10:32 AM
Hello Liming,
This is definitely possible, but there are some limitations. Are there any current requirements for the 5V relay. If it is low current you should have no problem controlling the relay with one of your PFI lines (they are found in the screw terminal of the BNC-2110).
Regards,
Dan King
11-21-2008 03:26 PM
I am using labview. Please give more guid how to program this control in Labview.
Thanks
liming
11-24-2008 02:47 PM
Regards,
Dan King
12-02-2008 02:01 PM
Hi, Don,
Thanks for advice. I worked hard to follow your direction. But I feel I have no much knowlege about digital circuit. I am using a relay G3PA-210B (OMRON). The relay need 5V and 7 ma to operate. I just want to control close it and wait for another voltage monitoring. If another voltage is out of the range, I need to be able to open relay.
It seems very difficult for me to get it done quick. If you can give an example for me to start. I will be ver y happy.
Thanks
Liming
12-02-2008 04:40 PM
12-02-2008 04:51 PM
Your program isn't doing anything. It's just a DAQ Assistant wrapped in a while loop.
How do you change the values it is putting out? You don't have anything going to the data input of the DAQ assistant.
12-03-2008 08:16 AM
Yes, you are right.
I used MAX to output 5V voltage. It is strange 5V output was still there even after I close MAX.
I use Labview for measurement a lot. This is the first time to output voltage. I feel it is hard for me to get it done quick. Although there are some examples, I still do not know which one is good for me.
Please can provide an simple example just for output voltage from this PXI card so that i can play on it.
Thanks
liming
12-03-2008 08:28 AM
Why is it strange? You program it to a logic high and it is supposed to stay that way until you program it to a logic low. I don't think I would like an output that changes state without being commanded to do so.
Something from LabVIEW basics is to right click on the Data input and select 'Create Control'. You now have a control that you can change the output states with.
Also, if you want to skip the DAQ Assistnant, you were already given the location of the digital generation examples. Did you look at any of them? The simplest to use are Write Dig Chan and Write Dig Port.
One thing missing from your example (and the NI examples mentioned above), is an event structure so that the DAQ Assistant or DAQmx Write will only be called when the output pattern changes.
12-05-2008 01:33 PM