LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Write Arduino Problem

Labview VISo just a little background of what Im trying to do: Make a labview to send a character over to the arduino and the arduino reads that in and then writes to its EEPROM a value if it recieved something. Basically i wrote a simple program to test this out although it only works when I have the debugger active. First I thought this may be a timing issue so I added in a wait paramter but still no luck. Any one know what the solution to getting the program to work using the regluar run  command?

(Also the serial Port does open when in the debugger I know)VI Serial

Arduino Code:

String x="";
#include <EEPROM.h>
void setup() {
  // initialize serial:
  Serial.begin(9600);
  // make the pins outputs:
 
}

void loop() {
  // if there's any serial available, read it:
  if(Serial.available() > 0) {
   EEPROM.write(1,3);
  }

}

 

 

0 Kudos
Message 1 of 7
(3,219 Views)

where is com port value?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 7
(3,187 Views)
Ranjeet,

Why did you think you needed to reply to this duplicate thread with a duplicate answer?
0 Kudos
Message 4 of 7
(3,178 Views)

I saw question and I answered, I will be careful I dont repeat it

 

What I saw in image is missing com port. for that I dont need to find a refernce for answering   

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 7
(3,168 Views)

But when you answer in this thread, that keeps the conversation going in this thread thus splitting communication between multiple threads.  This defeats the purpose of marking this thread a duplicate and hyperlinking to the other thread where the responses belong.

0 Kudos
Message 6 of 7
(3,147 Views)

Roger that !!! 

 

Like I said will ensure in future. Thanks for suggestion

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 7 of 7
(3,128 Views)