LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems Acquiring Data from Arduino to LabVIEW

Hi there!

 

I have made a simple code to acquire data from arduino and display it in LabVIEW

But apparently no data is going to visa read.

 

Anyone has an idea why is it happening??

 

The configurations in Arduino are:

 

void setup() {

    Serial.begin(115200);

    }

void loop() {

    int analogValue = analogRead(0);
    Serial.print("aa");
    Serial.print(analogValue*0.5);
    Serial.print(",");
    Serial.print(analogValue*1);
    Serial.print(",");
    Serial.print("\n");

    delay(5);
}

The VI is attached!

 

Thank you very much!!

 

Paulo

0 Kudos
Message 1 of 10
(3,003 Views)

Hopefully you are changing the baud rate on your front panel from the default Smiley Surprised

=====================
LabVIEW 2012


0 Kudos
Message 2 of 10
(3,001 Views)

Yes! I tried it before and it didnt work. I am going to update the VI

 

Thanks

 

Paulo

0 Kudos
Message 3 of 10
(2,996 Views)

Try to close down the Arduino GUI before running the Labview app. 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 10
(2,981 Views)

Good. I only said that because sometimes the hardest problems are the ones right in front of you. I know this from lots of experience!

 

What kind of troubleshooting have you done? Have you tried using Hyperterm?

=====================
LabVIEW 2012


0 Kudos
Message 5 of 10
(2,980 Views)

After uploading te code, I always close the program I use to upload.

Is that the arduino GUI?

 

Thank you!

0 Kudos
Message 6 of 10
(2,971 Views)

I have changed some parameters to see if it was a problem in my LabVIEW code and I checked to see if FTDI driver for arduino was working properly.

 

None of these solved my problem.

 

How could I use the Hyper Terminal to troubleshoot? I´m really new into this stuff

 

Thank You

 

Paulo

0 Kudos
Message 7 of 10
(2,968 Views)

I have made a more simple VI just to see if any data passes through VISA read, and nothing passed

 

Anyone has any idea?

 

Thank You!

 

Paulo

0 Kudos
Message 8 of 10
(2,956 Views)

Hyperterminal is a program that comes with Windows. Configure it to use the COM port your Arduino is on and see if any data is sent. Set the baud rate, parity, etc. Once you can communicate using Hypreterm you will know that the hardware and communication parameters are correct. Then use these settings in LabVIEW. There is no point in trying to debug the LabVIEW code unless you are sure you have the ability to communicate on the port. Do you have the correct cable? Maybe you need a NULL modem maybe not.

=====================
LabVIEW 2012


0 Kudos
Message 9 of 10
(2,950 Views)

Hi there!

 

I know I can change data with Arduino board, because I can change the code inside.

 

I think maybe the problem is in LabVIEW software, because I cant change VISA I/O, even changing from COM 3 to COM 4.

 

Anyone knows what may cause that?

 

Thanks!

 

Paulo

0 Kudos
Message 10 of 10
(2,938 Views)