Insert Time Delay
from Functions->Time & Dialog palette.
When you place this Express VI, a dialog box appears. As we are not using a fixed delay, just click OK. To make the delay time (s) connection appear, move the cursor over the down arrows at the bottom of the Time Delay Express VI. When the double headed arrow appears, click and drag until the Delay Time (s) input appears.
Insert Divide
from
Functions->Numeric paletteInsert Numeric Constant
from Functions->Numeric palette. We need to divide the
delay by 1000 as the Time Delay Express VI accepts the delay in
seconds
Finally, use the Wiring tool from the Tools Palette
to wire the icons as shown in the above block diagram.Go back to the Front Panel
Click the Run
button to run the VI. Run the VI and shine a torch light to the LDR
to create different light intensity and observe the resultUse the Operating tool
to change the Update Period. You can drag the pointer to the desired
value.Press
to stop the VI.Save the VI. Select File->Save. go to the Working VI folder. Name the file Loop Example Ex 3.vi Close the VI.
Create a sub VI
If you know programming, you should be familiar with the concept of functions or subroutines. In schematic drawings whether electrical, mechanical or civil, if you need to convey a complex drawing the only way to do it is to have a top schematic showing the connections with the major blocks, and leave the details in the schematics of the sub blocks. In LabVIEW the equivalent is called the sub VI.
Learn LabVIEW DAQ Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |