Go Down

Topic: Labview drivers for Arduino (Read 5577 times) previous topic - next topic

pracas

Labview drivers for Arduino..
http://www.youtube.com/watch?v=cm-0RhBbJAw

Where can i get it? anyone tried it?
Be The Change...

retrolefty

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


madworm

#2
Feb 07, 2011, 10:45 pm Last Edit: Feb 07, 2011, 10:58 pm by madworm Reason: 1
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:

• 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!

Alexandro

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

madworm

#4
Feb 27, 2011, 04:38 pm Last Edit: Feb 27, 2011, 04:41 pm by madworm Reason: 1
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.
• 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!

Go Up