Example Code

Simple State Machine - Temperature Control 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

Download All

Overview

This example shows how to create a simple state machine architecture which shows a simple control of a slider representing temperature of water

 

Description

This program shows a simple state machine architecture and it's fundamental components; a TypeDef Enum, a loop, and case structure

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the .zip folder
  2. Open the project
  3. Open main.vi
  4. Run the VI
  5. Move slider and observe program response to the stimulus

 Additional Information or References

VI Block Diagram

StateMachine.PNG

 

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

 

Daniel G.
Semiconductor & Wireless
National Instruments

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

Comments
Enrique.Noe
Member Member
Member
on

utilizas variables locales cuando se puede evitar.

Se usa property node con propiedad "value", esto se evita si manejas un cluster con un shift register para enviar todos los datos de un estado a otro.

Saludos!!