Example Code

T-Type Flip-Flop 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 VI simulates the functionality of T-Type Flip Flop

 

Description

Flip-Flops and latches are used as data storage elements. A Flip-Flop stores a single bit of data;one of its two states represents a "1" and the other represents a "0". Such data storage can be used for storage of state. T-Type Flip-Flop is a type also known as “Toggle Flip-Flop”. We provide only one input to the Flip-Flop called Toggle input (T). Then the Flip-Flop acts as a Toggle switch. Toggling means changing the next state output to complement of the present state output.

If Toggle is high, the T Flip-Flop changes state (“toggles”) whenever the clock input is strobed. If the Toggle is low, the T Flip-Flop holds the previous state value.

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

  1. Run the VI
  2. Click Clock to go to the next state
  3. If Toggle is high, the next state changes. If Toggle is low, the state remains the same
  4. To stop the VI, click the Stop button

Additional Information or References

VI Block DiagramT-Type Flip-Flop LV2012 NI Verified BD.jpg 

 


T-Type Flip-Flop LV2012 NI Verified Truth Table.jpg

 

 

 

 

 

 

 

 

 

 

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

 

Rico P
Smiley Very Happy

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