Documente Academic
Documente Profesional
Documente Cultură
Lectures #3
Inputs for the design can come from the following actions:
1. You can display the inputs of the problem on the front panel with
controls, such as numeric, boolean, or string controls, but not all
input appears on the front panel.
2. You can display the outputs of the problem with indicators, such as
graphs, charts, or LEDs, or log the outputs to a file. You also can
output data to a device using signal generation.
Labels:
These labels help users identify the purpose of each control and
indicator.
Also, clear labeling helps you document your code on the block
diagram.
While Loops
Wait Functions
Shift Registers
If you do not initialize the shift register, the loop uses the value
written to the shift register when the loop last executed or, if the
loop has never executed, the default value for the data type.
Stacked Shift Registers
Stacked shift registers let you access data from previous loop
iterations.
Only one sub diagram is visible at a time, and the structure executes only
one case at a time.
Add (0)
Subtract (1)
Quiz
Front Panel
Write a program in LabVIEW as shown in the
screen shots of Front Panel and Block
Diagram to generate Sine and Cosine of an
angle X where 0 < X < 360.
Block Diagram
Assignment 3: Question # 2
The Question 1 is further expanded to compute the amplitude and phase of the wave
form graph of Sine and Cosine output. Screen shot of the Block Diagram of extended
Portions 5 and 6 of the Sequence are given here.
Portion Portion Portion
“Inverse Tangent”
Assignment 3: Question # 2
Write a program in LabVIEW as shown in the screen shots of Front Panel and Block Diagram to
compute the generated Sine and Cosine of an angle X where 0 < X < 360.
Block Diagram