# 1.8 Debug exercise (main) vi

 Page 1 / 1
Practice debugging techniques.

Complete the following steps to load a broken VI and correct the error. Use single-stepping and execution highlighting to stepthrough the VI.

## Front panel

• Select File>>Open and navigate to C:\Exercises\LabVIEW Basics I to open the Debug Exercise (Main) VI.The front panel shown in appears. Notice the Run button on the toolbar appears broken, shown in , indicating that the VI is broken and cannot run.

## Block diagram

• Select Window>>Show Block Diagram to display the block diagram shown in . The Random Number (0-1) function, located on the Functions>>Arithmetic&Comparison>>Express Numeric palette, produces a random number between $0$ and $1$ .The Multiply function, located on the Functions>>Arithmetic&Comparison>>Express Numeric palette, multiplies the random number by $10.0$ .The numeric constant , located on the Functions>>Arithmetic&Comparison>>Express Numeric palette, is the number to multiply by the random number.The Debug Exercise (Sub) VI, located in the C:\Exercises\ LabVIEW Basics I directory, adds $100.0$ and calculates the square root of the value.
• Find and fix each error.
• Click the broken Run button to display the Error list window, which lists all the errors.
• Select an error description in the Error list window. The Details section describes the error and in some cases recommends how tocorrect the error.
• Click the Help button to display a topic in the LabVIEW Help that describes the error in detail and includes step-by-step instructions forcorrecting the error.
• Click the Show Error button or double-click the error description to highlight the area on the blockdiagram that contains the error.
• Use the Error list window to fix each error.
• Select File>>Save to save the VI.
• Display the front panel by clicking it or by selecting Window>>Show Front Panel .

## Run the vi

• Click the Run button to run the VI several times.
• Select Window>>Show Block Diagram to display the block diagram.
• Animate the flow of data through the block diagram.
• Click the Highlight Execution button, shown in , on the toolbar to enable execution highlighting.
• Click the Step Into button, shown in , to start single-stepping. Execution highlighting shows the movement of data on the blockdiagram from one node to another using bubbles that move along the wires. Nodes blink to indicate they are readyto execute.
• Click the Step Over button, shown in , after each node to step through the entire block diagram. Each time you click the Step Over button, the current node executes and pauses at the next node.Data appear on the front panel as you step through the VI. The VI generates a random number and multiplies itby $10.0$ . The subVI adds $100.0$ and takes the square root of the result.
• When a blinking border surrounds the entire block diagram, click the Step Out button, shown in , to stop single-stepping through the Debug Exercise (Main) VI.
• Single-step through the VI and its subVI.
• Click the Step Into button to start single-stepping.
• When the Debug Exercise (Sub) VI blinks, click the Step Into button. Notice the run button on the subVI.
• Display the Debug Exercise (Main) VI block diagram by clicking it. A green glyph, shown in , appears on the subVI icon on the Debug Exercise (Main) VI block diagram, indicating that the subVI is running.
• Display the Debug Exercise (Sub) VI block diagram by clicking it.
• Click the Step Out button twice to finish single-stepping through the subVI block diagram. The Debug Exercise (Main) VI block diagram is active.
• Click the Step Out button to stop single-stepping.
• Use a probe to check intermediate values on a wire as a VI runs.
• Use the Probe tool, shown , to click any wire. A window similar to appears. LabVIEW numbers the Probe window automatically and displays the same number in a glyph onthe wire you clicked.
• Single-step through the VI again. The Probe window displays data passed along the wire.
• Place breakpoints on the block diagram to pause execution at that location.
• Use the Breakpoint tool, shown in , to click nodes or wires. Place a breakpoint on the block diagram to pause execution afterall nodes on the block diagram execute.
• Click the Run button to run the VI. When you reach a breakpoint during execution, the VI pausesand the Pause button on the toolbar appears red.
• Click the Continue button, shown , to continue running to the next breakpoint or until the VI finishes running.
• Use the Breakpoint tool to click the breakpoints you set and remove them.
• Click the Highlight Execution button to disable execution highlighting.
• Select File>>Close to close the VI and all open windows.

