From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing from Arduino to LINX??

Hello there,

A quick question:

Last year I developed this sketch to control the conditions of my ovens to dry fruits using an Arduino Mega, 3 sensors for Humidity and Temperature and 3 servos to control the opening on top of the oven..

 

Took me ages as I am not a programmer.

Now I see that the new way of programming is using LINX. (No LIFA anymore....)

What it would be the advantage of developing a new sketch in LINX to do the same as in my old sketch ?

The reason for this is that now I would like to change the Servo with Stepper Motor (more power to lift the hatch).

.... and I am having problems in Uploading the LIFA on my new Arduino Mega...............

 

Thanks for all your help and Time

 

Andrea

 

0 Kudos
Message 1 of 18
(4,704 Views)

The LINX toolkit basically takes over the Arduino - it compiles a pre-written sketch onto the Arduino which gives you access to the peripherals (e.g. analogue/digital I/O) from LabVIEW and has a serial communications protocol to communicate between the Arduino and LabVIEW. It is, however, possible to customise the sketch to add in custom commands.

 

If your sketch has some custom functionality that isn't available in LINX (e.g. it implements some sort of control or talks to some shields etc.), then you might want to stick to your sketch. If your just reading some inputs/writing some outputs and want to do that from LabVIEW - then LINX is a simple way of doing that. Note as well that LINX requires your arduino to be constantly connected to the computer to work.

 

It's also worth pointing out that there is a LabVIEW compiler for Arduino - http://www.tsxperts.com/arduino-compatible-compiler-for-labview/


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 18
(4,691 Views)
Thanks Sam, very informative. In this case I will have just to upload on the Arduino Mega a LINX code that replace the LIFA. And my old Sketch should work ...... Is it so? My Sketch is very basic and I used only what was available on the Library. Thanks again for your time . Best regards Andrea
0 Kudos
Message 3 of 18
(4,670 Views)

@andreaspi wrote:
And my old Sketch should work ...... Is it so? My Sketch is very basic and I used only what was available on the Library. 

Do you mean your Arduino sketch? If so, the answer is no - the LINX sketch overwrites whatever is on the Arduino. If you mean your LabVIEW code - you'll just need to replace the LIFA functions you were using with the appropriate LINX ones - you should be able to do basic I/O etc.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 18
(4,656 Views)

Hi Sam, Sorry, I will try to be more technically precise......

In my old system I had to upload on my Arduino a LIFA_Base using the Arduino IDE in order to use the Arduino Mega with LabView.

I suppose that with LINX I will have to use the same basic "sketch" to communicate between Arduino and LabView.

Is it so?

I am watching the

Getting Started with LINX

videos, they are talking about a:

Compiler for LabVIEW

That on my Labview 2012 is not present.......... Is this what I need to still use my old VI on the new Arduino Mega I am building as backup?

 

 

.Thanks for your quick responds

Andrea

 

 

0 Kudos
Message 5 of 18
(4,630 Views)
If you are going to talk about a video, you need to provide a link.

You can't use your old VI when you replace LIFA with LINX. The LINX functions operate in a similar manner but they have different names. The communication between the pc and the arduino is still serial, though.
Message 6 of 18
(4,619 Views)

LINX has it's own sketch you have to upload on your Arduino - but it's the same principle as the LIFA toolkit.

If you read the link I posted above - there is an Arduino Compiler for LabVIEW, but it is a 3rd party toolkit which you have to pay for.


It's also worth pointing out that there is a LabVIEW compiler for Arduino - http://www.tsxperts.com/arduino-compatible-compiler-for-labview/




LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 7 of 18
(4,605 Views)

Hi Dennis,

here is the link I didn't metion in my previous post:

 

http://www.tsxperts.com/arduino-compatible-compiler-for-labview/

 

ok, I will study a bit more before coming back with obvious questions.

 

Thanks for all and regared

Andrea

 

0 Kudos
Message 8 of 18
(4,584 Views)

Thanks Sam,

I will download the third party app and try again.

I will be back after some testing..............

Thanks for all

Andrea

0 Kudos
Message 9 of 18
(4,579 Views)

I think a very helpful discussion is going on here in the forums, but I think that the LabVIEW MakerHub could be more useful for this specific forum post. For example, there are specific areas in the MakerHub forums dedicated to posts on LINX. Post your questions there and see if any other users can give you good feedback. Below I have included a link to the LabVIEW MakerHub.

 

LabVIEW MakerHub

https://www.labviewmakerhub.com/forums/

 

Good luck!

Gabby
National Instruments Applications Engineer
Message 10 of 18
(4,541 Views)