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 @PLOT feature with VS2022 (Read 897 times)
Carlitos_Barberis
Newbies
*
Offline


Posts: 4
Joined: Feb 17th, 2022
@PLOT feature with VS2022
Feb 17th, 2022 at 5:00pm
Print Post  
Hi, I am pretty new to Visual Micro but so far I really like it especially after trying PlatformIO, so I have purchased this product. Although I had no problems in getting started debugging a ESP32 project using the ESP32-PROG module I was not able to get the PLOT feature working, I keep getting the "unable to create variable object" error in my output window
Below are the lines of code I have and the output error as shown on the output window of the program.

***************************************************

     VoltReading = GetAverageVolts(AVERAGE_SAMPLES);
  *     Serial.print("ADC Value in Volts = ");          ----------> break point for Actions
        Serial.print(VoltReading, 3);
        Serial.println(" Vdc");

***************************************************

{@Plot.PlotWindow VoltReading} ----------> setup for actions


-var-create: unable to create variable object ----------> ERROR 

I get with NO PLOT in Output window???
Any suggestions will be greatly appreciated
Thank you
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: @PLOT feature with VS2022
Reply #1 - Feb 17th, 2022 at 5:05pm
Print Post  
Thanks for the report.

The @Plot charts are only currently available with the Serial Debugger, but they are not available for the Hardware Debugger.

If you just want to see the readings in the output window, then you can use an action as below:
Code
Select All
VoltReading: {VoltReading} 



If it still states it is unable to create a variable object, the optimization may need to be changed to "No Project Optimization".
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint