Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Min / Max of break point variables. (Read 5762 times)
Karim
Junior Member
**
Offline


Posts: 10
Location: Sweden
Joined: Nov 13th, 2012
Min / Max of break point variables.
Nov 23rd, 2012 at 3:24pm
Print Post  
Not sure if I am doing something stupid or not but I only seem to get the Max and Min of my variables on the first break point but not on the later ones.



Is that normal or is there something I am doing wrong?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Min / Max of break point variables.
Reply #1 - Nov 24th, 2012 at 12:59pm
Print Post  
Hi, I have tested this and the problem is that decimal values (floats) are not being shown with a Min/Max. It will be fixed in the next release. Thanks for the report

« Last Edit: Nov 24th, 2012 at 1:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Karim
Junior Member
**
Offline


Posts: 10
Location: Sweden
Joined: Nov 13th, 2012
Re: Min / Max of break point variables.
Reply #2 - Nov 24th, 2012 at 1:22pm
Print Post  
Awesome! glad to be of use Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Min / Max of break point variables.
Reply #3 - Nov 24th, 2012 at 3:23pm
Print Post  
This might be of interest in short term. Multiple the float by 100 and make it a whole number.

Code
Select All
{(long)(r*100)} 



You would have to remember the values are multiplied by 100 when you look at the Min/Max

If you wanted to be able to change the value of r then add two versions of "r" to the "When Hit" message(s). Bear in mind that you can not change the value of an expression only a variable/register. So the first {expression} gives min/max the 2nd modifiable {variable} is the raw float/decimal.

Code
Select All
{(long)(r*100)}{r=?} 


« Last Edit: Nov 24th, 2012 at 3:26pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Kev
Junior Member
**
Offline


Posts: 10
Joined: May 7th, 2018
Re: Min / Max of break point variables.
Reply #4 - May 19th, 2018 at 7:39pm
Print Post  
Was this ever fixed? 

I have similar issues...

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Min / Max of break point variables.
Reply #5 - May 19th, 2018 at 9:14pm
Print Post  
Thanks for the report! That fix failed due to a bug and is now fixed in the next release.

There is a release about to be published but it's also available now in the Work in Progress thread
« Last Edit: May 19th, 2018 at 9:14pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint