Pages: [1]   Go Down
Author Topic: Labview drivers for Arduino  (Read 5086 times)
0 Members and 1 Guest are viewing this topic.
Chennai, India
Offline Offline
God Member
*****
Karma: 0
Posts: 752
Peace!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Labview drivers for Arduino..


Where can i get it? anyone tried it?
Logged

Be The Change...

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17292
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can't help sorry, but liked the video.

The last words were the best. "Do we know about the Arduino? Yes we do, there everywhere."

Lefty

Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You only need the usual VISA stuff for serial port access. The rest is pretty simple.

I have some labview 7 code somewhere that I used to talk to an arduino board. It was used to poll a few sensors on a stepper motor stage. Labview sends a single letter to query the board and gets back the current counter value for each sensor.

I've attached a zip with the labview code and the arduino's firmware. It uses a now obsolete library to talk to a MAX7221. You can throw that one out, as it's only for a display and not needed for the serial stuff. You'll get the idea how to get going.

The 'tester' .vi is used as a stand alone, whereas the other .vi is basically the same, but integrates easier with others as a sub-vi.

Now you only need a demo version of labview... Maybe National Instruments still offer that. I have a book named 'LabView for Everyone' that came with a demo I think. Quite a few years old though. But the basic serial I/O using the VISA stuff is pretty basic and should work. It was in version 5.1 as well, and that is well... stone age ;-)

This is the back panel spaghetti code:


* arduino_labview7.zip (114.37 KB - downloaded 118 times.)
« Last Edit: February 07, 2011, 04:58:46 pm by madworm » Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Milano
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

do you know which are the drivers needed to the comunication labview<->arduino with usb and not with serial?
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

But the arduino uses serial - by means of an USB<-->serial converter chip. Just install the arduino as per the default instruction so it works with the IDE. This either requires the FTDI drivers (for older boards) or the .inf file for the arduino uni.

Then to talk to the main processor (ATmega328), just use the virtual serial port in labview. You can access it with the VISA blocks.
« Last Edit: February 27, 2011, 10:41:09 am by madworm » Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Pages: [1]   Go Up
Jump to: