LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

interfacing with boards other than arduino!!

i have designed a development board using AVR Atmega16L microcontroller which in programmed via ISP programmer. It communicates via the USB-to-SERIAL converter module using MAX232 IC. The microcontroller sends data via its Rx-Tx pin to MAX232 Ic and it converts it to TTL logic and hence sends to the USB port of computer. So, can LabVIEW be used to interface the data coming on the COM port(USB) from the development board!!

0 Kudos
Message 1 of 10
(5,870 Views)

You don't have to use LIFA to interface Labview to a micricontroller.  Instead use Labview's built in serial interface capability. 

hrh1818

Message 2 of 10
(4,238 Views)

thanxx hrh1818...but please help me with the serial interfacing to LabVIEW using a microcontroller....Does the microcontroller needs to be  pre-programmed like in case of arduino,in which we have to first burn a program into arduino to use it with the LabVIEW GUI??? Can,just the data coming from the microcontroller via USART programming be interfaced to LabVIEW GUI???

0 Kudos
Message 3 of 10
(4,238 Views)

Lets first use Arduino as an example. There are many demo programs available for Arduino that use the serial monitor built into the Arduino IDE for a human interface. Here one can use Labview  as a serial monitor instead of using the serial monitor built into the Arduino IDE.

Similarly you can find demo progrms for other microcontrollers that use a serial interface for a human interface.  Or you could write a program with a serial interce.  Here once you have a program with a seral interface that runs on a micontroller you can use Labvirew as a serial monitor and to provide a GUI. 

What I am describng above does not use LIFA or a similar tpe of application program interface that runs on a microcontroller. Depending upon how you configure the microcontroller program you could have it just send data to Labview or have Labview send commds to the microcontroller and read responses.

Then other Howard

Message 4 of 10
(4,238 Views)

thnx again....So what are the other ways by which i can program a microcontroller via LabVIEW or send the data from controller to LabVIEW GUI except serial interface. Can a controller be programmed from the LabVIEW GUI to read the data sent by it or it needs to be programmed via its own IDE platform??

0 Kudos
Message 5 of 10
(4,238 Views)

Unless it's been designed to run LabVIEW code (like a cRIO) then you have to use the native language on the contoller to program it.  Also, according to your first post, the only option is to use serial communication.

So, to use LabVIEW, you have to individually program both the controller and LabVIEW to communicate with eachother via serial.  LIFA can be used as a template for how it handles commands on either side.  You just can't "copy and paste" any of the code.

Message 6 of 10
(4,238 Views)

It looks like you are confused about using Labview to program a microcontroller.  You can not use Labview to program a micrrocontroller.  You can send data to a microcontroller or send data from a microctoller to labview.  All of the code that runs on a micontroller must be written, compiled and dowloaded by the microconrollers IDE. 

If a micontroller has other types of interfaces available, such as Ethernet, WiFi or Bluetooth you are not limited to just using a RS232 serial Interface to send data between Labview and a microcon troller.

hrh1818

0 Kudos
Message 7 of 10
(4,238 Views)

thats what i am asking....for serial communication with other controllers what program needs to burnt in controlller.Also if LabVIEW needs to be programmed,how can it be done?? any tutorial??

thnx for reply!

0 Kudos
Message 8 of 10
(4,238 Views)

You will need to find a firmware for your microcontroller that has a uart interface. The firmware for microcntrollers ist typically programmed in C, and if you can't find a ready made firmware for your microcontroller you will have to dig into the IDE and write your own firmware.

In LabVIEW you simply use VISA functions to communicate with serial port and other communication devices.

Rolf Kalbermatter
My Blog
0 Kudos
Message 9 of 10
(4,238 Views)

Your question:

".for serial communication with other controllers what program needs to burnt in controlller"

Answer:

You will need to write a program that includes both serial communication capability and the program that executes whatever functions you want the microcontroller to perform, 

Your question:

".Also if LabVIEW needs to be programmed,how can it be done?? any tutorial??"

Answer:

You may be able to use one of the example serial communications VIs that come with the student edition of Labview for a serial communcation program.  The "Help" that is built into Labview should be your first source for information.  A good starting point is "Getting Started with Labview."

hrh1818

0 Kudos
Message 10 of 10
(4,238 Views)