LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

What driver do I use for an old Presario laptop running XP for labview and a arduino uno?

Solved!
Go to solution

I have read through all the post and knowledge I could find. One said not to use the drivers in the FTDI folder but that is the only drivers in the arduino-1.0.1-windows folder.

Under ports I do not see arduino. But if I click on the port, under port properties, general, it says<Location 0 (Arduino Uno)>

If i can run the simple blink (c/program) in the arduino skech does this mean i have the right driver for labview?

0 Kudos
Message 1 of 22
(7,544 Views)

On Windows XP an Arduino Uno uses Microsoft's USBser.sys driver.  An Arduuino UIno does not use FTDI drivers because it does not use a FTDI USB to serial converter chip.  To install the driver just point the Windows driver installation program to the Arduino's driver folder.  There is no USBser.sys driver in the Arduino drivers folder.  Instead there is an "Arduino Uno.ini" file that tells Microsoft how to configure USBser.sys for use with an Arduino UIno. 

The Arduino Uno uses a separate Atmel micro controller for USB to serial conversion.

Howard

Message 2 of 22
(3,384 Views)

Thank You Howard

I think if I understand what you said is sence I directed Windows driver installation program to the FTDI driver folder in the arduino folder I have the correct driver installed and I should look else where for my problem.

0 Kudos
Message 3 of 22
(3,384 Views)

In your initial post you asked two questions.

Question 1. What driver do I use?  I answered this question.

Question 2.  "If i can run the simple blink (c/program) in the arduino skech does this mean i have the right driver for labview?"   I did not answer this question in my previus message.  I should have said yes "if the blink program runs" you have the right driver. 

Now your statement "I have the correct driver installed and I should look else where for my problem." has ne confused. What problem are are you referring to?

hrh1818

0 Kudos
Message 4 of 22
(3,384 Views)

HI Howard

I am trying to use LabView to control a remote car.This is for my colloge class.  So my first steep is to get the PWN (pulse with modulation) working for the h-bridge moter drive.I am using folllowong VI  to learn and move on from thair.

Arduino Example: RGB LED

VERSION 4  Click to view document history  

  Created on: May 11, 2011 4:13 PM by Sammy_K            - Last Modified:  May 14, 2011 11:25 AM by Ben_J1

I could not get it to work. hence the question about the driver.  First things first.

I have down loaded and installed

LabView 2011 students verson

visa503

labview tools

VI package manager with (LabVIEW Interface for Arduino v2.2.0.79 by National Instruments)

and yet i can not get this VI to work

my arduino is good and the wireing to the led, it works on the school computer.

I can not get it to work on my laptop.

I upload the LabView file to the arduino sketch.

under tools

choose the com port and board uno

I am not sure what to choose in the Programmer chooise

down load to the arduino

the tx and rx lights blinks on the arduino

but the Vi still does not work

and when i stop the VI i get a 5005 error

I have been working on this for 3 weeks and am rather frustrated at this point.

any help would be apprecieted

Larry

0 Kudos
Message 5 of 22
(3,384 Views)

Does the blink example work?

0 Kudos
Message 6 of 22
(3,384 Views)

HI Nathan

Yes blink works.

0 Kudos
Message 7 of 22
(3,384 Views)

When you say "I upload the LabView file to the arduino sketch." do you mean you upladed the the LIFA firmware to the Arduino board?

What Arduino board are you using?

The 5005 error pops up quite frequently.   Search the threads using the search term "error 5005".  Several threads that discuss this error will show up.  Read through them and hopefully you find some an answer.

hrh1818

0 Kudos
Message 8 of 22
(3,384 Views)

Howard

question 1-I loaded the file from this location

C:\Program Files\National Instruments\LabVIEW 2010\vi.lib\LabVIEW Interface for Arduino\Firmware\LVIFA_Base

only I go to LabView 2011 since that is the version I am using

  the last file is LIFA  insted of LVIFA

below is the code that gets loaded

question 2-arduino uno

question 3- I read those but did not find them helpfull.

I have chosen the com. port  in the VI.


/*********************************************************************************
**
**  LVFA_Firmware - Provides Basic Arduino Sketch For Interfacing With LabVIEW.
**
**  Written By:    Sam Kristoff - National Instruments
**  Written On:    November 2010
**  Last Updated:  Dec 2011 - Kevin Fort - National Instruments
**
**  This File May Be Modified And Re-Distributed Freely. Original File Content
**  Written By Sam Kristoff And Available At www.ni.com/arduino.[/color]
[color=#7E7E7E] **

*********************************************************************************/


/*********************************************************************************
**
** Includes.
**
********************************************************************************/
// Standard includes.  These should always be included.
#include <Wire.h>
#include <SPI.h>
#include <Servo.h>
#include "LabVIEWInterface.h"

/*********************************************************************************
**  setup()
**
**  Initialize the Arduino and setup serial communication.
**
**  Input:  None
**  Output: None
*********************************************************************************/
void setup()

  // Initialize Serial Port With The Default Baud Rate
  syncLV();

  // Place your custom setup code here
 
}


/*********************************************************************************
**  loop()
**
**  The main loop.  This loop runs continuously on the Arduino.  It
**  receives and processes serial commands from LabVIEW.
**
**  Input:  None
**  Output: None
*********************************************************************************/
void loop()
{  
  // Check for commands from LabVIEW and process them.  

  checkForCommand();
  // Place your custom loop code here (this may slow down communication with LabVIEW)
 
 
  if(acqMode==1)
  {
    sampleContinously();
  }

}

0 Kudos
Message 9 of 22
(3,384 Views)
Solution
Accepted by topic author redratliff

I forgot that on the computer I am using now I got the same 5005 error.  To fix the problem I use the following procedure.

1,  Open the "Analog Read Pin VI

2.  Open block diagram.

3.. Look for the Arduinio Init sub VI on the left side of the block diagram

4.  Right click on Arduino Init sub VI

5.  Select open front panel

6,  Open block diagram

7.  Look for the Arduino sub VI on the let side of the block diagram

8.  Right click in the upper left corner of the Arduinio sub VI

9.  Select Create

10. Select Constant

11. Select Text Tool from the Tools Pallete

12. In the Text Box enter COMX where X is the COM port Arduino uses on your computer.

13. Save changes.

Give this procedure a try to see if it fixes your problem.  It is kind of odd.  Sometimes the Labview LIFA VIs automatically finds the COM port.  Other times you need to manually enter the COM port number.   If this procedure works most likely you will need to manually enter the COM port number for any LIFA VIs you run.

hrh1818

0 Kudos
Message 10 of 22
(3,384 Views)