From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with LabView Bluetooth Communications

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);
}

}

}

0 Kudos
Message 1 of 2
(2,093 Views)

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

0 Kudos
Message 2 of 2
(2,026 Views)