LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview arduino

Solved!
Go to solution

Guys I am using Arduino UNO and BH1750.I have downloaded LINX. I want to display the LUX values ​​received by the BH1750 in LabVIEW Waveform Chart, but I don't know how to write the program. Can someone help me?

0 Kudos
Message 1 of 6
(528 Views)

Do you know LabVIEW?  That should be your first step.  There are tutorials from NI (links on the first page of this Forum) as well as tutorials on the Web.  Do you know how to install and use LINX?  Do you have colleagues who can help you?

 

Bob Schor

0 Kudos
Message 2 of 6
(474 Views)

My development board is an Arduino R4 Minima, and I'm using a LINX sample program when I get the error shown in the image. Could it be that R4 doesn't support it?

0 Kudos
Message 3 of 6
(430 Views)

Did you load the LINX firmware onto the Arduino first?

 

Also here's my generic reply to people asking about using LabVIEW with an Arduino

 

In general there are three ways of using LabVIEW with an Arduino

 

  1. Program the Arduino in the native Arduino language.
    1. LabVIEW can communicate with an Arduino using VISA just like any other instrument on a serial port.
    2. IMHO: This is the best way as you have full control over the communications protocol and you can use any of the of Arduino libraries and LabVIEW toolkits that are already out there.
    3. I highly recommend watching this video on serial communications: VIWeek 2020/Proper way to communicate over serial
  2. Use LINX (Hobbyist Toolkit or whatever they are calling it now)
    1. Full LabVIEW integration, but limited amount of Arduino libraries and peripherals directly supported
    2. The Arduino basically becomes a tethered DAQ device that needs to be connected to a computer/LabVIEW to work
  3. TSXperts Arduino compiler for LabVIEW
    1. Actually turns LabVIEW into compiled Arduino code. (A real feat on its own)
      1. Limited subset of LabVIEW vi's and primitives
      2. Very limited support for Arduino libraries 
      3. Development seems to have stopped, so those annoying bugs are here to stay
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 6
(397 Views)
Solution
Accepted by topic author yaooo

I've loaded the LINX firmware onto the Arduino, but I'm still getting the same error. I tried communicating with the Arduino using VISA, and that worked. I reasonably suspect that the LINX software doesn't support the Arduino R4 development board.

0 Kudos
Message 5 of 6
(370 Views)

@yaooo wrote:

I've loaded the LINX firmware onto the Arduino, but I'm still getting the same error. I tried communicating with the Arduino using VISA, and that worked. I reasonably suspect that the LINX software doesn't support the Arduino R4 development board.


Doh, the R4 is not supported as it uses a different microcontroller than the R3 and earlier

 

 

To be honest Linx or the Hobbyist Toolkit is just a gimmick for an Arduino. It has always been severely limited in the peripherals it directly supports (even some of the VI's in the Toolkit only work in an R-Pi or BBB) and basically turns an Arduino into a tethered DAQ device that need to be connected to a computer.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 6
(340 Views)