Front Panel
Open a new VI and build the following front panel using the following tipsa. Create a numeric control and change the Label to Square Root Input. Create a numeric indicator for Square Root.
b. Place Error In 3D.ctl from Controls»All Controls»Arrays & Clusters.
c. Place Error Out 3D.ctl from Controls» All Controls»Arrays & Clusters.
Block Diagram
2. Build the following block diagram.
a. Place a Case Structure from Functions»Execution Control palette.
b. Place a Greater or Equal to 0? from the Functions»Arithmetic and Comparison»Comparison palette and wire it to the condition terminal of the case structure.
In the True Case:
c. Place the Square Root function from Functions»Arithmetic and Comparison»Numeric palette.
In the False Case:
a. Create a numeric constant from Functions»Arithmetic and Comparison»Numeric palette and type -9999.90.
b. Place the Bundle By Name from Functions»All Functions»Arrays & Clusters palette. Wire from Error in to the center terminal of Bundle by Name to make status show up. Create constants. Wire from the Error Out indicator to the output of Bundle By name.
3. Save the VI as Square Root.vi.
4. Display the front panel and run the VI.
5. Save and close the VI.
End of Exercise
No comments:
Post a Comment