03-23-2011 06:09 AM
Hi all!
I own an Arduino Uno. Reading posts in the forum seems that i can use LabVIEW only with Arduino Duemilanove. Is this true?
Thanks.
Solved! Go to Solution.
03-23-2011 09:27 AM
Hi =). Im a beginner working reading serial data from an arduino but im facing... Lets do this step by step
I constructed a voltage divider circuit that gives an output ranging from 0 to 5V. The output of this circuit is sent to an analog input pin 0 of an Arduino Duemilanove board.
1) Firstly I plugged in the cable connecting my laptop USB to the arduino board.
2) I went to start->control panel->system->hardware->device manager. Check out Ports(COM & LPT). In my laptop I can see USB Serial Port (COM4). Now I know in Labview I have to read serial data from COM 4.
3) For the arduino side, here is the code to read voltage variations inputted to analog pin 0. The last line 'delay' determines the sampling rate of how we want to sample the voltage divider output:
int potPin = 0; // select the input pin for the voltage divider output
int val = 0; // variable to store the value coming from the sensor
void setup()
{
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}
void loop() {
val = analogRead(potPin); // read the value from the voltage divider
Serial.println(val);
delay(10);
}
I have slightly modified the basic serial read write VI.. I have attached the block diagram used with comments. Basically I tried to read serial data, divide by 1023 and multiply by 5 in order to graph voltage variations from the voltage divider circuit. However Im not getting the correct voltage output values . The voltage value just keeps going to 0 and coming again as shown in the pic.
Could you guys please guide me on what went wrong?
Thanks!
03-23-2011 10:13 PM
Jazlan,
Start your own message thread. Don't hijack someone else's message.
03-24-2011 07:42 AM - edited 03-24-2011 07:46 AM
Sorry for the interruption.. Im new to this forum and I thought my question may be helpful under this topic.
Regarding in whether arduino Uno can be used with labview, The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the Atmega8U2 programmed as a USB-to-serial converter.
I came across this link, http://code.google.com/p/labviewduino/
The.author did mention that we do not need to install an FTDI driver to our PC if we are using an Uno. The other steps the author has mentioned to in order to communicate between labview and arduino are similar to Dueminalove and other boards.
03-25-2011 03:23 AM
Thanks for your considerations Jazlan, but these don't satisfy my question.
I simply need to know if someone succeeded in using Arduino Uno with LabVIEW. Being the owner of an Arduino Uno, i need to know this in order to understand if i have to replace it with an Arduino Duemilanove.
03-25-2011 03:26 AM
if the equipment support Serial (VISA) communication, then I see no point in why it should not work.
03-26-2011 08:47 AM
03-28-2011 02:32 AM
Clear like water. Thanks Tanya!
11-14-2013 05:26 PM
hello such, any consultation with arduino is better than consult in the next group, also find, documentation, examples
https://decibel.ni.com/content/groups/labview-interface-for-arduino
11-22-2013 04:29 PM
You can see an example for analog reading https://decibel.ni.com/content/docs/DOC-33278