LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem reading analog input

Good day all,

 

I'm using NI-7350 controller to measure voltage from a power supply. 

 

I connected the positive line to Analog input 1 (Pin32) and Gnd to Analog Input ground (Pin68)

 

But I am reading a analog value of 18000 for 5V and the value goes up and down propotional to the voltage set. Is it a value setting problem ? Since the station I'm using doesn't have internet acess, I took a screenshot of the vi instead. Thanks

0 Kudos
Message 1 of 8
(3,707 Views)
Sorry I messed up with the screenshot. This one any better ?
0 Kudos
Message 2 of 8
(3,705 Views)
Hi Odsnot,

Motion control's analog input returns binary, and you need to translate it mannualy.
Refer to range.png, if you use 0-10V range, you can build a vi as shown in translate.png to read analog to translate voltage.

Regards, Kate
Download All
0 Kudos
Message 3 of 8
(3,661 Views)

Thanks for the reply,

I've managed to read the voltage reading, had to change the constant 10 to a 5 though.

 

However for example 8+V, the reading shows 8.73156E+9. How do i convert it to like maybe 8.7 because my meter isn't responding to the voltage which i think the E+9 is the cause.

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

Hi, Just decrease the Digits of Precission of your indicator. This slove your query.

 

regards

Akshath 

Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 5 of 8
(3,612 Views)

akshath wrote:

Hi, Just decrease the Digits of Precission of your indicator. This slove your query.

 

regards

Akshath 


I think Odsnot has used an odd scaling factor - 8,731.56 mega-volts seems a bit high(?) Smiley Wink

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 6 of 8
(3,606 Views)

What is the odd scaling factor ? I dont remember using it..

 

I tired dividing 8.73156E+9 by a million and I got the voltage I wanted lol.

0 Kudos
Message 7 of 8
(3,568 Views)

Hi odsnot,

      According to the table provided by Napoleon, in no case should a raw return value be greater than 65535, and the results of proper scaling will be a smaller [absolute value] than the raw values.

 

Using that table, and assuming a -10 to +10 Range is used, the return value of 18000 (see original post) is scaled as follows ScaledValue = (10*18000/32768) = 5.5 V.  So that seems to work.Smiley Happy

 

I don't understand where 8731560 (8.73156 +E9) comes from - it doesn't seem possible(?)

 

Cheers.

 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 8 of 8
(3,551 Views)