LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Precision of Variables Window

Solved!
Go to solution

Hello,

 

I thought to remember that it is possible to set the number of digits that are displayed in the variable view. Right now, doubles show with five decimal places... where can I change this setting to show 'all' digits? Or has this feature gone with the new Variables Window in CVI2013?

0 Kudos
Message 1 of 12
(6,178 Views)

Hello Wolfgang,

 

it is possible to change the preferences. (Format --> Preferences )

 

Have a look at the attached screenshot to see no digits in the value window.

 

Kind Regards,

 

Philipp K.

 

AE | NI Germany

0 Kudos
Message 2 of 12
(6,145 Views)

Hello Philipp,

 

thanks for addressing my post. However, I am looking for a possibility to change the precision, i.e. the number of digits, of floating point values. Right now, both format options 'Scientific' and 'Floating Point' only show six digits while I'd like to see all...

0 Kudos
Message 3 of 12
(6,142 Views)

May be I wasn't clear enough...Smiley Frustrated

 

Right now, there are three possibilities to see a variable value during debugging: as data tooltip or in variable view; the latter provides the option to display the value in floating point format or in scientific format. Floating point provides a precision of 5 digits, scientific format provides a precision of 6 digits, see the figures below.

 

Once in a while I need to see all digits - where can I set the precision of the displayed variables? I knew how to accomplish it prior to CVI2013...

 

Thanks.

 

d1.png

d3.png

 

d2.png

 

In this test case, p has been defined as 0.31830988618379067153776752675.

0 Kudos
Message 4 of 12
(6,107 Views)
Solution
Accepted by topic author Wolfgang

Hi Wolfgang,

 

I've created a bug report to track this: 427730.

 

What I noticed is that CVI 2012 was showing the maximum precision for doubles, whereas CVI 2013 is only showing 5 decimal places. This is what the bug above is addressing.

 

So far as I can tell, it's not possible to change the precision in 2013, nor do I know how to change it in 2012, but I could be missing something. When you say "I knew how to accomplish it prior to CVI2013" what do you have in mind?

 

Luis

0 Kudos
Message 5 of 12
(6,036 Views)

Hi Luis,

 

Thanks for addressing the issue, I am relieved that it is not me who is unable to change the display settings Smiley Wink

Concerning your question - I am not sure if it was possible to change the precision before CVI2013, but I remember that I was able to see all relevant digits.

 


Now for the serious part: it takes all sorts of issues, some are cosmetic, some are basic. Being unable to debug certain parts of my code made me seriously regret my update to CVI2013. PLEASE, fix this as soon as possible.

 

0 Kudos
Message 6 of 12
(6,032 Views)

Smiley Happy

 

Hi Luis, I found the place where to set precision - but it's not possible in the Variables and Call Stack, only in the array view... Here you can right click the table and choose Format / Set Precision, this option is missing in Variables and Call Stack

 

variable_view.png

0 Kudos
Message 7 of 12
(5,942 Views)

Being unable to debug certain parts of my code made me seriously regret my update to CVI2013. PLEASE, fix this as soon as possible.

Thanks for the quick fix in CVI 2013 patch f1

0 Kudos
Message 8 of 12
(5,892 Views)

Unfortunately it turned out that the issues has not been fully resolved... Data tooltips and variable view do some kind of automatic rounding but based on 15 digits only...

0 Kudos
Message 9 of 12
(5,730 Views)

You're right, the auto-precision is only showing a maximum of 15 digits, rather than 17. This seems to have been the case in all versions of CVI, from what I can tell. I haven't investigated this yet, but I created a CAR for investigation: 466763.

0 Kudos
Message 10 of 12
(5,699 Views)