LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

funny variable tool tip

Solved!
Go to solution

Hello NI,

 

I've encountered the following variable display:

 

tooltip.jpg

 

First, zero is negative, and second, the tool tip is too small (probably due to the minus sign)

 

Wolfgang

0 Kudos
Message 1 of 13
(4,564 Views)

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

______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 2 of 13
(4,530 Views)

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.

 

d1.jpg

d2.jpg

Wolfgang

 

PS: From the variable array view, I have saved the data. In the exported file, zeros are negative, too...

0 Kudos
Message 3 of 13
(4,527 Views)

Hi Wolfgang,

 

please send me your code to be able to test it on my workstation. Thanks.

 

Best regards

Suse

______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 4 of 13
(4,515 Views)

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 Smiley Wink

0 Kudos
Message 5 of 13
(4,508 Views)

Negative zeros are legit floating point values. This is not a bug. Wikipedia

-----------------------
/* Nothing past this point should fail if the code is working as intended */
Message 6 of 13
(4,465 Views)

Hi CVI-User,

 

I never called it a bug Smiley Wink 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 Smiley Very Happy

 

Still, the data tool tip is too short to display negative zeros. This indeed might be a tiny bug...

0 Kudos
Message 7 of 13
(4,458 Views)

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

______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 8 of 13
(4,446 Views)

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.

0 Kudos
Message 9 of 13
(4,405 Views)

I am wondering if this issue has been reproduced by now?

 

Pressed for an example program, here is one...

 

0 Kudos
Message 10 of 13
(4,341 Views)