LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino source code application in labview

OK guys, I think what Milton wants to know is can you embed Arduino code in a Labview VI, compile and deploy it to an Arduino SBC and have it execute properly! 

0 Kudos
Message 11 of 17
(2,431 Views)

@DelWilson wrote:

OK guys, I think what Milton wants to know is can you embed Arduino code in a Labview VI, compile and deploy it to an Arduino SBC and have it execute properly! 


No! LabVIEW can NOT compile code to run on the Arduino. If you want to do that you have to use a Raspberry Pi with the aforementioned Linx Toolkit. With that you can write in LabVIEW a program and deploy it directly to the Raspi.

 

If you want to use an Arduino with LabVIEW you have only two options:

 

- In your Arduino IDE of your choice create a sketch that implements whatever you want to implement there and add serial interface support which waits for commands on the serial port and sends answers back as explained before in this thread.

 

- using Link install the Linx driver firmware to the Arduino and then use the Linx VIs in LabVIEW to access the supported analog, digital and other functionality. There won’t be any formula node to enter Arduino code in LabVIEW, but Linx VIs to read and write to digital pins and other IO functionality.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 12 of 17
(2,425 Views)
Message 13 of 17
(1,833 Views)

I have the tsxperts option.  It doesn't have any provision that I can find to incorporate *.ino files directly into a LabView VI.  There is a wealth of proven tested *.ino files available open source but no straightforward way to incorporate them into a LV Project.  Deploying a single one to a Teensy or Arduino SBC is easy enough (outside LV) but if one want's to incorporate a *.ino file in a larger application inside a LV project one must imbed it into a *.dll and then call it from LV.  Significant learning curve here and a complication to having a straightforward path to utilizing the wealth of open source software.  There may be a path via Python but I haven't explored that yet.

0 Kudos
Message 14 of 17
(1,801 Views)

@DelWilson wrote:

I have the tsxperts option.  It doesn't have any provision that I can find to incorporate *.ino files directly into a LabView VI.  There is a wealth of proven tested *.ino files available open source but no straightforward way to incorporate them into a LV Project.  Deploying a single one to a Teensy or Arduino SBC is easy enough (outside LV) but if one want's to incorporate a *.ino file in a larger application inside a LV project one must imbed it into a *.dll and then call it from LV.  Significant learning curve here and a complication to having a straightforward path to utilizing the wealth of open source software.  There may be a path via Python but I haven't explored that yet.


I get it we all want to use LabVIEW everywhere because we like it. But honestly LabVIEW is not even a good choice for an Arduino. LINX and LIFA turned them into cheap tethered DAQ devices and TSXperts compiler is lacking to say the least. Frankly even using an Arduino and LINX or TSX to learn LabVIEW is a bad idea because the Arduino's limited microprocessor forces you to write very poor LabVIEW code.

You would be better off programming the Arduino in its native language and use LabVIEW and VISA to communicate with it just like any other device on a serial port.

========================
=== Engineer Ambiguously ===
========================
Message 15 of 17
(1,798 Views)

Do you have the home/student or pro version?

0 Kudos
Message 16 of 17
(1,767 Views)

I have the Community version.

0 Kudos
Message 17 of 17
(1,747 Views)