Example Code

Karnaugh Map/Truth Table converter using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example allows the user to quickly convert between the karnaugh map and truth table visulaisation

 

Description

This example allows the user to quickly convert between the karnaugh map and truth table, two common ways of expressing a logical circuit.  The VI can handle 2, 3 or 4 input values.

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

  1. Run the VI
  2. Select Number of Inputs (2,3,4)
  3. Change the values on the Karnaugh Map LED buttons or the Output in the truth table and notice how it changes on the other hand
     

 Additional Information or References

VI Front Panel

5962 FP.PNG

VI Block Diagram

5962.PNG

 

**This document has been updated to meet the current required format for the NI Code Exchange. **

 

Al B.
Staff Software Engineer - TestStand
CTA/CLD

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.