Changing from serial monitor to plotter without restart.

I would like to use the serial monitor to enter some setup data, then switch to the serial plotter to show how the setups have affected the results. Problem is changing from monitor to plotter resets the Arduino, so I lose the changes I made. I could save them in EEPROM, and read them back in on startup, but it seems a bit unnecessary.

Is there a way to switch between them without causing a restart?

Is there a way to switch between them without causing a restart?

The general answer is no

How are you making the changes ?

e.g. changing a delay time, by entering "D123"

void loop() {
  char ch;
  String ip;
  String ips = "";

  if (Serial.available() > 0)
  {
    ip = Serial.readString();
    ch = toupper(ip[0]);
    if (ip.length() > 1) {
      ips = ip.substring(1);
    }
    switch (ch)
    {
      case 'D':
        delaytime = ips.toInt();
...
...
...

If you are using an Arduino UNO you can put a 10 microfarad capacitor between the Reset pin (+) and Ground pin (-). This absorbs the auto-reset pulse generated when the serial connection is re-opened. Note that this will interfere with the auto-reset when you need to upload a new sketch so you will probably want to remove the capacitor when uploading.

johnwasser:
... you can put a 10 microfarad capacitor ...

Thanks for the tip - I might try that. Trouble is, the older I get, the harder it becomes to poke wires into titchy little connectors or breadboard holes (currently using a nano). And I do a lot of code mods & uploads while developing. Suppose I could use a toggle switch ...