Lab View Student Workbook
Lab View Student Workbook
Lab View Student Workbook
Copyright 2009 National Instruments Corporation. All rights reserved. Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, or recording without prior written consent of National Instruments Corporation. Trademarks National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section on ni.com/legal for more information about National Instruments trademarks.
Table of Contents
Problem Solving ........................................................................................... 3- 16 Navigating LabVIEW................................................................................... 17- 40 Troubleshooting and Debugging VIs ............................................................ 41- 63 Implementing a VI ...................................................................................... 64- 87 Relating Data ........................................................................................... 88- 107 Storing Measurement Data .................................................................... 108- 128 Developing Modular Applications ........................................................... 129- 146 Acquiring Data ........................................................................................ 147- 168 Instrument Control ................................................................................ 169- 190 Common Design techniques and Patterns ............................................... 191- 223 Communicating Among Multiple Loops .................................................. 224- 247 Event Programming ............................................................................... 248- 264 Improving an Existing VI ......................................................................... 265- 283 Controlling the User Interface ................................................................ 284- 302 Advanced File I/O Techniques ................................................................ 303- 326 Creating and Distributing Applications ................................................... 327- 343
Page 2
Problem Solving
Page 3
Problem Solving
Make sure to _________ your implementation with data that is both logical and illogical for the solution you created.
Page 4
Problem Solving
Page 5
Problem Solving
b.
c.
d.
Page 6
Problem Solving
Page 7
Problem Solving
Page 8
Problem Solving
A karaoke interface is developed that lets a user add their name and the song they want to sing to a queue. The interface displays the singer and song that is next in line. Identify the inputs. Identify the outputs.
Page 9
Problem Solving
The Design step is an important part of the Software Development Method. Fill in the blanks in the following paragraph. The __________ indicate the raw data that you want to process during the problem solving process. The __________ represent the result of the calculation, processing or other condition that the problem solving process implements.
Page 10
Problem Solving
In the _______________ stage, you create code for your algorithm. Displaying an algorithm as a ______________ is a good way of translating an algorithm into code.
Page 11
Problem Solving
The implementation of a state transition diagram requires which of the following? Choose all that apply. a. b. c. d. Converting states and transitions to code Breaking down each state into its elements A full test and verify scheme An output from each state
Page 12
Problem Solving
An alarm system measures wind speed and direction every 30 seconds and gives a signal indicating when the wind speed from the north is above 30 miles an hour. a. What are the inputs to this alarm system? b. What are the outputs to this system? c. What is the relationship between the inputs and outputs of this system?
Page 13
Problem Solving
From the given scenario, choose the option which identifies only the elements of the problem. Assume you must cure a material at a certain temperature for a set amount of time in a furnace. The exact temperature will be recorded along with the exact amount of time the metal remains in the furnace. a. You must recognize the cure time, cure temperature as well as some other variables such as time of day. b. You must remember that along with the cure time and temperature, the data is also being recorded. c. The entire scenario is the problem. d. The elements of the problem are only the cure time and cure temperature.
Page 14
Problem Solving
Page 15
Problem Solving
1. 2. 3. 4.
Defining the problem Designing the algorithm Implementing the design Testing and verifying the implementation 5. Maintaining and updating the implementation
a. is an ongoing process of resolving errors and adding changes to the original solution. b. sets the inputs, outputs, and additional requirements for the problem so a solution can be developed. c. allows you to remove extraneous factors and focus on the core problem. d. allows you to see if your algorithm gives the expected results for valid and invalid data. e. is where you create and build the code for your algorithm or flowchart.
Page 16
Navigating LabVIEW
Page 17
Navigating LabVIEW
Page 18
Navigating LabVIEW
Page 19
Navigating LabVIEW
Page 20
Navigating LabVIEW
What are the main differences between Modern controls & indicators, Classic controls & indicators, and System controls & indicators on a front panel?
Page 21
Navigating LabVIEW
Page 22
Navigating LabVIEW
Page 23
Navigating LabVIEW
True or False: Boolean controls and indicators represent only a True or False status.
Page 24
Navigating LabVIEW
True or False: All LabVIEW VIs must be created within a LabVIEW project or it will be impossible to edit them after the first save.
Page 25
Navigating LabVIEW
Which of the following can be associated with the block diagram? Choose all that apply. a. b. c. d. e. Run button Stop button While loop Numeric control Highlight execution
Page 26
Navigating LabVIEW
Without the use of property nodes, how can the Front Panel Toolbar be made invisible for a particular VI while it is running?
Page 27
Navigating LabVIEW
Which of the following can be associated with the front panel? Choose all that apply. a. b. c. d. e. Run button Stop button While loop Numeric control Highlight execution
Page 28
Navigating LabVIEW
True or False: Under the Files page in your Project Explorer window, project operations reflect and update the files on the local machines disk.
Page 29
Navigating LabVIEW
True or False: You have to add dependencies and build specification items to your project in order to see them as family options in the Project Explorer window.
Page 30
Navigating LabVIEW
Which of the following does NOT appear on the front panel of a LabVIEW VI? Choose all that apply. a. b. c. d. e. f. g. subVI Waveform chart File path control Text ring Numeric indicator Label Gauge
Page 31
Navigating LabVIEW
Page 32
Navigating LabVIEW
You can add items (i.e. files and folders) to a project through what methods? Choose the best answer. a. b. c. d. e. Right-click on My Computer and select Add>>File. Right-click the target and select New>>VI. Drag and drop the VI icon in the upper right corner of a front panel or block diagram. Drag and drop a folder or file from the file system of the machine onto the projects target. All of the above.
Page 33
Navigating LabVIEW
Decide if each of the VIs listed below are used for acquiring data or analyzing data. 1. Acquire Data 2. Analyze Data
a. b. c. d. e. f. g. h. i.
DAQ Assistant Instrument I/O Assistant Simulate Signal Amplitude and Level Measurements Statistics Spectral Measurements Read From Measurement File Tone Measurements Filter
Page 34
Navigating LabVIEW
Page 35
Navigating LabVIEW
Complete the following sentences. The above icons are examples of _______________ controls and indicators. The ________________ and _______________ are controls and the _____________ is an indicator. This data type has _____________ parts.
Page 36
Navigating LabVIEW
A user is trying to select a control in the block diagram to move it around; however the cursor is stuck as a spool. How can the user fix this?
Page 37
Navigating LabVIEW
Most LabVIEW VIs have three main tasks. Match each number with the phrase that should appear in each numbers respective box. 1. 2. 3. a. Analyzing the acquired data b. Presenting the result c. Acquiring some sort of data
Page 38
Navigating LabVIEW
On the line below each picture, label if the picture is a front panel or block diagram.
Page 39
Navigating LabVIEW
The code appears to be working fine; however, it runs slowly. Determine what is happening and how it can be fixed.
Page 40
What kind of problems can highlight execution cause when debugging data acquisition or time dependent applications?
Page 41
What does the acronym NaN mean? What is significant about this value in a VI?
Page 42
Page 43
____________ allows you to watch the data move through the block diagram.
Page 44
Complete the following sentences with the appropriate troubleshooting tool. Use a ________________ to check intermediate values on a wire as a VI runs. Place ________________ on the block diagram to pause execution at that location.
Page 45
Page 46
Page 47
Page 48
Where can LabVIEW users commonly and easily find free, fully functional programs that can be used or modified to suit particular needs? Choose all that apply. a. b. c. d. e. Example Finder Developers Zone LabVIEW help LabVIEW forums www.ni.com/support
Page 49
There are several resources included in LabVIEW that provide assistance for programming effectively. List two of these resources and briefly explain the functionality of each resource.
Page 50
Page 51
Control + Shift + ? Help Menu >> Search the LabVIEW Help Right-click a VI in the block diagram >> select Help Navigate to Programs > National Instruments >> LabVIEW x.x> >LabVIEW Help
Page 52
The context help box contains which of the following when the mouse is hovering over a subVI? a. b. c. d. e. f. Inputs and outputs for the subVI Name of subVI Full description of subVIs function Link to LabVIEW help a, b and d All of the above
Page 53
What does a broken arrow on the run button mean? Choose all that apply. a. b. c. d. The error cluster wire must be wired Front panel elements are missing There are errors in the block diagram The VI cannot run as is
Page 54
Page 55
List at least three of the many utilities provided with LabVIEW that help users debug issues with their code.
Page 56
a.
b.
c.
Page 57
How many times will this loop execute? Explain your reasoning.
Page 58
a. b. c. d. e.
Step Over Step Into Step Out Highlight Execution On/Off Show/Hide Context Help
Page 59
When using context help to learn more about a VI, some inputs are bold while others are not. Why are these inputs bold?
Page 60
The above VI no longer works, and has a broken run arrow. It worked at one time, but would take close to 100% of the computers resources when running. A general approach to debugging and fixing this VI would be to first ___________ , followed by clicking the _________. With that knowledge it should be possible to make changes and run the VI. Finally, in order to reduce the use of computer resources it would be beneficial to add a ______ function inside the while loop. It would also be good programming practice to replace the Boolean constant with a ______.
Page 61
If you created this block diagram, what would be the two indications that there is a problem? Based on this block diagram, identify the problem.
Page 62
The following code multiplies two numbers together and displays the answer in the result indicator:
When this code is run, the VI seems to pause. How can this be fixed?
Page 63
Implementing a VI
Page 64
Implementing a VI
True or False: During the first iteration of a while loop, the iteration terminal will return 0.
Page 65
Implementing a VI
True or False: LabVIEW has built-in functions that can auto-align, auto-distribute, and auto-resize front panel and block diagram objects.
Page 66
Implementing a VI
What is the difference between the I16 and U16 data types? Additionally, what is the range of data for each of them?
Page 67
Implementing a VI
Page 68
Implementing a VI
1. Real & imaginary values in 32-bit IEEE format 2. Real & imaginary values in 64-bit IEEE format 3. Real & imaginary values vary based on platform
Page 69
Implementing a VI
Which of the following are valid Loop Structures within the LabVIEW environment? Choose all that apply. a. b. c. d. e. f. Conditional For Timed Case Sequence While
Page 70
Implementing a VI
True or False: The Wait Until Next ms Multiple function waits until the millisecond counter counts to an amount equal to the input you specify.
Page 71
Implementing a VI
From the following, select some good design techniques for LabVIEW programming. Choose all that apply. a. b. c. d. e. f. g. h. i. Labels and Captions Use flamboyant colors Spacing and alignment Text and fonts System controls Nested loops and structures Menus Decorations Automatic resizing of objects
Page 72
Implementing a VI
Page 73
Implementing a VI
a. 1 b. 0 c. Infinite
Page 74
Implementing a VI
Page 75
Implementing a VI
When LabVIEW coerces data, LabVIEW places what kind of indication to shown that conversion has taken place? a. b. c. d. A red wire going into the terminal where conversion is occurring. A red dot on the terminal where conversion is occurring. LabVIEW produces an error saying that it cannot coerce data. LabVIEW does not indicate coercion but simply performs it.
Page 76
Implementing a VI
a. Save the VI once the value has been changed. b. Right-clicking on the control in the block diagram and then selecting Data Operations>>Make Current Value Default. c. Right-clicking on the control and changing it to a constant d. None of the above.
Page 77
Implementing a VI
Page 78
Implementing a VI
Page 79
Implementing a VI
X is an integer with representation I32. Y is an integer with representation I64. What will be the representation of x+y?
Page 80
Implementing a VI
Single Precision Floating Point Double Precision Floating Point Byte Integer Word Integer Long Integer
Page 81
Implementing a VI
What is the purpose of the wait function in the VI below? Hint: Think in terms of performance.
Page 82
Implementing a VI
_____ The state is changed when the button is pressed. It remains pressed until button is pressed again. _____ The state is changed when the button is released. Change back when value is read. _____ The state is changed when the button is pressed. Continue to read until button is released. _____ The state is changed when the button is released. Do not read until mouse releases. Continue to read until button is pressed again. _____ The state is changed when the button is released. Continue to read until button is released. _____ The state is changed when the button is released. Continue to read until button is released. Always reads a value.
Page 83
Implementing a VI
a. b. c. d.
1 2 49 50
Page 84
Implementing a VI
After the program completes, what will be displayed in Iterations and Numeric Indicators? (Iterations, Numeric)
a. b. c. d.
Page 85
Relating Data
Describe below how a While Loop can be used for handling errors by indicating where the error cluster should be wired as well as the effect of utilizing a While Loop in this way.
Page 86
Relating Data
From the above figure, identify the type of loop as well as label the terminals indicated by numbers 1 and 2. Describe the function of both 1 and 2 and indicate at what value each terminal begins counting.
Page 87
Relating Data
Match the name of the update mode to each of the following screenshots. The thumbnail image below each is the LabVIEW right-click menu representation of each. (Scope, Sweep, Strip) a.________________________ b. ________________________ c. ________________________
Page 88
Relating Data
Page 89
Relating Data
Page 90
Relating Data
Page 91
Relating Data
Page 92
Relating Data
A LabVIEW Error Cluster contains which of the following elements? Explain the function of each included element. a. b. c. d. e. f. Timestamp Status Code Index Description Source
Page 93
Relating Data
Page 94
Relating Data
A cluster already contains a string control. Which of the following choices cannot be added to this existing cluster? Choose all that apply. a. b. c. d. e. An additional string control A string indicator A numeric control A time stamp control A time stamp indicator
Page 95
Relating Data
Page 96
Relating Data
Right-click on the front panel control or indicator and select Advanced>>Customize. Right-click on a block diagram control or indicator and select Advanced>>Customize. Select a front panel control or indicator and select Edit>>Customize Control from the menu bar. Use the New>>Control from the project explorer. Right-click anywhere on the front panel and select Advanced>>Customize. Double-click on a control or indicator to open its properties box.
Page 97
Relating Data
If you enable auto-indexing for more than one tunnel or if you wire the count terminal, the actual number of iterations becomes the ______________ of the choices. a. Greater b. Smaller c. You cannot do this in LabVIEW. d. LabVIEW will not display any error, but this function has an indeterminate output.
Page 98
Relating Data
a. If you change an instance of a type defined custom control in one VI, you will need to change all others to match it. b. If you change the data type of the .ctl file of the control/indicator then all instances will be changed that are still linked to that .ctl control/indicator. c. If you change the default value of a type defined custom control, it will change the default value for all instances of that control. d. If you change the data range of a type defined custom control, it will change the data range for all instances of that control.
Page 99
Relating Data
Select appropriate answer(s): You cannot create an array of arrays. However, to accomplish a similar end result, you can a. Use a multidimensional array. b. Use a Flat Sequence Structure with a 1-D array in each of the sequence panels. c. Create a nested, auto-indexing For Loop with a String to Byte Array VI within it. d. Create an array of clusters where each cluster contains one or more arrays.
Page 100
Relating Data
Page 101
Relating Data
You are planning on creating a new VI with a team. You are in charge of the initial planning, such as defining the inputs and outputs. Your VI will use many similar inputs but may undergo many revisions from your teammates. These revisions would most likely include a change of data representation for different inputs. What control type should be used for these inputs? a. b. c. d. Control Type Definition Strict Type Definition All are suitable
Page 102
Relating Data
You have an array that contains values and you need to find the max/min and their associated indexes, which of the following is the best block to use?
a. b. c. d.
Page 103
Relating Data
a.
b.
c.
d.
e.
f.
g.
h.
1. 2. 3. 4. 5. 6. 7. 8.
Type Definition Status Edit Mode Reorder Objects Align Objects Customize Mode Distribute Objects Text Resize Objects
Page 104
Relating Data
The above block diagram produces a ______ dimensional array with the dimensions _______. There are _____ columns in this array.
Page 105
Relating Data
What is significant about the tunnel seen in the figure above? What does this tunnel state mean in terms of how the loop iterates in regard to the array?
Page 106
Relating Data
What is the dimension of the outputted array? How many rows and how many columns will appear in the array?
Page 107
Why do high-level file I/O VIs cause a LabVIEW program to run slower if placed in a loop?
Page 108
True or False: A high-level VI performs open and close operations best when placed in a loop.
Page 109
When using a Read from Spreadsheet File VI to read an ASCII file with columns of data, it must be _____ delimited in order to be read properly.
Page 110
In what situations should you use low-level VIs and high-level VIs when writing to a file?
Page 111
Open File, Read File, Close File, Open File, Write File, Close File, Check for Errors
Page 112
You are developing an application that logs temperature data from 3 different sensors. Each sensor acquires 100 samples one after the other and records the sample to a file immediately after acquiring it. What level of File I/O VIs should be used? a. Low Level File I/O b. Medium Level File I/O c. High Level File I/O
Page 113
Refnums are required for operations involving which of the following? Choose all that apply. a. b. c. d. Outputting data to a waveform graph Opening a file Starting a network connection Accessing a device
Page 114
Page 115
True or False: Disk streaming uses less system resources when performing File I/O functions due to fewer interactions with the operating system.
Page 116
Choose the three main considerations when deciding to access text files from another application.
a. b. c. d. e.
If you need to perform random access read or writes If disk space and file I/O speed are not crucial If you do not need to perform random access read or writes If numeric precision is not important If numeric precision is important
Page 117
Low-level file I/O VIs and functions each perform how many pieces of the file I/O process? a. b. c. d. 2 pieces-They perform open and close 2 pieces-They perform read and write 1 piece They each perform only one piece They perform all of the pieces
Page 118
a. An Express VI that reads data from a text-based measurement file (.lvm) or a binary measurement file (.tdms) b. Reads a specified number of lines or rows from a numeric text file beginning at a specified character offset and converts the data to a 2D single-precision array of numbers. c. Converts a 2D or 1D array of single-precision numbers to a text string and writes the string to a new ASCII file or appends the string to an existing file. d. An Express VI that writes data to a text-based measurement file (.lvm) or a binary measurement file (.tdms) format.
Page 119
Called a text file and is the standard for most programs Underlying format of all other file formats Includes additional information for data such as a time stamp Consists of a properties file and an index file
Page 120
LabVIEW Academy Student Edition Describe what a refnum is and how it is used within LabVIEW.
Page 121
Page 122
A unique identifier for an object (file, device, network connection) A temporary pointer to an open object A number that identifies the location of an element within an array The number that is unique to your LabVIEW license
Page 123
You need to write a 2D array to a semicolon delimited spreadsheet file with 6 digits of precision after the decimal point. Which of the following configuration would be the best to use?
a.
b.
c.
d.
Page 124
Which picture below (A or B) implements disk streaming? Briefly, what is the benefit of disk streaming?
Page 125
You have multiple ASCII, tab delimited files that you need to read data from for analysis. Luckily, the files are in the same directory and are sequentially labeled (1.dat, 2.dat, 3.dat, etc). Which of the following choices is a method to open each file sequentially? Note: Each choice is using a while loop.
a.
b.
Page 126
c.
d.
Page 127
Page 128
Page 129
True or False: You must customize the VI icon in order to maintain functionality of that VI when it is used as a subVI.
Page 130
Page 131
True or False: Creating a subVI can be done by using the Positioning tool and selecting a section of code within your VI and going to Tools>>Create SubVI.
Page 132
If your front panel contains more than 28 controls and indicators that you want to use programmatically, what should you do?
Page 133
True or False: The connector pane can be accessed by right-clicking the VI icon in the top right-hand corner of the block diagram window.
Page 134
a. Infinite-the connector pane automatically adjusts to the number of controls/indicators on the front panel b. 36 c. Twice the number of controls-for every input, there is an output d. 28
Page 135
Which choice below is an efficient option when performing a task frequently? a. b. c. d. Run the VI every time that an operation needs to be performed Copy and paste the operation to every location it needs to be used It is bad programming practice to have an operation occur more than once Use subVIs or loops to perform an operation repetitively
Page 136
Page 137
Please select all of the suggested practices when using the connector pane. a. b. c. d. Use as many terminals as possible Connect controls (inputs) on the left terminals and indicators (outputs) on the right terminals Label controls and indicators according to their purposes Delete all unnecessary terminals
Page 138
Page 139
Go to View >> Select subVI >> See Front Panel Double-click the subVI Select the subVI and then go to Window >> Show Front Panel Right-click the subVI and select Open Front Panel
Page 140
Page 141
True or False: The icon in the upper right hand corner of a VI can only be changed to a pre-existing photo on the machine that the VI was originally developed.
Page 142
1. No errors are thrown but may not execute correctly when not wired 2. The VI can execute properly when not wired 3. When not wired, the run arrow is broken.
Page 143
The following Calling Program Code and Function Code are shown below: Function Code function triangle_area(in1, in2, out) { out = 0.5 * in1 * in2; } Calling Program Code main { triangle_area(base, height, area) }
What is the correct implementation of the SubVI? SubVI Block Diagram a. Calling VI Block Diagram
b.
c.
d.
Page 144
Which of the following is the best connector pane layout for this subVI?
a. b. c. d.
Page 145
a.
b.
c.
d.
Page 146
Acquiring Data
Page 147
Acquiring Data
You want to have a warning light on when a particular sequence happens in your system. You should use Generate ____________ task timing. a. b. c. 1 Sample n Samples Continuously
Page 148
Acquiring Data
You are developing a VI that tests an oscilloscope. You need to send a 1 kHz AC signal when the user presses an external button. Should you use analog input measurement or analog output generation? Should you acquire/generate 1 sample, n samples, or acquire/generate continuously? If you are acquiring/generating n or more samples, what other parameters do you need to specify? Is a task trigger required?
Page 149
Acquiring Data
Page 150
Acquiring Data
Page 151
Acquiring Data
Page 152
Acquiring Data
What is the highest value a 24-bit counter can count to? (Show the formula you use clearly) a. b. c. d. 16777215 16777216 8388608 24
Page 153
Acquiring Data
Page 154
Acquiring Data
Page 155
Acquiring Data
Page 156
Acquiring Data
You have a 5V peak-to-peak square wave you are trying to view on a test panel in MAX but all that is appearing is a flat line at 0V. Which of the following could be possible problems? a. b. c. d. e. LabVIEW is currently open, but not running a VI. You are sampling the square wave too quickly. The square wave source is not connected to the data acquisition device. Wire is connected to different channel than the one you are viewing. You have an incompatible version of DAQmx installed.
Page 157
Acquiring Data
List the three parts to every DAQ system. Also explain how data flows throughout the system.
Page 158
Acquiring Data
Page 159
Acquiring Data
Why should you use Measurement & Automation Explorer (MAX) when installing a DAQ device? a. b. c. d. It cleans up the DAQ device installation files It rewrites the registry files to be more efficient It allows 3rd party software to interface with other NI programs It completes the device configuration and assigns a device number to the device.
Page 160
Acquiring Data
A data acquisition system uses a DAQ device to pass a _______ electrical signal to a computer for _______ analysis and data _________.
Page 161
Acquiring Data
An input signal that determines if an active edge on the source changes the count An input signal that can change the current count Stores the current count of the counter An output signal that produces pulses
Page 162
Acquiring Data
Page 163
Acquiring Data
_____
Analog Input Analog Output Digital Input Digital Output Counter Input Counter Output
Monitoring the states of 8 switches Taking temperature readings Signaling an LED when a certain limit is reached Determining the number of times a quadrature encoder is turned
_____
_____ _____
_____
Page 164
Acquiring Data
In Measurement and Automation Explorer you can simulate which of the following DAQ device(s)? a. b. c. d. SCXI devices GPIB Devices USB devices PXI Devices
Page 165
Acquiring Data
The ADC takes in a series of ones and zeroes and converts them into a voltage signal. A sample clock controls the rate at which the ADC takes snapshots of the input signal. A benefit of the ADC is that it can convert the input signal without loss of precision. The ADC samples the digital signal on each rising or falling edge and converts each sample to a series of ones and zeroes. e. A digital trigger controls the rate at which the ADC takes snapshots of the analog signal.
Page 166
Acquiring Data
You are acquiring some type of data. However, it seems like you are having some incorrect values from the thermocouples you are reading. You are using an unshielded terminal block with 50 terminals. The terminal block is connected to the DAQ card through an unshielded cable. Explain how you would try to get a better, clearer signal.
Page 167
Acquiring Data
Can Dev1/PFI9 be internally routed to Dev1/PFI6? Is Dev1/ai/Start Trigger directly or indirectly routed to Dev1/PFI0? If the mouse was hovering over the top right yellow block, which system is used to internally route Dev1/PFI9 to Dev1/RTSI0? Can this system be used in other applications when it is used to internally route lines?
Page 168
Instrument Control
Page 169
Instrument Control
What is the character transmission rate of a serial port if the baud rate is set at 9600 and the character length is 12?
Page 170
Instrument Control
In order to achieve the high data transfer rate that the GPIB was designed for, you should limit the number of _____ on the bus, as well as the ______ between devices. Finally, faster data rates can be achieved with the use of _____ devices and controllers.
Page 171
Instrument Control
You have a device that needs to communicate with your computer. The device and the computer are 40 ft. apart. The device has both GPIB and RS 232 Serial ports. The transfer rate of the device is relatively low at about 100 Kb/s. Which communication protocol should you use and why?
Page 172
Instrument Control
Different types of serial communication protocol can have a different number of devices send commands (driver) and receive commands (receiver). What are the maximum number of devices that can be a driver and receiver when using different types of serial communication protocol? Find values for RS232, RS422 and RS485. You may need to use other resources than your book.
Page 173
Instrument Control
True or False: There are buses made to communicate with instruments through Ethernet, USB, or IEEE 1394 (FireWire) ports using Serial or GPIB commands. When using these buses, you need to remember to program them differently than when using a standard serial or GPIB bus.
Page 174
Instrument Control
True or False: The instrument I/O Assistant is a good option when an instrument driver is not available.
Page 175
Instrument Control
Page 176
Instrument Control
Page 177
Instrument Control
True or False: Data Transfer Termination, or just Termination, is necessary to inform all listeners on the GPIB bus that all data has been transferred.
Page 178
Instrument Control
Page 179
Instrument Control
Page 180
Instrument Control
Instrument driver VIs can be broken down into six categories. Match these categories with their description. a. b. c. d. e. f. Initialize Configure Action/Status Data Utility Close
Terminates the software connection to the instrument Transfers data to or from the instrument Commands the instrument to perform an action or update its condition Establishes communication with the instrument Software routines that configure the instrument to perform specific operations
Page 181
Instrument Control
Under which folder should one copy an instrument driver library folder for them to appear in the function palette for LabVIEW on a Windows based system? a. C:\Program Files\National Instruments\LabVIEW 8.6\ b. C:\Program Files\National Instruments\LabVIEW 8.6\instr.lib c. C:\Program Files\National Instruments\LabVIEW 8.6\instrumentation d. C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib
Page 182
Instrument Control
Some devices bypass the serial port or the computers GPIB device but still communicate with instruments through serial and GPIB commands. What other communication busses can be used a. b. c. d. Ethernet USB DVI IEEE 1394
Page 183
Instrument Control
Identify the communication system that each of the following are associated with; choose either GPIB or Serial or both. a. b. c. d. e. ibwrt \r \n ibread *IDN? ______ ______ ______ ______ ______
Page 184
Instrument Control
You are communicating with a microcontroller via RS-232 and you are trying to receive the string Hello World on the serial port on your computer using LabVIEW. However, the string you are receiving is something similar to . Which of the following could be possible problems with your system? a. b. c. d. Bad connection between microcontroller and computer. The communication port is not open. Data communication rate is set incorrectly. The data rate is set correctly, but the read serial buffer loop is not correctly timed to pull data from the received serial buffer quickly enough.
Page 185
Instrument Control
Page 186
Instrument Control
Data Bits:
Parity Bit:
Stop Bits:
Page 187
Instrument Control
Match the characteristics in the right column to the type of instrument control bus in the left column. 1. GPIB 2. Serial a. 8-bit parallel communication interface b. Data transfer rate of 1Mbyte/s and higher c. Uses a transmitter to send data one bit at a time d. Data sent over a single communication line e. Use this method when data transfer rates are low f. Categorizes devices as controllers, talkers, or listeners g. Each device has a unique primary address between 0 and 30 h. Must specify baud rate, number of bits, parity bit, and number of stop bits
Page 188
Instrument Control
This tests basic knowledge of GPIB and Serial and tests knowledge of the difference between them Match the bits to their respective position on the character frame.
Page 189
Instrument Control
Page 190
In the _______ palette one can find VIs, and sometimes examples, for instrument drivers.
Page 191
True or False: A state machine performs an action for each state in a transition diagram?
Page 192
Describe the difference between a Moore machine and a Mealy machine. Which type does LabVIEW most commonly implement?
Page 193
Is it a good idea to utilize a State Machine structure in a VI instead of a simpler sequence structure even if that is all that is required for the task? If so, why?
Page 194
You have a program that utilizes state machine architecture. You made an enumerated type control with each of the states and copied it throughout your program. You later decided to add a case to your program. When you update the control all of the wires that are connected to the copies of the control break. Why does this happen and what would be a solution?
Page 195
True or False: An advantage of LabVIEWs dataflow programming is that the programmer does not have to be concerned with the proper order of execution of commands; it is handled automatically by the compiler.
Page 196
The best method for controlling the initialization and transition of state machines is the ____________ type ___________. These are widely used as _____________ selectors in state machines.
Page 197
What are the effects (both positive and negative) that result from using sequence structures? Choose all that apply. a. b. c. d. e. Take advantage of the inherent parallelism in LabVIEW Guarantee the order of execution Can stop execution part way through the sequence Prohibit parallel operations Cannot stop the execution part way through the sequence
Page 198
What are the reasons to avoid overusing sequence structures? Choose all that apply. a. Sequence structures prohibit parallel operations b. Sequence structures force the operation of block diagram objects c. You cannot stop a sequence structure partway through d. Sequence structures hide code
Page 199
Pick the methods used to transition among states. Choose all that apply. a. b. c. d. e. f. Sequence structure Creating a control Case structure Transition array Transition cluster State Diagram Toolkit
Page 200
Choose the answer choice which describes an attribute of State Programming. a. b. c. d. Nothing in the code can be changed Programming will not rely on conditions The program will run completely and cannot be stopped before the end of the sequence Some items in the sequence can be set to execute only when certain conditions are met
Page 201
What is the best method for controlling the initialization and transition of a state machine? a. b. c. d. e. Ring Enumerated Type Control Bracelet AI Control CTR Control
Page 202
True or False: Parallel tasks can run simultaneously even if they have data dependencies.
Page 203
Choose four components which are required for a state machine: a. b. c. d. e. f. g. Stop Button Case Structure Dialog Box Shift Register State Functionality Code Comparison Statement While Loop
Page 204
There are many methods to perform sequential tasks in LabVIEW. Which of the following are applicable methods? a. Placing each task in separate while loops from left to right in your main VI and wiring them in the order you want them executed. b. Use of a sequence structure will force the order of operations. c. Placing your tasks in order from top to bottom in your VI. d. The use of Error Clusters to control data flow.
Page 205
Which of the following is generally considered to be a more appropriate method to incorporate correct execution order of functions or sub-VIs that come without an error cluster on the connector pane? a. An Error Cluster into a Case Structure b. A Sequence Structure
Page 206
LabVIEWs state machine design pattern template implements an algorithm described by what type of state machine? a. b. c. d. Mealy machine Moore machine Both A and B None of the above
Page 207
Force the One Button Dialog VI to execute between the express VIs. Do this without the use of a sequence structure. Notice that the One Button Dialog VI doesnt use error clusters.
Page 208
A State Machine Infrastructure has five components which are each identified in the figure above. Label each component of the LabVIEW block diagram. The two empty boxes symbolize where the two types of state machine code should be placed. Give the names for both types of code. 1. 2. 3. 4. 5. ________________________ ________________________ ________________________ ________________________ ________________________
Page 209
A Timing / Wait mechanism is usually required within a loop to keep the code from using all of the processor time. True or False: A Wait (ms) VI wired with a constant of zero has the same effect as no wait VI at all.
Page 210
Determine whether a state machine or a simple VI architecture is appropriate in each case: For functional components within larger applications: _________________ For dividing a VI into several simpler tasks:_________________ For VIs that act as a user interface: _________________ For a single task: _________________
Page 211
You have a system that measures a voltage signal at 1000 KHz. For each point that is measured, you want to perform some complex software manipulation. The problem is that the software manipulation takes longer than the time between each sample. What type of loop architecture would best suit this problem? a. Master/Slave b. Producer/Consumer
Page 212
Page 213
Page 214
True or False: In a Master/Slave Loop Design, the slave loop must run at the same rate as the master.
Page 215
__________ are used for communication between producer and consumer loops
Page 216
A _________________ is a memory device that stores temporary data among two devices. ___________________ functions allow you to store a set of data that can be passed among multiple loops running ________________ or among Vis.
Page 217
Use the __________________ design pattern when you need a VI to respond to user interface controls while simultaneously collecting data. Use the _________________ design pattern when you must acquire multiple sets of data that must be processed in order.
Page 218
You have a program that you would like to have run at one hour intervals throughout the day. The program takes five minutes to complete. Your friend tells you that you can use the Wait (ms) function and use 3300000 (55 minutes) as the constant. What is a better way to establish a wait time?
Page 219
Two things happening side by side Two things happening at the same time on different computers Executing multiple tasks at the same time The front panel and block diagram running at the same time
Page 220
Choose the benefits of implementing a state machine design pattern from the list below. a. b. c. d. Make the blog diagram larger and easier to see Make the block diagram smaller Each case determines the next state Executes every frame in sequence
Page 221
A.
are memory devices that store temporary data among two devices. B. are functions that allow you to store a set of data that can be passed among multiple loops running simultaneously or among Vis.
Page 222
Below is a program that uses master/slave architecture. The run arrow is not broken; however, this program will not function correctly. What is wrong with it?
Page 223
True or False: It is necessary to create a Project File in order to create a Shared Variable.
Page 224
A structure that uses an uninitialized shift register and a _____ is called a functional _____ variable.
Page 225
What is another method of accomplishing the same task that a shift register performs in LabVIEW?
Page 226
Determine if the each of the following require a local or global variable: Sending a stop Boolean to two while loops running in parallel Sending a stop Boolean to two VIs running in parallel Storing data for access among several VIs Storing data in a front panel control or indicator Updating a numeric indicator if the value is out of range Accessing some acquired data with another VI __________ __________ __________ __________ __________ __________
Page 227
A Local Variable is accessible from multiple VIs. True or False? a. True b. False
Page 228
Please select all of the reasons why it is advantageous to use descriptive labels for controls and indicators. a. b. c. d. The code is more readable Simple identification mistakes can be avoided Creating a variable is more intuitive It serves as additional documentation
Page 229
Page 230
(1)_______ variables store data in front panels controls and indicators. (2) _______ variables and (3)__________ variables store data in special repositories that you can access from multiple VIs. (4)_____________ variables store data in While Loop shift registers Fill in the blanks with the appropriate selection: a) b) c) d) Global Local Functional global Single processed shared
Page 231
a. After it is executed once in the code, that sub-VI cannot be called again until LabVIEW is restarted. b. It can only be accessed by one process at a time. c. Calls to multiple instances of it can execute in parallel with distinct and separate data storage.
Page 232
In LabVIEW, what defines the execution order of block diagram elements? a. b. c. d. Sequential order of commands Command list Flow of data VI last selected in the block diagram
Page 233
With specific respect to Producer/Consumer Architecture, Queues can be used to pass data from one loop to another one running in parallel. What happens when the buffer is written to too quickly and overflows? How about when the buffer isnt written to quickly enough and it is empty? a. The program will crash if either event occurs. b. If consumption is slower than production, producer code will be forced to wait until the consumer has dequeued an element. If consumption is faster than production, the consumer code will be forced to wait until the producer has queued an element. c. If consumption is slower than production, a buffer overflow error will occur. If consumption is faster than production, the code will execute the consumer code on the last received data.
Page 234
A _________ provides the elegant implementation of the master/slave design pattern for data transfer because it sends a signal when the data is ready and removes any issues with race conditions.
Page 235
It is important to use variables correctly in your VI. To initialize a local or global variable properly, verify that it contains the expected data value before the VI runs. If you do not initialize the variable before the VI reads it for the first time, the variable will contain ____________________________________. Finish the sentence.
Page 236
Page 237
Name one way to protect the critical section of your code and give a brief description of this method.
Page 238
Which of the following statements about the use of variables in LabVIEW (and other dataflow languages) are true? a. Block diagrams can become more difficult to read. b. Variables make it easy to share data between multiple VIs running on the same computer. c. Variables make it easy to share data between multiple VIs running on different computers across a network. d. Variables can cause unexpected VI behavior. e. Variables can slow performance. f. There are some cases when a variable is the only way to accomplish a task.
Page 239
a. b. c. d.
Local Variable not associated with a control or indicator Local Variable that has had its control or indicator deleted Local Variable that was given a wrong data type Global Variable that lost its connection between VIs
Page 240
a. b. c. d.
The top variable is set to read and the bottom is set to write The top variable is set to write and the bottom variable is set to read The bottom variable is a cluster of Boolean values The bottom variable corresponds to an indicator and the top corresponds to a control
Page 241
True or False: A Local Variable can be written to or read from regardless of whether it is a control or indicator.
Page 242
Name one good programming technique that will help you avoid race conditions.
Page 243
When the user creates a global variable, LabVIEW automatically creates a special global VI which only has a ________. a. b. c. d. Block Diagram Front Panel File Path Label
Page 244
A) Share data among VIs on different computers B) Share data among multiple VIs on one computer C) Share data within a single VI
Page 245
The block diagram below displays a common mistake when using variables. The shared variable Stop synchronizes the stop conditions for two loops. Determine the behavior of this code and diagnose the problem and solution.
Page 246
a. b. c. d.
Page 247
Event Programming
Page 248
Event Programming
In an ______ program, events that occur during execution directly influence the execution flow. In a _____ program, all execution is predetermined and follows a sequential order.
Page 249
Event Programming
Should the event structure be located in the producer loop or the consumer loop, if you are using an event structure and the producer / consumer architecture to continuously and asynchronously monitor and update the front panel with user inputs?
Page 250
Event Programming
There are two types of user interface events-________________ and __________________. Match your answers from the above sentence to the definitions below. _______________ events are an indication that a user action has already occurred, such as when the user has changed the value of a control. _______________ events inform you that the user has performed an action before LabVIEW processes it, which allows you to customize how the program responds to interactions with the user interface.
Page 251
Event Programming
A developer is designing a program that uses event structures. The front panel of the program has ten buttons on it, and each button corresponds to an action that the program must execute. The event structure has an event set up to run for each of the buttons. Each of these events takes about one minute to complete. The user wants to be able to tell the program to complete three of these tasks in sequence; however, he or she must wait for each action to complete before he or she can select the next task from the front panel. What should the developer of the program do to fix this issue?
Page 252
Event Programming
True or False: You can turn off front panel locking for both notify and filter events. This dialog box is found in the edit events dialog box
Page 253
Event Programming
True or False: You want to make the close button on the front panel of a VI not work and display a message when clicked. You would want to use a filter event.
Page 254
Event Programming
Dynamic event registration avoids the limitations of static registration by integrating event registration with ______________, which allows you to use Application, VI, and control references to specify at run time the objects for which you want to generate events. a. The VI Server b. MAX c. A cluster of global variables
Page 255
Event Programming
True or False: If you wire a value to the timeout terminal in an event structure, you MUST have a timeout event.
Page 256
Event Programming
A hardware timing signal that determines when data acquisition is complete A mouse click that starts data acquisition A property node that signals a change in a variables value An external trigger that signals when an error occurs A key press that exits the VI
Page 257
Event Programming
Page 258
Event Programming
Page 259
Event Programming
Page 260
Event Programming
The Event Structure works like a ____________ ______________ with a built-in ____________ on ________________ function.
Page 261
Event Programming
D C
Page 262
Event Programming
The following code appears to be unresponsive when a user clicks the cancel button:
Page 263
Event Programming
True or False: In the edit events dialog box, the red arrow represent filter events and the green arrow represent notify events.
Page 264
Improving an Existing VI
True or False: Refactored code performs the same function as the inherited code.
Page 265
Improving an Existing VI
Creating well-designed software facilitates rapid ________ and decreases possible _____ .
Page 266
Improving an Existing VI
If the block diagram is not readable, but the VI works, should the VI be rewritten? Why or why not?
Page 267
Improving an Existing VI
The key combination _______ can be used to help align and reorder nodes on a block diagram.
Page 268
Improving an Existing VI
True or False: When refactoring VIs, it is better to make small, incremental changes and test the VI after each change.
Page 269
Improving an Existing VI
Briefly describe the tradeoff between Refactoring a piece of code as opposed to Optimizing its Performance.
Page 270
Improving an Existing VI
Match the following terms to the most appropriate option: Refactoring, Performance Optimization ____________________ - makes the VI easier for a computer to process. ____________________ - makes the VI easier for a human to understand.
Page 271
Improving an Existing VI
Page 272
Improving an Existing VI
Page 273
Improving an Existing VI
Page 274
Improving an Existing VI
Which of the following are attributes of good programming practice using LabVIEW? a. b. c. d. e. f. Using descriptive labels for controls and indicators Creating custom icons for subVIs Saving subVIs with descriptive names Keeping the block diagram to scrolling only one direction Using subVIs Placing all controls together and all indicators together on the block diagram
Page 275
Improving an Existing VI
Page 276
Improving an Existing VI
Determine a meaningful name for each of the following controls or VIs. Why would creating meaningful names be important to a VI? a. A Boolean control that signals when the application has finished acquiring temperature values for 5 minutes b. A SubVI that takes a username and password and outputs a true if the password is correct for the username c. A VI that takes an array and determines the mean, median, mode and standard deviation of the array values d. A graph indicator that displays voltages acquired over 200 samples from a thermocouple
Page 277
Improving an Existing VI
You have inherited a functional VI from a co-worker. You are required to add functionality to this VI, but it is very difficult to understand the code. Please order the following actions in the sequence you would use them to implement your additional functionality and for use in the future. All actions may not be required. a. b. c. d. e. f. g. h. Analyze the code to understand its purpose Remove unnecessary logic Program the additional functionality Shrink the block diagram as much as possible Relabel controls and indicators with meaningful names Replace repetitive code with subVIs Simplify algorithms Replace sequence structures and local variables with data flow wires
1. 2. 3. 4. 5. 6. 7. 8.
Page 278
Improving an Existing VI
Briefly describe one situation where creating a subVI would improve code design.
Page 279
Improving an Existing VI
You want to increment X when True, do nothing when False, and show the result in the Result indicator. What is wrong with the following VI (True and False cases shown)? How should it be fixed?
Page 280
Improving an Existing VI
Page 281
Improving an Existing VI
Given the following code, which of the following would be a good way to remove the unnecessary indexing logic yet still accomplish the task of indicating that the current indexed element is greater than one?
a.
b.
c.
d.
Page 282
Improving an Existing VI
Page 283
True or False: Each front panel object is allowed to have one property node associated to it. True or False
Page 284
The ________________ function stops all executing VIs and ends the current instance of LabVIEW.
Page 285
Illustrate how LabVIEW employs object-oriented programming by giving an example object from a LabVIEW class that you know of.
Page 286
Determine whether a property node or invoke node would be appropriate in each case: __________ __________ __________ __________ __________ __________ Resize a front panel control programmatically Center the front panel when the VI runs Hide a graph before data acquisition Make an LED begin blinking when an invalid string is entered Export an image of a graph indicator Reinitialize all front panel controls to their default value
Page 287
True or False: You can change the color of decorations programmatically using properties nodes.
Page 288
Page 289
When a property node is placed in a subVI, which of the following is true? Choose all that apply. a) b) c) d) e) f) The front panel object that the property node is linked to is no longer seen on the front panel A copy of the property node is placed in the subVI A control reference is needed to explicitly link the property node One of the above Two of the above None of the above
Page 290
Page 291
Please select the correct statements regarding the characteristics of generic and specific refnum classes. a. b. c. d. A specific refnum class will only have properties specific to that class Both generic and specific refnum classes share some properties Specific refnum classes have more properties available than generic classes A generic refnum class is more restrictive than a specific refnum class
Page 292
Page 293
What is the name of this block diagram object? Hint: It appears this way when first dropped into the block diagram, before it is wired to a control reference.
a. b. c. d. e.
Formula Node Script Node Invoke Node Property Node Constructor Node
Page 294
Page 295
This is a property node for a front panel control. What will this node do?
a. b. c. d.
Change the control label font to bold, italic and the color blue Change the control label font to italic and the color blue Nothing, there is no wire at the top of the property node for the reference. Change the text of the control to italic and the color blue
Page 296
a. Changes the background to red, displays the background color as an integer, changes the width of the display to 100 and the height to 150. b. Changes the background to red, displays the background color as an integer, changes the width of the display to 150 and the height to 100. c. Changes the background to red, displays the background color as a color box, changes the width of the display to 150 and the height to 100. d. Changes the background to red, displays the background color as a color box, changes the width of the display to 100 and the height to 150.
Page 297
What is the name of this block diagram object? Hint: It appears this way when first dropped into the block diagram, before it is wired to a control reference.
Page 298
Page 299
Page 300
Which of these options are available when creating a method for a VI class? a. b. c. d. e. f. VI to HTML VI to RTF VI to printer VI to text Block diagram to printer Panel to printer
Page 301
The following code changes the color of an LED based on an enumeration of four colors (Blue, Green, Yellow, Red): Main Code
When this code is run, the LED on the front panel fails to change color for every value of the enumeration. Explain why this error occurs and how to fix it.
Page 302
LabVIEW Academy Student Edition The ___ VI is one way to view data within TDMS files.
Page 303
LabVIEW Academy Student Edition TDMS stands for Technical Data _______________ Streaming
Page 304
Page 305
The ___ VI reads TDMS files and outputs the group and channel names as well as the data from the TDMS file.
Page 306
Page 307
Which of the following are properties of datalog files? Choose all that apply. a. b. c. d. e. f. Number of Records Channel Grouping Set properties The Record(s) Current read position Data output
Page 308
What are the accepted data types when writing to a binary file? Chose all that apply. a. b. c. d. e. Double Integer Boolean Waveform Dynamic
Page 309
True or False: TDMS is a data model created by National Instruments hence it is not possible to create third party programs to write and read TDMS files.
Page 310
True or False: The .tdms_index can be regenerated from the .tdms file, but the converse cannot be done (cant recreate .tdms from .tdms_index).
Page 311
Each character in an ASCII string takes up exactly ______ of memory. Choose amongst the following to fill in the blank. a. b. c. d. e. f. g. 4 bytes 1 bit 1 byte 8 bytes 4 bits 1 nibble 1 megabyte
Page 312
Which of the following file formats is the most compact and fastest for storing data? a. b. c. d. ASCII TMDS Binary PDF
Page 313
Page 314
What is best file type to use when collaborating with multiple people with different data analysis software (non-NI)? a. b. c. d. Tab-delimited ASCII Custom binary format TDMS Datalog
Page 315
True or False: All files written to your computers hard drive are a series of binary bits.
Page 316
Page 317
a. Datalog files are best used to store arrays of clusters because they can store data in either binary or ASCII format b. Datalog files are best used to store arrays of data logs because they provide efficient storage and random access c. Datalog files are best used to store arrays of clusters but if you lose the definition of the cluster, the files becomes difficult to decode d. Datalog files are best used to store arrays of clusters because they are easily accessible in every environment including LabVIEW
Page 318
When reading a binary file, there are two methods of accessing data; ___________ and ____________access. Using the __________ access method, you read each item in order, starting at the beginning of a file. Alternately, in the ___________ access method, you access data at an arbitrary point within the file.
Page 319
32-bit integer Little Endian or Big Endian Bytes 8-bit value 64-bit value A series of unsigned 8-bit integers
Page 320
You are using LabVIEW to collect temperature data from multiple sensors. You are asked to run a 1 hour test everyday for one week. You decide you need to log the data in a file that can be later used for analysis. Which file format is best to use? Why? (Choose from text, binary, datalog, or TDMS)
Page 321
Page 322
The TDMS file format contains two files, the .tdms_index file and the .tdms file. Explain the purposes and properties of each file. Also include any information pertaining to the sharing and distribution of these files.
Page 323
The following code writes a 2D array of double precision numbers to a binary file:
If the binary file is then read with a byte offset of 40, what is the first value that is read? a. b. c. d. e. -1 0 1 6 None of the above, the byte offset is too large
Page 324
a. Read Binary File b. Random Access c. Read ASCII File d. Sequential Read
Page 325
Modify the block diagram below to add the output of the Square Waveform.vi block to the TDMS file as an additional channel.
Page 326
How do you force VI programmers to leave revision comments on a VI they are editing?
Page 327
What are relative paths and why are they an important consideration when building applications for distribution?
Page 328
Your application requires that you have a very simple standalone program to log data from a USB-6008 on a computer with no National Instruments products installed, what should be included in your installer?
Page 329
What is the main step that needs to be taken before being able to building an executable?
Page 330
Using constants for file names can be a bad idea when building executables. Why is this a bad idea?
Page 331
For large installers, it is possible to split an installer across multiple types of media such as CDs or DVDs. This option is located in the ________ category of _____________, which is reached from the project explorer.
Page 332
True or False: You can view the block diagram of an executable made from LabVIEW?
Page 333
The VI Hierarchy is helpful for maintaining an organized view of your VI. Please select all attributes of the VI Hierarchy. a. b. c. d. Accessed from View > VI Hierarchy Shows all connections between Vis and subVIs as well as the additional functions they use Shows files that the VI has written to or read from Shows globals and type definitions
Page 334
Page 335
In a stand-alone application, the top-level VI is usually tasked with quitting LabVIEW when the program is finished running. What is the easiest method of doing this? a. Issuing a Quit command to the LabVIEW .dll from the top-level VI. b. Placing a True Boolean constant wired to a Close.LabVIEW property node on the top-level VI. c. Call the Quit LabVIEW function on the block diagram of the top-level VI.
Page 336
You are planning on building an installer to use on multiple computers. These computers will not have LabVIEW installed on them. What must you include as an additional installer? a. b. c. d. The original VI Full version of LabVIEW LabVIEW Run-Time Engine The built in sub VIs that come with LabVIEW
Page 337
Which of the following choices describe the most compelling situation to create an Installer instead of simply compiling your VI to an executable file? a. b. c. d. The need to distribute your application to a system that does not have LabVIEW installed. The program contains many VIs. The entire Block diagram of the main VI cannot be seen without scrolling its window. The program uses one or more libraries.
Page 338
Page 339
When using a custom scale in your DAQ Assistant, does the Application Builder automatically include the scale used or do you have to manually add it to the builder?
Page 340
Page 341
You created a stand-alone LabVIEW application. The application runs without warnings and functions as it should. However, the top level front panel remains open even after the application has finished processing. How can you fix this situation?
Page 342
You can view the development history of the VI by selecting Tools VI Revision History Revision numbers increment every time you save the VI You can set Revision History options for specific VIs Revision numbers for a VI always start at 1
Page 343