•
Initialize
—Initializes the
error in
cluster. You can add more code to initialize the
NI ELVIS III, variables, and user interface elements, such as controls and indicators,
depending on your application needs.
•
Acquire and process data
— Acquires the boolean value from the button on the
NI ELVIS III and displays the value by using the Button indicator. The Main Loop
repeats code until you click
Stop
or an error occurs.
•
Close
— Resets the FPGA target and all the I/O channels on the NI ELVIS III before
the application exits. You can also use this frame to close user interface elements
and variables.
Tip
Go to
next.
Error Checking
Error checking identifies why and where errors occur in your VI.
The current Main VI checks errors in the Button Express VI. If the Button Express VI
returns an error, the Main VI stops.
The yellow wire that comes into and out of the Button Express VI is the error wire.
The error wire passes the error cluster value, which contains three elements: status,
code, and source.
■
status is TRUE if an error occurred.
■
code is the error or warning code.
© National Instruments
35
NI ELVIS III Getting Started