10-02-2015 02:15 PM
hello everyone!!
need urgent help please..i only need on time communication between labview and arduino through visa write .problem is that when i turned the "highlight execution "button on it show on time data sent to arduino and led pin 13 is on as the condition match .but not working when execution button is off. please this is not a big issue for you guys i attached my codes please reply
int a=0; void setup() { pinMode(13,OUTPUT); Serial.begin(9600); } void loop () { while (Serial.available()>0) { a= Serial.parseInt(); if (a>5) digitalWrite(13,HIGH); else digitalWrite(13,LOW); delay(100); } }
10-02-2015 03:05 PM
That means you need to slow down your code.
10-02-2015 03:12 PM
how to slow it down ? by lowering the delay values??
10-02-2015 03:46 PM
Or speed up your code that is running on the arduino by lowering its delay value.