Вы находитесь на странице: 1из 20

621.

38
32.973.26-108.2
12

. .
12 LabVIEW: . .:
, 2012. 208 .
ISBN 978-5-94074-782-6

, LabVIEW. -
,
.
-
.

.
-
,
LabVIEW.

621.38
32.973.26-108.2
.
.
, , .
,
. , .

ISBN 978-5-94074-782-6

. ., 2012
, , 2012

.............................................................................................................................5

1
LabVIEW: ...............8

2

........................................................................................11
LabVIEW ...................13
LabVIEW ...........................................24
LabVIEW ........................................................................32

3
LabVIEW Measurement & Automation
Explorer ..............................................................................................................................48
DAQ................................................................................49
DAQ MAX ...........................................................................54
DAQ ...............................................57
DAQ ................................................. 60
/ DAQ .............................. 62
/ DAQ ................................. 67
...............74

4
LabVIEW...................................80
...............................................80
......87

5
LabVIEW............................................. 107
............................................................ 108
LabVIEW................................ 112
- ............................................. 116
LabVIEW .............................................. 121

6
- LabVIEW .....................................................................133

7
LabVIEW: .........................155

8
LabVIEW: ..... 176
I/O Assistant ........................ 178
LabVIEW .......................................... 181
LabVIEW...........................................183

9
LabVIEW TCP/UDP.......................................................................................... 191
UDP .......................................................................... 193
TCP ........................................................................... 203

11

LabVIEW.
, . , LabVIEW:
, .
LabVIEW
(VI), .vi. LabVIEW ,

, .
VI , , .
LabVIEW , .
/,
, ,
, (, . .). ,

(, . .).
.
LabVIEW .

LabVIEW, , ,
.

12

, LabVIEW.
, LabVIEW , .
, LabVIEW (VI). () () ,
(). - (, , . .).
, .
LabVIEW , - /
(). G, LabVIEW, .

(, . .),
(). G ,
, .
LabVIEW , ( DAQ, . .), ( ) .
LabVIEW ,
. LabVIEW -.
- , ; . ,
- -. - -
,
.
LabVIEW,
LabVIEW ,
, ,
, , , /++.
, , LabVIEW-, .
, -

LabVIEW

13

(). LabVIEW ,
. NI LabVIEW 2011.


LabVIEW
LabVIEW .

( )
LabVIEW. .
,
( ).
1. ,
100 1000
1 . , , 0,33 180
.
.
(Blank VI) LabVIEW, ( . 2.1).
, :
(Front Panel), ; (,
(), . .).
(Block Diagram) - ( ) ; , ,
.
- ,
, .

Controls. -,
Functions, , -
.
, . - ,
Show Block Diagram Windows
.

14

. 2.1


. . Silver Waveform Graph (. 2.2),
.
,
Controls . Silver Knob Vertical Pointer Slide,
, Primer.vi (. 2.32.5).
Knob , Vertical Pointer Slide . . -, Knob Amplitude, V, Vertical Pointer
Slide Frequency, Hz.
, 100
1000 , 1 .
( Properties ).

LabVIEW

. 2.2

. 2.3

15

16

. 2.4

. 2.5

LabVIEW

17

LabVIEW ,
.
Knob Properties Scale (Maximum)
1 10 (. 2.6).

. 2.6

100, 1000 (. 2.7).


, ,
Visible
Items Digital Display. LabVIEW ,
.
(DBL). ,
.
Data Type U32 (. 2.8).
Knob,
. ,
. -

18

. 2.7

. 2.8

, . 2.9.

LabVIEW

19

. 2.9

,
, - . . 2.10, - , .

. 2.10

20

- LabVIEW
Functions, , .
,
-.
VI Functions.
Simulate Signal, Functions Express Input.
- Amplitude, .
Frequency Simulate Signal
, .
Simulate Signal , . 2.11.

. 2.11

,
Signal type Square. Amplitude 1.
LabVIEW.

LabVIEW

21

LabVIEW ()
.
, -, , .
, ,
, , .
,
1000 2000 . ,
. , , 1000 , 1000 (3000, 5000, 7000 . .).

, . , ,
11- , 22 .

, 11-
.
20 000 Samples per second (Hz)
Simulate Signal (. . 2.11).

. Functions Express Arithmetic & Comparison Time Domain Math.
Time Domain Math
. (. 2.12).
Mathematical Operation Summation
(Sum[X])
. ,
.
Functions Formula. , Time Domain Math (Express Arithmetic & Comparison Formula).

,
.
- Properties , Formula,
. 2.13.
, Formula :
(Input1)/3+Input2.

22

. 2.12

. 2.13

LabVIEW

23

,
3, X1 X2.
X1 Input1, X2 Input2. Input1 Time Domain Math,
Input2 5 ().
Numeric Constant, Functions (Express Arithmetic & Comparison
Express Numeric).
. , , -. -
, . 2.14.

. 2.14

(, Simulate Signal, , Formula) (Merge Signals)


Waveform Graph.
Run Waveform Graph
(. 2.15).
, . . , ,
, .

24

. 2.15


LabVIEW
LabVIEW ,
/++ while(), for(), switchcase. Functions, Express Execution Control .
1
, .
2. 2 ,
Functions Express Execution Control,
While Loop -
, - (
. 2.16).
- ,
. - while(), ( . 2.17).

. Stop if True
( ).

LabVIEW

25

. 2.16

. 2.17


STOP (. 2.18).
STOP
.
, STOP.
, Abort Execution . Abort Execution
. STOP
.

26

. 2.18

while()
, , STOP. , :
STOP ( 1);
600 ( 2).
3. , - .
: .
600
. , (OR), (true),
.

Functions. , (Greater
or Equal? ?), Functions Express
Arithmetic & Comparison Express Comparison, , (Or), Functions Express
Arithmetic & Comparison Express Boolean.