04-03-2014 07:39 AM
04-03-2014 07:46 AM
Norbert_B
I think I am not gud at explaining my problem. I am using Relays and I want to control the relays with NI USB-6501 which is digital I/O interface device that is used for data acquisition and control. It is compatable with labview. I would like to program in labview to control these relays using USB-6501. I would like to know how can i do it......
Regards
Pratheek
04-03-2014 07:58 AM
04-03-2014 10:01 AM
@Norbert_B wrote:
Pratheek,
in order for the switch to work, it has to be supplied with power. Right?
But simply providing power doesn't switch it. Right?
So there must be an interface for the switch (is it a relay? Some kind of FET?) which CONTROLS the switch and let it switch to the next connection. You have to figure out if THAT INTERFACE is compatible to THE HARDWARE you already have available. If so, connect it. If not, build some kind of adoption board.
So currently this is no software related question!
Norbert
Norbert - I saw that clip in your sig. It was too uncomfortably close to the truth.
04-04-2014 03:59 AM
Hi Pratheek,
perhaps there still is some misunderstanding among us. I hope I am getting closer to your point of view.
If you have a NI USB-6501, like you wrote before, you can theoretically use the digital output the control your switch, but you have to have a look at the specs of your device (e.g. page 17):
http://www.ni.com/pdf/manuals/371456h.pdf
But it would be your task to build a suitable interface the digital output can switch. If you have that interface you can switch your circuit in no time with LabVIEW with just controling the digital output.
If you use a GPIB it wont get any easier in my opinion since you would have to get a functioning GPIB device on top of your circuit.
LabVIEW and NI Hardware can only connect your hardware to your Computer/PXI System/cRIO ... etc. and provide you with possibilites to communicate or control your hardware for example over a bus like GPIB or directly over a analog or digital line.
What kind of communication protocol you would like to use is your decision eventually. You have to build the hardware you want to control/communicate with yourself. Anyone can just explain the pros and cons of your decision.
So my proposal is that you use a digital output to control your circuit. But you would have to build a matching circuit to the output levels of the digital IO device anyway.
I hope I could help you along, but feel free to further specify your question.
Kind Regards
Christoph
04-04-2014 04:32 AM
Hi Christoph_D
Thanks alot. You exactly got my point of what I was asking for. I am trying to figure out a suitable interface that could switch my digital output ...........I was asking for how could I control the Digital output using labview. May be i was not clear in explaing what i was lookig for but finally u got my point...........Thanks alot.....I will come back to you with my queries once I find the suitable interface
Regards
Pratheek
04-13-2014 10:49 AM
Hi Christoph_D
Could you please tell me how could I switch my relays using Labview. I tried with the examples on relays in labview help but I am not getting any idea how should i use it for my project....... Could you please give me few suggestions or any example VI that could help me
Regards
Bhargava
04-13-2014 01:29 PM
04-13-2014 01:55 PM
I am using USB-6501 for interfacing with my board. As its default configuration of the USB-6501 DIO ports is open-drain for 5 V i am using a pull-up resistor as a buffer to drive the relays. As far as i came to know the device is provided wit a software cd to customize DAQ applications with NI LabVIEW....... and i have refered to relay switch example......
Regards
Pratheek
04-13-2014 02:00 PM
some questions
is your NI USB-6501 detected by the MAX,
are you using DAQmx accessing the NI USB-6501. any success you got. 6501 is a DIO module and you can use its IOs for digital input and outputs. but from your cirucuit you need a feedback control like sensing the analog signal and then switch the circuit accordingly via 6501. if this is so then you also need an analog measurement module to get the feedback and then you switch the relays via 6501 as per your req. will you control all the switches mentioned in your diagram