The quantity of a good demanded rises from 1000 to 1500 units when the price fallsfrom$1. 50 to$1. 00 per unit. Find the price elasticity of demand?
what is meant by Regional policy
what is demand
nice question..
Suman
what is aggregate demand and the equation for Y(GDP)
what is cost concept
is a type of mechanism which makes consumers and individuals understand the price of goods and services
Davido
who is the father of Economics
i dont know
Suman
deep
hi
Zafraan
Zafraan
smith
Zafraan
Bevingtone
What is opportunity cost
Bevingtone
is the value of the next best thing you give up when making a decision.
Bongiwe
opportunity cost is a made in order to enjoy something else
Laila
what is cost concept
Fatai
Md
Akligo
Samura
What is demand and supply
Ehwehwe
demand refers to goods and services which consumers are willing and able to buy at a particular period of time and supply refers to the goods and services which consumers are willing and able to offer for sale at a particular period of time
Davido
demand is the quantity of goods and services which a particular customer is willing and able to purchase at that point in time.while supply is a quantity of goods and services which the company is willing and able to render to the customer who purchased it at that point
Israel
Israel
cost concept. it is used for analyzing the cost of a project in short and long run
Israel
opportunity cost can be seen as a forgone alternative. it can be seen as the loss of other alternatives when one alternative is chosen
Israel
cost is value of imput and output at particular period of time. but we can classify in short run and long run.
Nago
Cost is the aggregated sum accrue in procuring something worthwhile.
KATUNKUS
Som
Tandan
Hafiz
what is the formula for elasticity
perc of qty chg/perc of price chg
Suman
ok
Umar
I need some help regarding economic numericals.
Hassan
Tandan
utility
Oppong
demand or supply equation dy hn OK iska schedule bnana above equation ko dekhty hue kasy bnaye gy
Saba
what is cobweb?
A spider's web, especially when old and dusty (The wooden carvings were almost obliterated by cobwebs)
huzaif
what is Economic
Economic is a social science that study human behavior in relationship with end and scarce means which have alternative uses
Agyenkwa
Economics is an inquiry into nature that causes wealth of nations.
Eric
what are the importance of economic
Mbarohey
it helps us use our limited resources to satisfy our unlimited wants
Daniel
economic is the science of wealth
Joseph
it's helps us to be current on what's going on in the world
Joseph
economics can be defined as the science of wealth
Joseph
what are the advantages of sole proprietorship
Mbarohey
is the study of mankind in the ordinary business
Awini
Economic is science which study human behavior in relation to relatively scarce resources and how they are managed
Akligo
What is the formula for calculating elasticity?
(%change in quantity) / (%change in price)
Rahul
thx
lil
.
Tandan
.
Tandan
government spending increase will cause economic grew
no
Helicia
no because government expenditure is very high the growth of the economy will decrease
Davido
trade involves the transfer of good or services from one person to another, often in exchange for money.
Now trade by batter :it may define as form of trading in which good are exchange directly for other goods without the use of money as medium of exchange
is it good to trade with something with a value but given something which has no value
sandra
trade in batter means the exchange of goods and services without using money
Maa
It may be defined as an exchange of goods to satisfy the needs of two parties
Haruna
is the exchange of goods and services for the consumption of human wants
Davido
mention six factors that explain efficiency and productivity of labour
mention six factors that explain efficiency and productivity of labour
bohvy
factors that explain efficiency of labor are 1.population, 2.technology, 3.education, 4.working environment, 5.incentives (tax holidays) and 6.religious or cultural beliefs.
Solomon
What is demand
is the abulity and willingness of a consumer to purchase goods and services at a particular peeiod of time in a given price
Is goods or service that a consumer is willing and able to purchase at a particular time over a giving period of time
Konja
is the ability and the willingness to buy a goods at a particular period of time in a given price
Prince
please go ahead it's been long time you all are explaining basic topics so now there are many topics left you have to discuss them .
Zahid
what is a central bank
transactionsss with all banks of any country
Economics
A soccer field is a rectangle 130 meters wide and 110 meters long. The coach asks players to run from one corner to the other corner diagonally across. What is that distance, to the nearest tenths place.
Jeannette has $5 and$10 bills in her wallet. The number of fives is three more than six times the number of tens. Let t represent the number of tens. Write an expression for the number of fives.
What is the expressiin for seven less than four times the number of nickels
How do i figure this problem out.
how do you translate this in Algebraic Expressions
why surface tension is zero at critical temperature
Shanjida
I think if critical temperature denote high temperature then a liquid stats boils that time the water stats to evaporate so some moles of h2o to up and due to high temp the bonding break they have low density so it can be a reason
s.
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
While the American heart association suggests that meditation might be used in conjunction with more traditional treatments as a way to manage hypertension
Got questions? Join the online conversation and get instant answers!