01-07-2011 11:26 AM - edited 01-07-2011 11:33 AM
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
01-07-2011 11:29 AM
Hopefully you are changing the baud rate on your front panel from the default
01-07-2011 11:33 AM
Yes! I tried it before and it didnt work. I am going to update the VI
Thanks
Paulo
01-07-2011 11:40 AM
Try to close down the Arduino GUI before running the Labview app.
01-07-2011 11:40 AM
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?
01-07-2011 11:58 AM
After uploading te code, I always close the program I use to upload.
Is that the arduino GUI?
Thank you!
01-07-2011 12:02 PM
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
01-07-2011 12:12 PM
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
01-07-2011 12:30 PM
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.
01-07-2011 02:11 PM
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