01-19-2011 08:50 AM
Hello NI,
I've encountered the following variable display:
First, zero is negative, and second, the tool tip is too small (probably due to the minus sign)
Wolfgang
Solved! Go to Solution.
01-20-2011 03:57 AM
Hi Wolfgang,
with these informations I cannot help you...
Which software version do you use?
Please send me your code to see if it happens on my workstation too.
Best regards
Suse
01-20-2011 05:13 AM - edited 01-20-2011 05:20 AM
Hi Suse,
I am using CVI2010.
The code involved is too long. The number reported results from using the function MaxMin1D; as it turns out, problem (1) is not limited to the tooltip, also the array view displays negative zeros, see below. And it is not limited to floating point display, scientific display of the same data is shown is the second figure.
Wolfgang
PS: From the variable array view, I have saved the data. In the exported file, zeros are negative, too...
01-20-2011 06:32 AM
Hi Wolfgang,
please send me your code to be able to test it on my workstation. Thanks.
Best regards
Suse
01-20-2011 08:14 AM
Hi Suse,
with these informations I cannot help you...
... sorry, this is a slight misunderstanding - I don't need help in this case, and my code is fine (in this case), but IMHO a variable display should not display -0.0, whatever code is used.
I don't mind, I just thought it's somewhat unusual and NI might want to improve on it
01-21-2011 02:48 AM
Negative zeros are legit floating point values. This is not a bug. Wikipedia
01-21-2011 04:17 AM - edited 01-21-2011 04:18 AM
Hi CVI-User,
I never called it a bug I just considered it somewhat unusual... But after following your link it appears that it may not be unusual for the software expert. So now you all know that I'm not a software expert
Still, the data tool tip is too short to display negative zeros. This indeed might be a tiny bug...
01-21-2011 07:24 AM
Hi Wolfgang,
if you want to get this posted to the CVI-developer, please make a little CVI program showing this issue!
Thank you.
Best regards
Suse
01-23-2011 07:18 AM
Hi Suse,
Following the link provided by CVI-User it is pretty easy to reproduce this behavior. Probably the most lazy approach is using the Interactive Execution window of CVI, where you might want to ask the CVI-developer to cut and paste the following two lines:
static double _tmp1;
_tmp1=-0.0;
After that, the CVI-devloper has to press Shift+F5 and move the mouse over _tmp1 and watch the data tooltip...
Following this recipe it can be easily seen that the tooltip is too short by half a digit.
I hope this description meets all requirements for posting it to the CVI-developer.
01-27-2011 03:30 AM
I am wondering if this issue has been reproduced by now?
Pressed for an example program, here is one...