Professional Documents
Culture Documents
Com
LabVIEW
1
| }
LabVIEW
:~
LabVIEW |
& |
{~
www.SoftGozar.Com
LabVIEW
LabVIEW | }
| LabVIEW }
. |
:~| ~
.LabVIEW |
. & |
.{~
.LabVIEW |
|: ~{ 1~
LabVIEW
<G> |
(VI: Virtual Instrument)
(Data Flow) &
(Graphical Programming) |
(Front Panel)
1- Key Terms
LabVIEW
www.rasekhoon.net/software
28
(Block Diagram)
(Icon)
(Connector) }
(Toolbar)
(Hierarchy) {
LabVIEW |
~ | LabVIEW | ~ ~ ~
|
_ } ~ ~{| ~
~|
~ Laboratory Virtual Instrument Engineering Workbench LabVIEW
.~ { ~ |
C BASIC ~} | | { {
{ LabVIEW | .| | } }
~ } } | | } . |
| .~ ~ |} |
. HP Mac Sun SPARC |} Windows | {
| ~} ~{| LabVIEW <G> ~{~ | }
| { { |~ ~ | | | .~
} | } . }
LabVIEW | ~ } ~ ~} |
{ | } | | .~| ~
~ | . | ~
| { ~{ } | |~ ~ |
. |~
_
} {| } | ~ }
~} { . } |
|~ { _ { ~ LabVIEW . }
| } { _ .~
|~ { { . ~ |~ { ~
www.SoftGozar.Com
29
www.rasekhoon.net/software
LabVIEW | }
.~ ~ { | ~ ~{| | ~
| ~ | LabVIEW }
| | 1-1 .| |~ {
.~|
|{ ~ { { : 1-1
. } ~ {| } LabVIEW | } .| } NASA
| { } { |} LabVIEW |
~ ~ | { ~| ~
|} .~ } |
.| { { GPIB | } | |
~{ ~ } { Analysis }
} } { .~| | |
.~ } |
| _} LabVIEW | }
| .~| } | .| }
} | { { ~ { |
~ | } .~|
.~
. } } |2} {| LabVIEW ~ }
2- Platform
LabVIEW
www.rasekhoon.net/software
30
{ | ~ } Mac } | ~{|
.~ Windows | {
& <G > |
C BASIC ~} | _ LabVIEW |
} } } | . }
| .| | <G> | LabVIEW |
~{| .~| |
~ .~ ~ } |
.~| 1-2 LabVIEW ~}
_
(User Interface) :
1-2
(Graphical Code) ~ :
} ~ |~ | LabVIEW |
& .| } } | | . ~
.~| | { } {
LabVIEW | ~{| } ~ }~ | { _ }
| ~ } | { .~
. ~ {
~| LabVIEW |
~ { LabVIEW ~ } |
{ |.~ 3VI~|||~{|
.~ } ~ } 6 ~ VI ~ < -> ~ -3
31
www.rasekhoon.net/software
LabVIEW | }
~ .~ C BASIC } | | | }
~ } | .| } VI LabVIEW ~ } |
: .~| .vi ~
~{| } LabVIEW | Front Panel | -1
} .~ } } ~ ~ { ~
| |~ } < > ~
| | |~ {| .|
. } 5~| | 4}
} | ~ }
. ~ 1-3 .| ~
~ } ~| Block Diagram -2
.~} <G> |
.} { } .
| .| } 6 { |
4- Control
5- Indicator
6- Wire
LabVIEW
www.rasekhoon.net/software
} { ~ }
.~| 1-4 .
. } 1-3 ~
{ 7 ~ .| }
{ . ~ } ~| .~
.~| <Diagram> {
| } -3
. } } ~
Subroutine .| ~ SubVI
. } |
{ .| } {
| { |
} Subroutine } ~ .| } } {
.~| } / 1-5 .
7- Title Bar
32
33
www.rasekhoon.net/software
LabVIEW | }
}/ { : 1-5
LabVIEW
VI
Function
SubVI
Front Panel
Block Diagram
G
~}|
Program
Function
Subroutine, Subprogram
User Interface
Program Code
C, Pascal, BASIC, etc.
LabVIEW | . !
.~ |
8- Hierarchy
9- Modular Programming
10- Application
www.SoftGozar.Com
LabVIEW
www.rasekhoon.net/software
34
~ LabVIEW | ~ ~ { {
. } { .~ Exercise
File Open... ~ LabVIEW |
New ~{| ~~ .~ }
.~ }
} ~| { }
~ } { . ~
Mac .~ } ~ ~ ~{
.~ } <Cmd> ~ ~{| ~
|~ : 1-1 {
:~ {{ Temperature System Demo.vi
.~ ~| LabVIEW | { -1
.| 1-6 |
1-6
.~ Open VI -2
Open... ~ New VI ~}
.| 1-7 | .~ } File
35
LabVIEW | }
www.rasekhoon.net/software
1
1-7
11Ch1.llb } .~ Exercise -3
~ ~ } ~| 1 |
. ~ tempsys.llb } .~ Temperature System Demo.vi
~ . LabVIEW \ Examples \ Apps }
~| .~ ~ 1-8
~| ~ ~ ~ } |
. }{
.| } | LabVIEW }-11
. { ~ |} |
LabVIEW
www.rasekhoon.net/software
36
~| .~ Run -4
~ {
.
| } Toolbar {{ {|
.~| { | ~ {
.| Abort ~ } {
~| }
_ } .~ } ~{|
.~| | } ~ Temperature System Demo.vi
.~| |~| ~ |~
| ~| |~ ~ |
.~ ~ { |~ ~{|
| .~| ~ Update Period ~
~ ~{| .| { ~ { ~ |~
Temperature Range ~ } .~ ~ |~ ~
~| ~ ~ ~ { . { ~ {|
.| OVER TEMP
. } ~~ off Acquisition ~ {
.~ Analysis ~ | { { ~{|
{ .~| ~ ~}
.| { Histogram ~ {
} {
{ Operating Tool } -5
. { } {| ~|
{{ ~ .~ { ~ ~
.~ 12} ~ ~ ~ { ~ }
~ ~ } Operating Tool ~
~ ~ ~~ . | ~ {
. ~ Run .~ Enter
12- Highlight
www.SoftGozar.Com
37
www.rasekhoon.net/software
LabVIEW | }
-7
-8
. ~ 1-9
~ . | {
. { ~ .~ ~
~ ~} {| ~ _
.~ ~
Windows Show Diagram } -9
.~ Temperature System Demo.vi
| | } ~
:|
Windows Show Diagram }
.| Windows >> Show Diagram
LabVIEW
www.rasekhoon.net/software
38
. ~ <Diagram> ~ } {
} { ~ .~ -10
.~ ~ ~ } } .~
.~ Help Help >> Show Help } -11
{ .~ ~ { |
Help { }
.| } {{
{
{ . } | { LabVIEW | ~
~{| {
| {{ | ~{ .~ | { {
~ } | .~ }~
.~ Temperature System Demo.vi
Temperature System Demo.vi -12
.~ Temperature Status.vi
39
www.rasekhoon.net/software
LabVIEW | }
.| 1-11 ~|
} /
} | {
. } } /
. { } .~
. | ~|
} |{ .~ { ~{| } |{
|~| |} .~} } } | Function Subroutine
1-12 .| } } {
.~| } /
.~ |} ~ } ~{| | }
www.SoftGozar.Com
LabVIEW
www.rasekhoon.net/software
40
{| . { | } } { | ~
. | ~ { {
{ .~ Temperature Status.vi
.~ { | { ~ }
Temperature Status.vi File >> Close } -13
.~ ~ { .~~
Temperature System Demo.vi File >> Close } -14
.~ ~ { .~~
~ } { File >> Close }
File >> Close } .|
.~ }
: 1-2 {
} .| }
~ . | } <14 > }
} .~| < >
| ~ { | } |
.| } |~ } }|} .~|
} } }|} ~ | ~
~ | | {| | . ~
GPIB | | } |
. |
.~| {{
.~ } File >> Open... -1
} Exercise Ch1.llb } -2
~{| } .~ Frequency Response.vi
.~ LabVIEW \ Examples \ Apps \ freqresp.llb
.| 1-13
14- Black Box
www.SoftGozar.Com
41
LabVIEW | }
www.rasekhoon.net/software
.~ Run -3
~{ {{ Number of Steps Amplitude } {
~| } { {
High Frequency | ~{| .~ _~ ~ {
{ .~ { 15 { ~ ~ Low Frequency
.~ < > { ~ |
Show Diagram } -4
.~ ~ |
.~~ ~ } File >> Close -5
. ~ <G> | |~ {
.~ ~ } | ~{| <G> |
Windows
>>
{ | | LabVIEW
. ~| | } | { { | . |~
15- Frequency Sweep
www.SoftGozar.Com
LabVIEW
www.rasekhoon.net/software
42
| .| } <G> | | |
. VI < > LabVIEW ~ }
.~| { |
.~| ~ } .
} .~ {
~} { } } | . ~|
| { .~| | |}
.| LabVIEW } | ~ .| } |
~} . ~ ~ Exercise } { {
~ | { { ~
.~
{
16
| : 1-3 {
LabVIEW | ~{ { ~ {
~ { ~ ~ } } . | } }
. } | {|
} .~ demos.llb } | { -1
| } 1-14 . LabVIEW \ Examples\ Apps
.~|
www.SoftGozar.Com
43
www.rasekhoon.net/software
LabVIEW | }
readme.vi : 1-15
www.SoftGozar.Com
LabVIEW
www.rasekhoon.net/software
44
} } | }
| .~| { Selection Description
| .~ ~ } | |
.~ Done readme.vi
Windows >> Show Diagram } -3
.~
Examples | -4
.~ LabVIEW |
~ ~ daq Apps General |
| ~{| .~ LabVIEW } | |
.~ } ~} {
~ } | ~ } File >> Close | -5
.~ } ~ { .~~
www.SoftGozar.Com