LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to input or output current?

Hi all,

  I have a question regarding the signal acquisition. How to output a current instead of voltage to one terminate? What will the current be different if it flows out/in from analogy or digital terminal? I don't have solid background on circuit 😞

0 Kudos
Message 1 of 8
(3,442 Views)

If you want to output a current signal instead of a voltage signal, you need to use the appropriate DAQ module.  A current output module has an inherent feedback mechanism to be able to maintain the requested current no matter what the voltage drop is through the rest of the current loop.  (Within some limitations of course.)

 

I dont' understand your question out in/out and analog? vs. digital channels.

0 Kudos
Message 2 of 8
(3,422 Views)

@RavensFan wrote:

If you want to output a current signal instead of a voltage signal, you need to use the appropriate DAQ module.  A current output module has an inherent feedback mechanism to be able to maintain the requested current no matter what the voltage drop is through the rest of the current loop.  (Within some limitations of course.)

 

I dont' understand your question out in/out and analog? vs. digital channels.


Thanks. I know it is kinda confusing. I don't know much about electronic circuit but as my understanding, a digital signal is a TTL signal with digital one is about 5vol. So in this term, is anything called digital current signal? i.e. is that any way to output a current signal via the DIO line? Also, if I output a digitial 1 to a digitial line, and have the line connecting to a load, should the actuall current flow into the load determined by the resistence and the 5volts?

0 Kudos
Message 3 of 8
(3,414 Views)

There is no such thing as a "digital current signal".

 

A digital signal is either high or low, 5V or 0V like you said.  The amount of current that is drawn on that digital output does depend on the resistance of the load.  You want to make sure that you don't pull more current than the digital line is able to put out.  Typically the values are very low on the order of milliamps.  If you want to drive a heavier load such as a large relay, you may need to use a transistor circuit so the digital output can turn on or off the transistor that drives the relay coil.

0 Kudos
Message 4 of 8
(3,409 Views)

@RavensFan wrote:

There is no such thing as a "digital current signal".

 

A digital signal is either high or low, 5V or 0V like you said.  The amount of current that is drawn on that digital output does depend on the resistance of the load.  You want to make sure that you don't pull more current than the digital line is able to put out.  Typically the values are very low on the order of milliamps.  If you want to drive a heavier load such as a large relay, you may need to use a transistor circuit so the digital output can turn on or off the transistor that drives the relay coil.


Thanks. So you mean the voltage of terminal line or AO channel are fixed to what fed to it but the current depends on the load, right? So how do I figure out the maximum output current so to figure out if it damage my load or not?

 

By the way, what happen if I want to output a constant voltage (AO or DIO) and constant current?

 

Finally, I just figure out something interesting. If I set any digitial line to "1" (5v) and even I terminate the VI code, the state of the line will stay as "1" until I reset it, why is that? Will it be the same case if I use AO channel instead?

0 Kudos
Message 5 of 8
(3,395 Views)

@dragondriver wrote:

@RavensFan wrote:

There is no such thing as a "digital current signal".

 

A digital signal is either high or low, 5V or 0V like you said.  The amount of current that is drawn on that digital output does depend on the resistance of the load.  You want to make sure that you don't pull more current than the digital line is able to put out.  Typically the values are very low on the order of milliamps.  If you want to drive a heavier load such as a large relay, you may need to use a transistor circuit so the digital output can turn on or off the transistor that drives the relay coil.


Thanks. So you mean the voltage of terminal line or AO channel are fixed to what fed to it but the current depends on the load, right? So how do I figure out the maximum output current so to figure out if it damage my load or not?  For a voltage analog output, the voltage at the terminal relative to common is fixed at whatever level you designate within your code.  You generally aren't going to damage a load.  What will happen is that if a load pulls too much current, you will damage the DAQ device.

 

By the way, what happen if I want to output a constant voltage (AO or DIO) and constant current?  You can't.  Voltage and current are directly related to each other by way of the resistance.  If you change the voltage, the current will change. Because the resistance isn't going to change.  V=IR

 

Finally, I just figure out something interesting. If I set any digitial line to "1" (5v) and even I terminate the VI code, the state of the line will stay as "1" until I reset it, why is that? Will it be the same case if I use AO channel instead?  The AO channels and DO channels will do the same thing.  If you end the VI, it is going to stay at the value you left it at.  Why?  Because you didn't tell the DAQ output to be anything different.  If you want the DO to return to zero, or the AO to return to zero, then you need to explicitly to a DAQmx Write to set it that way.


 

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

If you really want to output a constant current, you can either buy something to do it (like http://sine.ni.com/nips/cds/view/p/lang/en/nid/10705 ), or build something to do it (like http://www.allaboutcircuits.com/vol_3/chpt_8/7.html ) and use an analog voltage output from your computer AO board in place of the 5V (variable) source.

 

There is a wealth of very readable information on basic electronics on the Web.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 7 of 8
(3,366 Views)

Thanks all. It is pretty clear now and I did learn something here 🙂

0 Kudos
Message 8 of 8
(3,354 Views)