text: 11-12-2018 11:19 PM
  Hard to debug. You didn't attach any of your Arduino code to show how that is programed.
  11-13-2018 12:00 AM
  This is my Arduino Code
  #include <SoftwareSerial.h>
  int incomingByte = 0; // for incoming serial data
  void setup() {
  Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
  }
  void loop()
  {
  if (Serial.available() > 0) //See if data is there
  {
  incomingByte = Serial.read(); //Read a byte
  Serial.print("I received: ");
  Serial.println(incomingByte); //println appends the termination character
  }
  }
  11-13-2018 01:55 AM
  Remember that you can't have both LabVIEW and Arduino IDE open at the same time.
  Before you run your LabVIEW program, you need to close the Arduino IDE debug window. Only one of them can use the COM port at one time.
  11-13-2018 06:50 AM
  @kavyatweetee wrote:
  Sir I modified my program in Arduino and also changed my VI but the output in Labview seems to be null. It is neither showing any output nor error in Labview.
  I have to ask the stupid question: Did you press the Send button? That Event Structure is sitting there waiting for you to do something. One of the things it is waiting for is for you to press the Send button, which will make the LabVIEW code then write to the port and read the data back. The other thing the Event Structure is waiting for is for you to press the Stop button, which will cause LabVIEW to close the serial port and end the VI by stopping the loop.
  11-14-2018 12:07 AM
  Good morning
  Yes sir I did that and it is working but after pressing the stop button in Labview, I started seeing the output in Arduino but nothing comes to it.
  It is also not showing that Arduino port busy and the output is also not coming in the "serial port". Can you please tell me why this happens with Arduino.
  I used the same Arduino code which I given to you before in this discussion.
  11-14-2018 05:41 AM
  @kavyatweetee wrote:
  Yes sir I did that and it is working but after pressing the stop button in Labview, I started seeing the output in Arduino but nothing comes to it.
  When you press the Stop button, the VI should have stopped running. Therefore nothing should be being sent to the Arduino.
  11-14-2018 06:46 AM
  If you press send and the data gets sent to the Arduino through the VISA Write, the code will then wait at the VISA read until:
  1. It receives the termination character
  2. It receives the 50 bytes your requested
  3. It times out. (usual default is 10 seconds)
  So if you aren't getting data, you must be getting #3. Are you getting time out errors?
  11-14-2018 11:37 PM
  Good morning
  Firstly I want to tell the process that I am doing. I start with uploading my Arduino code to Arduino UNO Board and then I am opening my Labview code and I run that VI and I am getting the output in Labview(It is reading data from Arduino). Next I am opening the Arduino "Serial monitor" and it is showing the "PORT BUSY" error and I am not getting any time out errors also.
  11-15-2018 12:05 AM
  You can't have two different programs accessing the same serial port. Once one opens it, the other program is locked from using it. That is what "PORT BUSY" means.
  11-15-2018 12:54 AM
  Now what is the solution for this sir????
  This site uses cookies to offer you a better browsing experience. Learn more about our privacy statement and cookie policy.