12-30-2017 06:14 AM - edited 12-30-2017 06:15 AM
Hello,
we are trying to send data from LabVIEW to Arduino via Bluetooth module HC-06 ( we are using Bluetooth blocks in LabVIEW it comes with MakerHub),
the problem is that the Bluetooth is connected but there is nothing sent to the Arduino,
our program is turn the led on, please check our code and LabVIEW
Thank you
----------
Code:
char c;
String input;
void setup()
{
Serial.begin(115200);
pinMode(7,OUTPUT);
digitalWrite(7,LOW);
}
void loop()
{
if(Serial.available()){
c= Serial.read();
if(c=='A'){
digitalWrite(7,HIGH);
}
}
}
12-31-2017 01:12 PM
There is a LabVIEW Interface for Arduino (LIFA) group on this Forum, and also MakerHub, which deals with LabVIEW + Arduino. As you need both sets of expertise, you might have better luck asking in these two Forums.
Bob Schor