LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Uno and LabVIEW

Hello,

 bl

I'm having some trouble getting LabVIEW to read the output from my Arduino Uno ATMEGA-328. The Arduino is getting data from an LIS3DH accelerometer, I have attached the block diagram from LabVIEW. It's supposed to graph the x,y, and z axis but nothing comes up, I changed the "Device" under "Device Configuration" to (ASRL4::INSTR), which I got from NI max. Does anyone know why this isn't working?

0 Kudos
Message 1 of 21
(4,743 Views)
I can't look at you code because I'm on my phone, but are you getting any errors? Are you checking for errors?

Have you verified that nothing is coming to LabVIEW?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 21
(4,736 Views)

@cuuddii wrote:

Hello,

 bl

I'm having some trouble getting LabVIEW to read the output from my Arduino Uno ATMEGA-328. The Arduino is getting data from an LIS3DH accelerometer, I have attached the block diagram from LabVIEW. It's supposed to graph the x,y, and z axis but nothing comes up, I changed the "Device" under "Device Configuration" to (ASRL4::INSTR), which I got from NI max. Does anyone know why this isn't working?


 

You need software on both ends to work. I don't know what makes you think that LabVIEW is the only thing needed.

0 Kudos
Message 3 of 21
(4,714 Views)

There are two easy solutions to getting LabVIEW to communicate to an Arduino.  The older method is using the LIFA toolkit which is no longer being developed but is pretty rock solid for the hardware it supports.  The newer method is using LINX which is similar but supports more hardware, and has a firmware upload wizard.  Personally I see LINX as less polished than LIFA but has more features.  Upload the firmware to the microcontroller and then LabVIEW can communicate to it using normal serial commands.

0 Kudos
Message 4 of 21
(4,675 Views)

@Hooovahh wrote:

There are two easy solutions to getting LabVIEW to communicate to an Arduino.  The older method is using the LIFA toolkit which is no longer being developed but is pretty rock solid for the hardware it supports.  The newer method is using LINX which is similar but supports more hardware, and has a firmware upload wizard.  Personally I see LINX as less polished than LIFA but has more features.  Upload the firmware to the microcontroller and then LabVIEW can communicate to it using normal serial commands.


 

 

If it was me, I'd dump the Arduino and use LabVIEW with USB-8451, but that is probably out of his budget.

 

 

 

0 Kudos
Message 5 of 21
(4,662 Views)

Don't get me wrong, I love the support from NI, and their hardware is pretty good.  But I can see why some would choose to take a $20 micro, and a free toolkit, and make an Arduino do I2C, SPI, AI, DIO, and PWM from within LabVIEW.  I was on a project where we used a 8451 for some heavy SPI communication.  I wrote an actor to handle all the SPI communication, and at the end of the project replaced the SPI calls with the ones from LIFA, and everything worked.  Of course there are things the 8451 can do that an Arduino can't (or can't easily) but for what we needed an Arduino fit our needs.

0 Kudos
Message 6 of 21
(4,646 Views)

@Hooovahh wrote:

Don't get me wrong, I love the support from NI, and their hardware is pretty good.  But I can see why some would choose to take a $20 micro, and a free toolkit, and make an Arduino do I2C, SPI, AI, DIO, and PWM from within LabVIEW.  I was on a project where we used a 8451 for some heavy SPI communication.  I wrote an actor to handle all the SPI communication, and at the end of the project replaced the SPI calls with the ones from LIFA, and everything worked.  Of course there are things the 8451 can do that an Arduino can't (or can't easily) but for what we needed an Arduino fit our needs.


Unfortunately, the "free" toolkit isn't really free because the hobbyists don't know how to use it.

 

I have noticed a significant increase with these Arduino-LabVIEW questions which NI doesn't seem to be supporting at all.

0 Kudos
Message 7 of 21
(4,641 Views)

@nyc_(is_out_of_here) wrote:

Unfortunately, the "free" toolkit isn't really free because the hobbyists don't know how to use it. 

I have noticed a significant increase with these Arduino-LabVIEW questions which NI doesn't seem to be supporting at all.


Yeah I think this is going to become a bigger issue around here, and not just because of Arduino related questions.  As NI promotes more Home and Student use of LabVIEW, more and more beginners are going to look for guidance.  And these entry level software packages come with no SSP so the only easily available help is from the forums.  New developers coming to the forums isn't a problem, but NI promoting a platform and then not supporting it could be a problem.  

0 Kudos
Message 8 of 21
(4,631 Views)

It's not giving me any errors, I forgot to mention it before but I have installed the LabVIEW interface for Arduino firmware onto my Arduino Uno. I do not understand why it isn't graphing the acceleration data, I'm a bit new to all of this, so is there something I'm not doing correctly? Currently all I'm doing is setting all the correct registers, devices, etc. in LabVIEW then I'm running the acceleration code on the Arduino Uno. When I view the Arduino serial monitor everything works fine, am I missing a vital step to transfer the data into LabVIEW. I'm fairly certain I have all the drivers/firmware installed.

0 Kudos
Message 9 of 21
(4,622 Views)

I have installed the LIFA_Base.ino file onto my Arduino Uno, but I'm still getting nothing which is why I'm confused. Is there another step that I'm missing?

0 Kudos
Message 10 of 21
(4,618 Views)