title: Serial communication using Arduino and RS 232 cable
body: <p>I am trying to control KEITHLEY Electrometer 6517B using Arduino by sending the SCPI commands but I am not getting any input. I bought an RS232 converter and using the TX and RX pins. Below is the code that I'm using.</p>
  
  <pre class="lang-cpp prettyprint-override"><code>void setup() {
    Serial.begin(19200);
    Serial1.begin(19200); // port that RS232 is connected to
  }
  
  void loop() {
    if (Serial1.available()) {
      int inByte = Serial1.read();
      Serial.write(inByte);
    }
  
    if (Serial.available()) {
      char ser = Serial.read();
      Serial1.write(ser);
    }
  
  }
  </code></pre>
  
  <p>I did the following with Python but it was working there but not here.</p>