Labview 3 test Flashcards
Name three simple design patterns
- Can perform calculations and make measurements
- Does not require a specific start or stop action
- Can convert simple VIs into subVIs
Name four types of simple design patterns
- Simple VI pattern
- General VI pattern
- State Machine
- Event-based state machine
Define the producer/consumer design pattern
It separates tasks that produce and consume data at different rates. Used to acquire multiple sets of data that must be processed in order
Define the functional global variable
A non-reentrant VI that uses uninitialized shift register to hold global data
Design Pattern order
- State machine
- Functional global variable
- Simple
- General
- Producer/ consumer
- State Machine and Consumer
General design pattern
Use: subroutine in other programming languages
Advantage: modular applications
Disadvantage: not suitable for user-interface design
Producer/ Consumer Data
Use: analyzes data in parallel with other analysis
Advantage: buffered communication between apps
Disadvantage: no loop synchronization
Producer/Consumer Events
Use: responds to user interface with intense-apps
Advantage: separated user interface from intensive code
Disadvantage: does not integrate non-user interface
Simple Error Handler VI (?!)
Displays a dialog box with error information
General Error Handler VI (?!+)
Same functionality as the Simple Error Handler VI, except it allows you to custom errors
State Machine Error Handler
Transitions the state machine to an error or shutdown state when an error occurs
Error Ring
idk lol
Define software control timing
Code that involves timing a real-world operation to perform within a set time period or controls the frequency at which a loop executes
List two reasons to use multiple loop patterns
- Execute multiple tasks concurrently
- Execute tasks at different rates
List two reasons to use multiple loop patterns
- Execute multiple tasks concurrently
- Execute tasks at different rates