05-26-2015 07:35 PM
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?
05-26-2015 07:38 PM
05-26-2015 09:18 PM - edited 05-26-2015 09:19 PM
@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.
05-27-2015 07:42 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-27-2015 08:07 AM - edited 05-27-2015 08:10 AM
@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.
05-27-2015 08:29 AM - edited 05-27-2015 08:30 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-27-2015 08:33 AM
@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.
05-27-2015 09:05 AM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-27-2015 09:59 AM - edited 05-27-2015 10:01 AM
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.
05-27-2015 10:00 AM
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?