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 Delay on serial monitor (Read 258 times)
ka
Newbies
*
Offline


Posts: 1
Joined: Nov 15th, 2019
Delay on serial monitor
Nov 15th, 2019 at 11:50pm
Print Post  
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
 
ka
Newbies
*
Offline


Posts: 1
Joined: Nov 15th, 2019
Re: Delay on serial monitor
Reply #1 - Nov 16th, 2019 at 9:43am
Print Post  
This Topic was moved here from GDB Debugging [move by] ka.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint