From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-11-2021 05:36 PM
I'm converting 2 - 10VDC to a range of 0 - 200. I have a USB-6001 device and am using DAQmx VI's. I have tried making both the linear and the map custom scales but for some reason it's always about double what I should be getting. When it's receiving around 2.24 Volts I should be showing 3.5. But it's giving me 6.5.
Maybe I'm just too hungry but I'm really drawing a blank on this one. See attached files
Solved! Go to Solution.
05-11-2021 06:22 PM
I can't open your block diagram. It seems to be corrupt.
05-11-2021 06:24 PM
The scaling is right, your expectations are wrong.
Just estimating in my head I see that 2.24V moves you about 1/4 V into your 8V input range (2-10V), so a little less than 1 part in 32. Mapping to 1/32 of a 0-200 range says that 6.5 seems about right.
-Kevin P
05-12-2021 02:39 AM - edited 05-12-2021 02:41 AM
Hi David,
@David99999 wrote:
When it's receiving around 2.24 Volts I should be showing 3.5. But it's giving me 6.5.
The "linear scale" image also shows the resulting formula!
Did you apply that very simple math on your voltage reading?
formula: Y= 25*X -50
X=2.24 -> Y=6
Why do you expect a value of 3.5?
05-12-2021 09:49 AM
Well, I'm expecting a value of 3.5 because I'm converting 4-20mA to workable voltage for the DAQ. I'm using a 500Ω resistor to do so. The power supply is outputting 3.5 amps, and I had about 2.24V across the resistor.
Anddddddddd I just realized after typing that out what the issue is. I'm trying to scale it 0-200 Amps, but the jumper is removed so the range is actually 0-50 Amps. Woops. Thanks guys!
05-12-2021 11:16 AM - edited 05-12-2021 11:17 AM
Don't forget to give yourself the credit for the solution, and kudos to those who helped you get there! 🙂
(You can have more than one solution.)
05-12-2021 12:49 PM
Sorry to nitpick, but something still seems off. Scaling 2.24 V where a 2-10 V range maps to 0-50 A should give you 1/4 of the ~6.5 I referred to earlier, so more like 1.6. Still not 3.5.
I understand that (as far as you know) the real world *actual* current might be 3.5 and that's why you're anchored to it, but the ranges and voltage measurements you've presented don't get you there. Just looking to emphasize clarity. The deifference between a 0-200 A range and a 0-50 A range doesn't *actually* explain what you've observed so far.
-Kevin P
05-12-2021 01:19 PM - edited 05-12-2021 01:20 PM
2.24V probably doesn't represent 3.5A anymore after putting the jumper on the correct spot. I didn't measure the voltage across the resistor, but after doing that I get a current reading in labview of 2.7 - 2.9 amps (it fluctuates a little) while my BK 9201 power supply shows 2.9999 amps being drawn from it, when I have the current output set to 3 amps. (In the example I just gave, forget about the 3.5A, I changed it to 3A earlier today).