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
Hot Topic (More than 8 Replies) @Plot (Read 9333 times)
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
@Plot
Dec 20th, 2016 at 3:56pm
Print Post  
Using Atmel 7 with a clone Uno I receive the following error when I build and upload an otherwise working ino with {@Plot.MyPlotWindow.Sensor.temperature}, where temperature is my variable:

Compiling debug version of 'bmp' for 'Arduino/Genuino Uno'
 
bmp.ino: 59:150: error: stray '@' in program
   Serial.println(" C");
    debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging (pls let us know!)
 
bmp.ino: In function void loop()
 
bmp.ino: 59:151: error: 'Plot' was not declared in this scope
   Serial.println(" C");
    debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging (pls let us know!)
Error compiling project sources
Debug build failed for project 'bmp'
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: @Plot
Reply #1 - Dec 20th, 2016 at 4:04pm
Print Post  
Sounds like you have forgotten to enclose your breakpoint expression in {braces}

{@Plot.Something myVar}
{@Plot.Something.myName myVar}

Does this make sense? If not please post what you have added to your breakpoint

Thanks
  
Back to top
WWW  
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #2 - Dec 20th, 2016 at 4:21pm
Print Post  
Hi,
As I wrote in the mail the line I entered was in curly braces viz {@Plot.MyPlotWindow.Sensor.temperature}. I am just trying to get the plot function working using your example and just substituing the variable.
Best
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: @Plot
Reply #3 - Dec 20th, 2016 at 4:27pm
Print Post  
I see thanks, sorry I missed that in the first report.

All the examples (and my above example) have a space between the name of the @plot and the actual variable name

I am guessing that your code variable is called "temperature"

So we can have a single chart

Code
Select All
 {@Plot.Temperature temperature} 



or for multiple charts in the same plot window.

Code
Select All
 {@Plot.MySensors.Temperature1 temperature}
 {@Plot.MySensors.Temperature2 temperature2}
 



and your example will be

Code
Select All
{@Plot.MyPlotWindow.Sensor temperature} 



Notice we simply provide window and chart names with the @plot then a space and then a code expression

Code
Select All
{@Plot.MyPlotWindow.Sensor (temperature/100+5)} 

« Last Edit: Dec 20th, 2016 at 4:30pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #4 - Dec 20th, 2016 at 8:01pm
Print Post  
Many thanks, it is working now with the introduction of the space.
Best
  
Back to top
 
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #5 - Dec 21st, 2016 at 4:42pm
Print Post  
Hi,
Is there a way of changing the range of the y axis in @Plot?
Best
  
Back to top
 
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #6 - Dec 21st, 2016 at 4:45pm
Print Post  
Also when I chart some variable I obtain 2 copies of each graph and they do not close down when I build and upload changes or for that matter when I change projects albeit another project using a different com port.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: @Plot
Reply #7 - Dec 21st, 2016 at 5:14pm
Print Post  
Hi,

There are a lot of of variations you can configure so it's only going to be possible to understand if you can please provide the following:-

A screen shot of the ide 
How many projects open in the current solution
What breakpoint syntax you have added to the project(s). 
Confirm if you close serial the plot windows close for that port? 
Have you been debugging one project at a time or multiple
Is the port changing in the same project or in different projects?
Which Visual Studio IDE version?

As much overview and info as possible to understand what you are doing.

Thanks

.
  
Back to top
WWW  
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #8 - Dec 21st, 2016 at 6:31pm
Print Post  
A screen shot of the ide
Attached
How many projects open in the current solution
One project open
What breakpoint syntax you have added to the project(s).
The syntax is {@Plot.Temperature event.pressure}{@Plot.MySensors.Temperature2 temperature} shown on the Expressions screen. I just copied what you sent to get it working which as I reported it does.
Confirm if you close serial the plot windows close for that port?
Yes they are closed. I can understand that the ports has to be shut before rebuilding but as I wrote I seem to get two copies of the graphs even after closing.
Have you been debugging one project at a time or multiple
One at a time
Is the port changing in the same project or in different projects?
My mistake different (clone) board uses different comm port
Which Visual Studio IDE version?
I am using Atmel Studio 7.
Can the Pressure y axis be scaled to fit so to speak?
Thank you Tim



  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: @Plot
Reply #9 - Dec 21st, 2016 at 6:51pm
Print Post  
I see thanks. I missed the fact this is atmel studio.

The duplicates are slightly different and we see the plots from an older visual micro installation along side the newer ones. I think it's a bug in the installer so a useful post thanks. 

Actually the older version is just an open source example of how to create a visualization plugin that should have its own installer so it's confusing things

If you look at tools>options>visual micro>>version>assembly you will see the location of where visual micro is installed. 

Delete the following folder from that location.

[Visual Micro Location]\Micro Extensions\Debugger Visualizations\PlotMultiExample

You need to close the ide before deleting the folder.

Thanks






  
Back to top
WWW  
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #10 - Dec 21st, 2016 at 7:07pm
Print Post  
Umm, I did as you said I believe and get an error screen which I originally saw only once on my first build prior to this exchange but now it is persistant.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #11 - Dec 21st, 2016 at 7:35pm
Print Post  
Error screen I meant not the error diagnosis.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: @Plot
Reply #12 - Dec 21st, 2016 at 7:50pm
Print Post  
Okay there is a zedgraph.dll in the [visual micro\Micro Extensions\Debugger Visualizations\AnalogGraphExample\bin folder

Copy it to Micro Extensions\Debugger Visualizations\MultiPlot\bin then restart and it will work.

Looks like @plot hasn't been tested in as7 recently!


  
Back to top
WWW  
IP Logged
 
Vanja100
Junior Member
**
Offline


Posts: 17
Location: London
Joined: Nov 15th, 2012
Re: @Plot
Reply #13 - Dec 23rd, 2016 at 11:40am
Print Post  
I have installed, a now 29 day, trial copy in atmel and Visual S in software Tools>options>visual micro>application features>license status which should show registered. I have mucked up something trying to get the graphing working properly.
Best
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: @Plot
Reply #14 - Dec 23rd, 2016 at 4:11pm
Print Post  
If you are using the trial it's okay, it the same as a registered version. 

Let's ignore that and understand what problem you are having with the plot window?

If the problem that it does not appear? If so please confirm if the trace point associated to the @plot is being displayed in the trace window during debug?

If the trace point is displayed then the debug is working it is just the plot window that is not being displayed. In this case click the settings icon on the serial monitor (located to the right of the email/send button)

On the settings button a menu is shown. Lower down the list is "Running Visualizations". If you can see the name of the @plot in the running visualizations list then untick (uncheck) it and then re-tick it again.

If this does not resolve issue then please give feed back on each of the above points in this post.

Thanks

« Last Edit: Dec 23rd, 2016 at 4:12pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint