- LabVIEW
LabVIEW (Laboratory Virtual Instrument Engineering Workbench) , , . LabVIEW Windows, MacOS, Linux, Solaris HP-UX.
, - LabVIEW, .
( )
LabVIEW , .
LabVIEW .
, , .
LabVIEW CERN
( ), Lawrence Livermore, Batelle, Sandia, Oak Ridge (),
- , , ,
..
LabVIEW - ,
G .
LabVIEW ,
- - , , , .
, LabVIEW,
() (VI - virtual instrument).
. LabVIEW
, , . - .
. ,
, - (SubVI).
New Create New ( ),
, (Blanc VI),
(VI from Templates).
(Blanc VI), . ,
. - (Front Panel) - , - - (Block Diagram) - . Ctrl+T. Windows The Left and Right. ( The Up and Down, ). . .
|
|
() .
.
. 1.3.
Controls, ( Window =>
=> Show Controls Palette). -
(Controls),
- (Indicators).
- (. 1.4) .
()
.
All Controls,
. . 1.5.
, , -,
.
.
/ . |
/
/ Functions => File I/O. / . / / (). / .
, . - , , . / .
Formula Node |
: : ( LabVIEW, ).
1. . 3.1
2. Formula Node, - : All Functions => Structures => Formula Node. (1). . .
|
|
3. . Add Input ( ) Add Output ( ) . .
4. , - . . , . .
5. , .
. .
LabVIEW |
, , .
LabVIEW . , ,
.
, ,
,
.
All Functions => Analyze =>
Mathematics => Linear Algebra.
. 3.1
LabVIEW
. , matrix type,
. matrix type . 3.2.
, ,
. matrix type ,
Create Constant, .
, .
Linear Algebra : Dot Product Outer
Product. Dot Product ( ) ,
. Outer
Product ( )
.
LabVIEW Linear Algebra , . . matrix type , , , : . , matrix type . output option , : , , .
Lab VIEW Linear Algebra : Complex Linear Algebra Advanced Linear Algebra. , Linear Algebra, . , . 3.3.
|
|
- . . . - () (), . (), () , 231-1 , . , , : , . . . . , 0. ,
0 (-1), - .
Controls => Array & Cluster . (. . 6.1). , . , -. , , . -. Functions => Array => Array constant
.
: . . , .
. 6.2 , Controls =>
Boolean => Push Button. , , , .
, , : , , , .. . , .
, , .. . 0. , , . .
. Visible Items => Index Display.
(2D) (). . 6 x 4.
Add Dimension.
. . , , .
|
|
, 3 . () .
- , ( 6.6).
. , .
()
, Functions =>Numeric. . , ( , ). , Add . Add 2, , 2 .
Add , . Add , (. 6.7).
Lab VIEW, , , . . , (. 6.8).
Functions => Array:
LabVIEW |
, - , . Functions => Structures.
, .
. . , .
. :
Auto Grow - , , .
Remove... - .
Replace with... - , .
:
For
.
[N] - , .
[i] - , , 0.
For ( ) / . / . . , . . .
For .
:
[N]
. .
For
. .
|
|
While ( ) , ≪≫. , While, While, , While For. , For , . While , . For While . , 1 .
While:
(While) (For). , While ( for) , .. , . , While , , (Indexing) . .. , . , , , , (0 , , ..) ≪Replace≫ (While loop) (For loop).
Case . . , . Case (if...then...else) .
:
Case . , . Case , , (), .
Case . , . . , , . (). , .
(Sequence)
() . : .
. , .
(Flat Sequence Structure)
. , . , . , . 9.4 , 1 . Replace .
(Stacked Sequence Structure)
(, 1... ..) . ( ) . . -, . . , Add Sequence Local. , , , , . . , .
-. , ( , , ..). , , - . , , . . , - , - .
:
1 | 10.11.2015 14:09:29 |
For
.
[N] - , .
[i] - , , 0.
For ( ) / . / . . , . . .
For .
:
[N]
. .
For
. .
While ( ) , . , While, While, , While For. , For , . While , . For While . , 1 .
While:
(While) (For). , While ( for) , .. , . , While , , (Indexing) . .. , . , , , , (0 , , ..) Replace (While loop) (For loop).
LabVIEW |
LabVIEW , (, ). (Boolean) Controls => Boolean. , . , : (True) (False).
(Mechanical Action)
(Mechanical Action),
.
(Functions => Comparison).
c |
-. , ( , , ..). , , - . , , . . , - , - .
:
, . , , -. , . LabVIEW . .
, (Timeout). . -1, . Add Event Case. Event Specifiers , Event Handled for Case. , .
Event Sources . : (Application), (This VI), (Dynamic), (Controls). Events . . 10.1 .
. - . , , , . , LabVIEW. - , . . .
, . , Edit Events Handled by This Case.
-, , , - . , . . 10.2 .
. Remove Element. , Add Element. , , OldVal NewVal , Select Item.
. .
.
Discard.
. , .
- / , . / 28. 28 , , / . , , .
, , , , . Unbundle By Name, .
, . 0, - 1 . . , Bundle () Unbundle () -.
, , , Reorder Controls In Cluster. , . 11.2.
(4) , (5) - . Click to set to . . . , Confirm . , Cancel.
1. (Confirm button)
2. (Cancel button)
3. (Cluster order cursor)
4. (Current order)
5. (New order)
, , . , 0 , 1 - . 0 - 1 - , .
, , .
- , Functions
=> Cluster Cluster Constant , .
, -, , , - , , Create => Constant.
, Functions => Cluster. Bundle Bundle by Name
. Unbundle Unbundle by Name .
, Cluster Tools. Bundle Unbundle / . Bundle by Name Unbundle by Name / .
Bundle. . , Add Input. . 11.3 : , .
cluster ( ) , Bundle . . , . 11.4 .
Bundle by Name Bundle, (). , . . . 11.5 Bundle by Name .
. 11.4, .. , . . Select Item.
Bundle by Name , . , Bundle by Name, .
Unbundle . Unbundle by Name . .
. Select Item.
, Unbundle , . 11.6, , .
( Thermometer Numeric ). Unbundle by Name, , .
. , , , . .
Function => Array Function =$ Cluster .
. , . - , , . Lab VIEW . , , . , /, , . . Lab VIEW -.
: ,
. , - , .
Lab VIEW . , . , , .
Lab VIEW , , -
, , . . 11.9
Simple Error Handler. Simple Error Handler Functions => Tune and Dialog.
Error In ( ). .
. 11.10 , Controls => Array & Cluster.
Status , True . , , , . True.
code 32- , . status False, a code , , , , .
source , . .
LabVIEW . , , , , .
.
(Waveform Chart)- . Controls => Graph. : strip chart, scope chart sweep chart (. . 12.2). - strip chart.
Advanced => Update Mode . strip chart , , . scope chart sweep chart strip chart. scope chart , . sweep chart, scope chart, , - .
. Bundle, Functions => Cluster. Bundle. Bundle .
Stack Plots ( ) Overlay Plots ( ), .
(Waveform Graph) (X Y Graph) Controls =≫ Graph. , =f(x), , X. , .
Plot legend. . .
, X 1 = 0. , , : .
, , X 1 = 0.
, . , , .
, , .
, . - , .
(Intensity graphs and charts) . , , .
. . . , . , (, ). :
.
.
. . .
, - . IP . .
.
, .
- , Functions =>String. .
Format Into String .
/ . / Functions => File I/O :
.
.
.
.
.
,
/
/ Functions => File I/O. (Advanced File I/O) Functions => File I/O => Advanced File Functions . / , . , . / :
/
/ Functions => File I/O. / . / / (). / .
, . - , , . / .
/ |
/
/ Functions => File I/O. (Advanced File I/O) Functions => File I/O => Advanced File Functions