Interface Arduino With Labview

In this we will see how we connect arduino with labview with serial communication and controlling led.Labview is software that work as grapical representation code so anybody can use and make cool stuffs.

Step 1:

Open labview.

Create a new VI in File > New VI.

In block diagram

  • right click->Instrument I/0->Serial->Visa configure serial port

  • right click->Instrument I/0->Serial->Visa write

  • right click->Instrument I/0->Serial->Visa close

Step 2:

For toggle of led we use switch for that go to Front panel>right click->Boolean-> Vertical switch. you can use any switch you want.

Come back to block digram.Now Switch we used is boolean so we any conversion to string.For that will convert the boolean to (0,1) and then to string.

  • right click->search-> boolean to (0,1)
  • right click->search ->format to string.

Step 3:

for Continuously running use while loop from structures menu.

That's it labview now come to arduino.

open arduino & write following code also availabel inbuild in arduino.

int data;
void setup()





void loop()








else if(data=='0')






Step 4:

Upload the code and run the labview vi.



    • Paint Challenge

      Paint Challenge
    • Sew Tough Challenge

      Sew Tough Challenge
    • DIY Summer Camp Contest

      DIY Summer Camp Contest

    2 Discussions


    Question 10 months ago on Introduction

    Hi guy, I find that your post is very helpfull for my project. I have tried
    your steps and got great results.

    However, I still need your help to tackle the issue as following:

    - I need to put more Boolean in VI to control more leds, but it doest work.

    - I add a boolean to VI block and edit arduino code as shown in attached

    (addition: I made value of boolean 1 as (0,1) and boolean 2 (0,2)

    1 answer

    Answer 7 months ago

    hello there.
    Good to hear you get a great result from this.
    I will Get back to you After creating a scenario as per you required.