Upload
eduuard-fraa-dedrick
View
221
Download
0
Embed Size (px)
Citation preview
7/27/2019 CLAD Add on for Workshop 2
1/14
Workshop2 of 7
Welcome!
7/27/2019 CLAD Add on for Workshop 2
2/14
Todays Topics
- Review of:
- LabVIEW Project
- Mechanical Action of Booleans
- Custom Controls and Type Definitions
7/27/2019 CLAD Add on for Workshop 2
3/14
Review Question 1
True or False?
It is possible to add non-VI files to a LabVIEW
Project.
7/27/2019 CLAD Add on for Workshop 2
4/14
Review Question 1
True or False?
It is possible to add non-VI files to a LabVIEW
Project.
TRUE
7/27/2019 CLAD Add on for Workshop 2
5/14
Review Question 2
True or False?
If I am using a virtual folder in the LabVIEWProject, I must keep all of the related filestogether on disk.
7/27/2019 CLAD Add on for Workshop 2
6/14
Review Question 2
True or False?
If I am using a virtual folder in the LabVIEWProject, I must keep all of the related filestogether on disk.
FALSE
7/27/2019 CLAD Add on for Workshop 2
7/14
Review Question 3
Which mechanical action causes a Boolean in the Falsestate to change to True when you click it and stay Trueuntil you release it and LabVIEW has read the value(similar to how a button in Windows operates)?
a) Switch Until Released
b) Switch When Released
c) Latch Until Released
d) Latch When Released
7/27/2019 CLAD Add on for Workshop 2
8/14
Review Question 3
Which mechanical action causes a Boolean in the Falsestate to change to True when you click it and stay Trueuntil you release it and LabVIEW has read the value(similar to how a button in Windows operates)?
a) Switch Until Released
b) Switch When Released
c) Latch Until Released
d) Latch When Released
7/27/2019 CLAD Add on for Workshop 2
9/14
Customizing Controls
LabVIEW ships with multiple palettes of controlsavailable to you. However, you may want tocustomize them or create your own
Standard LabVIEW Gauge Customized LabVIEW Gauge
7/27/2019 CLAD Add on for Workshop 2
10/14
Creating Custom ControlsHow to create:
- Right click on the control; select Advanced >> Customize
- The Control Edit window will appear.
Edit Mode
Customize Mode
(low-level changes)
7/27/2019 CLAD Add on for Workshop 2
11/14
Saving Custom Controls
Three options:
- Custom Control
- Type Definition
- Strict Type Definition
All 3 options create a *.ctl file.
Once you save the custom
control it takes on the name of
the option you chose.
7/27/2019 CLAD Add on for Workshop 2
12/14
Custom Controls & Type Definitions
Control No connection
between the one yousaved and theinstance in the VI
Update the file, butthe instances are notupdated
Type Def Connection between the
saved file and allinstances
Forces the data type of
each instance to beidentical (clusters, enum)
Changes made to file willpopulate throughouteach instance
Strict Type DefConnection between
saved file and all
instances
Forces everythingabout
an instance to be identical
to the strict type
definition, except:
label
description
default value
*.ctl *.ctl *.ctl
7/27/2019 CLAD Add on for Workshop 2
13/14
Demonstration:
Creating and Saving a Type Definition
7/27/2019 CLAD Add on for Workshop 2
14/14
Create custom controls and type definitions forthe course project.
Homework