LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with seeing negative values for I32 indicator

I am having trouble with seeing negative values (through a 1d array) on a I32 integer. 

Here is the indicator: 

Satvikpai_0-1709217267941.png

 

Here is the VI logic for Pack Current:

Satvikpai_1-1709217307545.png

 

0 Kudos
Message 1 of 3
(335 Views)

Hi Satvikpai,

 

You should convert your U32 to I32 before converting to double, otherwise it is interpreted as a positive number when converted to a double:

raphschru_1-1709218470257.png

Regards,

Raphaël.

0 Kudos
Message 2 of 3
(322 Views)

What you are doing also seems overly complicated and wrong. Multiplying an integer with 0.01 or 1e-5 probably deserves a DBL indicator because the result is unlikely to be quantized to integers.

 

Here's what I would probably do instead (much easier to debug and much less likely to make mistakes!)  🙂

 

altenbach_0-1709220384176.png

 

0 Kudos
Message 3 of 3
(302 Views)