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 Serial Monitor and Watch Expressions Improvements (Read 6466 times)
Luis Henrique
Newbies
*
Offline


Posts: 1
Joined: Jan 30th, 2014
Serial Monitor and Watch Expressions Improvements
Jan 31st, 2014 at 5:12am
Print Post  
Hello, I've started to use Visual Micro a few days ago, it is kind of becoming a must have for me, specially in large projects.
However, there is one break deal here (for me at least).
All my communication, PC softwares and arduinos communicate through bytes in HEX Values. And as I can tell, the current serial monitor only sends text/char mode, therefore it is unusable for all of my projects.
Is there any chance you may be adding a Send Mode Option? (Char/HEX/Bin) to the serial monitor?

Another thing that would be really neat is to show all global variables in real time instead of adding them to expression one by one. Or (if it would be easier) just add a way to add multiple variables to the When Hit Condition.

Thanks for the software and answer in advance.
Luís Henrique.
« Last Edit: Jan 31st, 2014 at 5:13am by Luis Henrique »  
Back to top
 
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Serial Monitor and Watch Expressions Improvements
Reply #1 - Feb 13th, 2014 at 10:44pm
Print Post  
Hi Luis Henrique,

I am a user like you. Since you say "When Hit Condition", I presume you have the debugger.

When you ask to display the value of a variable, there is a watch window. In that window you may select whether you wish to show the Hex value or not for example.

Quote:
add a way to add multiple variables to the When Hit Condition


The first option at the top by default is set to display the function name. You may replace the content of the field by something like that:

Var1 = {Var1} Var2 = {Var2}

{xxx} is replaceable parameter where xxx is a variable name.

Hope that helps  Smiley.
  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Serial Monitor and Watch Expressions Improvements
Reply #2 - Feb 14th, 2014 at 4:38am
Print Post  
Sorry. 
You can do this directly with the announcement breakpoint.
Var1 = {Var1, BIN }
Var1 = {Var1, OCT }
Var1 = {Var1, DEC }
Var1 = {Var1, HEX }
Example display
•  {78, BIN}- displays "1001110" 
•  {78, OCT} - displays "116" 
•  {78, DEC} - displays"78" 
•  {78, HEX} - displays "4E"
Sincerely
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Monitor and Watch Expressions Improvements
Reply #3 - Feb 14th, 2014 at 12:39pm
Print Post  
Hi Luis,

Thanks for the feed back. 

Gelius has shown how to format data for the debugger above using ,HEX etc. The modify of variables during debug will also honor this format on a per variable basis.

Your request for a general serial monitor that works with hex makes sense however we currently do what the Arduino Ide does. I expect in the future we will ensure the serial monitor has more features but for now there are some great third party monitors that support lots of formats.

The debugger can be connected to digital pins for trace/break using softwareserial leaving your core code to use hex serial.

Hope this is useful, not perfect but maybe some solutions for you.

Thanks
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Serial Monitor and Watch Expressions Improvements
Reply #4 - Feb 14th, 2014 at 12:39pm
Print Post  
Directly, even better  Smiley.

Looks like it accepts arguments like Serialx takes.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint