NI does not actively maintain this document.
This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.
With an existing statechart-based application, this section illustrates how you can use statecharts. The application is a ceiling fan that has variable speeds and a light that can be toggled on/off. Additionally, this application makes use of a synchronous statechart architecture. Synchronous architectures periodically read inputs and write to outputs and are not dependent on an external trigger to cause the statechart to evaluate conditions. Synchronous applications are best suited for real-time, field-programmable gate array (FPGA), and embedded applications.
This section covers developing a statechart and integrating it into your application, which simulates the heating and cooling of a water tank. It consists of a tank being heated to a user-defined temperature, after which the tank is cooled to another user-defined temperature. The system has an emergency switch that stops the process at any point.First you need to create your project.
During this phase, create the input cluster to your statechart.
Now that you have completed the inputs to your system, you can create the output of your statechart.
Now that the input and outputs are complete, you can create the diagram that represents your statechart.
With your diagram complete, you now can implement your LabVIEW code into the statechart.
You have completed your statechart. Next, call and execute your statechart from your LabVIEW application.
These are a few bundled examples of applications built with the LabVIEW Statechart Module:
For more shipping examples, in LabVIEW, go to the menu option Help>>Find Examples… to open the Example Finder.Browse under Toolkits and Modules >> Statechart to find additional statechart examples.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.