labview linux is an open source tool for arduino hardware.This tutorial is about labview arduino examples.We will discuss about labview examples and how we can perform binary conversion in labview linux. Labview arduino is used for arduino hardware implementation and testing in real time.
Arduino binary logic to decimal value using Push buttons and LEDs in LabView
Our task is to Convert the binary logic into Decimal value.we have to make a LabView program that reads the binary logic from Arduino digital channel and convert it into corresponding decimal value.
Step # 1:
Open LabView and in the search bar enter Digital read n Channel.
Insert this box by right clicking on the project window and go to makerhub>Linx>peripherals>digital and pick the digital box and place it in the project window.now click on the arrow near to change digital read channel and check it into the digital read N channel.
Step # 2 :
Now do all the necessary steps for creating the maker hub project.Place while loop and open and close boxes.
Step # 3 :
The easiest way is to place or modify things id to search.Go to Help > find Examples and now type in the search window Digital read n Channel.
A ready example will be open up if you have any issue placing basic parts like open and close and other peripherals.
Now Type in the search window > Bool to decimal > a bool array will be shown in the search bar pick that one and place into the project.now connect to the digital read n channel values output line and after Boolean array connects an indicator for displaying decimal value.
see the figure below to understand the concept.
Step # 4 :
Hardware: Connect 4 push buttons in the configuration below. You can also connect these in the pull-down configuration.this is the pull-up configuration.
4x Resistors 1K
4x Push Buttons
Take 4 digital Arduino pins.connect the out put of the circuit to that pins.Give power to the circuit from Arduino board.
Final Step :
Open up both the windows of your project and connect Arduino to the serial port.Now select Com Port and Run the program. One more thing before running the program is to give the corresponding digital pin number to the digital array that is alongside the led array.
Now press the push buttons in a way that binary logic works that are 1-2-4-8. The corresponding number will be shown on the decimal indicator.
If you need the files then Comment below and Subscribe to our YouTube channel for video Tutorials.