Professional Documents
Culture Documents
LabVIEW
PEC Deemed University
DAY- 6 (4th DEC, 2006)
BY
RITA MAHAJAN
LECTURER, E&Ec,
PEC Deemed University
STATE MACHINE and STRING
HANDLING
Advantages
+ Handles
simultaneous
multiple
independent
processes
Disadvantages
Synchronization
Data exchange
Multiple Case Structures
Architecture
Advantages
+ Synchronization and
data exchange are
simplified
Disadvantages
Loop can get large and
difficult to view
Handling one event can
block other events
All events are handled
at the same rate
State Machine Architecture
States:
0: Startup
1: Idle
2: Event 1
3: Event 2
4: Shutdown
Advantages
+ Can go to any state from any other
+ Easier to modify and debug
Disadvantages
Can lose events if two occur at same time
The State Machine
State Machine architecture can be used to implement
complex decision-making algorithms.
The State Machine is one of the fundamental
architectures LabVIEW developers frequently use to
build applications quickly.
State Machines are used in applications where
distinguishable states exist.
Each state can lead to one or multiple states, and can
also end the process flow.
A State Machine relies on user input or in-state
calculation to determine which state to go to next.
The State Machine contd
String Length
String
Length = 20
Concatenate Strings
spaces here
Strings
The quick brown fox jumped over the lazy dog.
Concatenated String
String Functions
String Functions
Converting numbers to strings