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 Lag on Serial Monitor (Read 1063 times)
ka
Newbies
*
Offline


Posts: 1
Joined: Nov 15th, 2019
Lag on Serial Monitor
Nov 16th, 2019 at 9:42am
Print Post  
(This topis was posted in wrong forum - so I'v moved it. Sorry) 

I'm all new to Visual Micro for VS2019 so I would try to run a simple push button example.

When I run it in the Arduino IDE and open the serial monitor, I get instant feedback, but when running it in VS2019 there is a 2 - 4 second dealy on the output.

Any idea about what is making it so slow. 
I sure this can be fixed. No one likes this kind of lag when testing their work. So I'm doing something wrong and the default settings are making things slow.

Any idea about where I should look to make this work better?

Code
Select All
void setup() {
	Serial.begin(9600);
	pinMode(2, INPUT_PULLUP);
	pinMode(13, OUTPUT);

}

int sensorVal = LOW;

void loop() {
	sensorVal = digitalRead(2);
	Serial.println(sensorVal);

	if (sensorVal == HIGH) {
		digitalWrite(13, LOW);
	}
	else {
		digitalWrite(13, HIGH);
	}
} 


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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Lag on Serial Monitor
Reply #1 - Nov 16th, 2019 at 12:21pm
Print Post  
I guess the toolbar is set to Debug? Please set it to Release then build/upload again.
« Last Edit: Nov 16th, 2019 at 12:22pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint