SerialEvent() Not running

Alright, We've been through a real adventure trying to get these Atlas Scientific sensors to work. The problem we're having this time is that the serial monitor isn't printing anything. This is a pretty standard issue so I put in some code to see what part its getting stuck on. It seems to be that for whatever reason, it doesn't want to run SerialEvent(). I've looked into replacing it with ServialEventRun() but that seems to make a loop that we can't exit. The sensors we're using come with some example code and this is the same way that they use this function. Anyway, here's the code that's causing us trouble. (We are using an Arduino Uno)

#include <SoftwareSerial.h>
#define rx 6
#define tx 5
#define rx1 3
#define tx1 2

SoftwareSerial myserial(rx, tx);      //Define the ports we're going to use for EC

String inputstring = "";      //Define some strings and booleans for later
String sensorstring = "";
boolean input_string_complete = false;
boolean sensor_string_complete = false;

SoftwareSerial myserial1(rx1, tx1);     //Define the ports we're going to use for PH

String inputstring1 = "";     //Define different strings so they won't contradict
String sensorstring1 = "";
boolean input_string_complete1 = false;
boolean sensor_string_complete1 = false;
float pH;

void setup() {        //Setup the serial speed we're going to use along with setting aside some bytes
  Serial.begin(9600);
  myserial.begin(9600);
  inputstring.reserve(10);
  sensorstring.reserve(30);
  Serial.println("Stage 1");
}


void serialEvent() {
  Serial.println("Stage 2");
  inputstring = Serial.readStringUntil(13);       //Output bytes until it sees a tag <CR>
  input_string_complete = true;       //If so then set this boolean to true so we know the string is complete
}

Which Arduino board are you using?

Stockbridge_InvenTeam:
I've looked into replacing it with ServialEventRun()

I don't see any point in doing that. The serialEvent() feature is actually not even very useful. Its functionality can easily be replaced by a few lines of code in your sketch. It's certainly not worth trying some weird hack to get it working.

Stockbridge_InvenTeam:
here's the code that's causing us trouble.

That code doesn't even compile.

If you want help getting serialEvent() to work, post your code that uses serialEvent() and doesn't work as you expect it to.

Ok, I've updated the post. You said that SerialEvent() can be replaced with some code? What would that be. Also, this code does compile just fine for us.

Stockbridge_InvenTeam:
Ok, I've updated the post.

It still doesn't compile. Every sketch must have a loop function.

Stockbridge_InvenTeam:
You said that SerialEvent() can be replaced with some code? What would that be.

void loop() {
  if(Serial.available()) {
    // put the code you would have in serialEvent() here
  }
}

That's literally all serialEventRun() does. I don't like serialEvent() because it leads people to think there is some magic to it. I think it's much better to just implement the same functionality in your sketch so you can clearly see what the code is doing, rather than having it hidden away. For example, serialEventRun() is called after loop() exits. So if you have some code in your loop function that blocks it from exiting then serialEvent() mysteriously doesn't work. With the code snippet I posted above, it would be obvious what the problem is.

Okay, sorry I'm kinda new to this. Here's our full code. Maybe I did something wrong but this still doesn't seem to be working even without SerialEvent()

Why not post your code here?

1.) I'm pretty sure you need to at least define the loop() function in your code for SerialEvent() to be run. You do not define loop() in your original post...
2.) Might want to check out this library for transferring serial packets