Labview Arduino binary logic to decimal | Labview arduino examples

binary llogic

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.


01: Step # 1:


Open LabView and in the search bar enter Digital read n Channel.
OR
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.


02: Step # 2 :


Now do all the necessary steps for creating the maker hub project. Place while loop and open and close boxes.


03: 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.


04: 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.


05: 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.

 

 

Exit mobile version