background image

CLAD Homework 5 Questions 

 
1.  You develop a SubVI that only outputs a value and need to use this SubVI in a 

(calling) VI. Which of the following is the best way to enforce dataflow to control the 
execution of the SubVI? 

 
a.  Use the SubVI in a Sequence structure 
b.  Modify the SubVI to have dummy inputs that can be used from the calling VI  
c.  Modify the SubVI to have Error clusters that can be used from the calling VI  
d.  Modify the SubVI to have a global variable and use it from the calling VI 

 
 

2.  A VI has Automatic Error Handling enabled. It calls a SubVI that has Automatic Error 

Handling disabled. The Error Out terminal of the SubVI is unwired in the calling VI. 
The SubVI returns an error to the calling VI. Will an error dialog be posted because 
of Automatic Error Handling? 
 

a.  No, since the SubVI has Automatic Error Handling disabled 
b.  Yes, since he SubVI has Automatic Error Handling disabled 
c.  No, since the Error Out terminal from the subVI is not wired in the calling VI. 
d.  Yes, since the Error Out terminal from the subVI is not wired in the calling VI. 

 

3.  Which of the following statements is FALSE? 

 

a.  A SubVI connector pane defines where to wire inputs and outputs 
b.  The color of a SubVI connector pane terminal matches the data type it is 

connected to 

c.  You must have an icon/connector pane to use a SubVI 
d.  A SubVI icon can be edited from the functions palette 

 

4.  How do you document a VI so that the description appears in the Show Context 

Help popup window? 
 

a.  Use the VI Properties Documentation window 
b.  Type in the Show Context Help window 
c.  Create a free label on the front panel 
d.  Edit the LabVIEW help files 

 
 
 
 
 
 
 
 

 

background image

5.  How many bytes does LabVIEW write to the file when the code executes? 

 

 

a.  9 Bytes 
b.  11 Bytes 
c.  13 Bytes 
d.  17 Bytes 

 

6.  If an input name on the Show Context Help window is in bold for a SubVI, which of 

the following conditions are true? (Multiple answers may apply) 
 

a.  Input values must be scalar. 
b.  An input is recommended, but not required. 
c.  An input is required. 
d.  A broken run arrow will result unless the input is wired. 

 
7.  For the VI shown in the following block diagram, automatic error handling is enabled. 

If the file C:\data.txt does not exist, will an error dialog box pop up? 
 

 

 

a.  Yes, each time the error from the Open/Create/Replace File function is 

returned 

b.  Yes, each time a loop iteration completes 
c.  Yes, but only once, not on each iteration of the loop 
d.  No 

 

 

background image

8.  Which code snippet writes the smallest amount of data to disk? 

 

a. 

 

b. 

 

c. 

 

background image

d. 

 
 

9.  You must store data that other engineers must analyze with Microsoft Excel. Which 

file storage format should you use? 
 

a.  Tab-delimited ASCII 
b.  Custom binary format 
c.  TDM 
d.  Datalog  

 

10. How do you create a Polymorphic VI? 

 

a. 

Open a VI’s Properties (File >> VI Properties), and select ‘This is a 
polymorphic VI.’ in the Execution category. In the tab that appears, select 
which VIs you would like to include. 

b.  Create two or more VIs with the same connector pattern, select File >> New 

>> polymorphic VI, select one or more of the VIs you created to include as an 
instance in the polymorphic VI 

c.  Drop a Polymorphic VI function from the Function Palette >> Application 

Control, right-

click it and choose ‘Configure’, and select the VIs that you 

would like to include. 

d.  Highlight two SubVIs on a block diagram, in the toolbar select Edit >> Create 

Polymorphic VI.