You are on page 1of 69

.. , .. , ..

,
.. , ..

.. , .. , .. ,
.. , ..


2007

681.518.3(075)
973
227
:
- ,
. ..
..
,
..

227 , : / .. , .. , .. ,
.. , .. . : - . . . -, 2007. 116 . 100 . ISBN 5-8265-06040 (978-5-8265-0604-2).
, , ,
. LabVIEW 7.0
, .
4, 5 6
200500 , 220500
200503 220501 .

681.518.3(075)
973
ISBN 5-8265-0604-0

(978-5-8265-0604-2)
(), 2007


,
,
,
,

,


..
..
05.06.07
60 84/16. 6,74 . . . 100 . 397
-
,
392000, , , 106, . 14

, , . - (). LabVIEW (Laboratory


Virtual Instrument Engineering Workbench) National Instruments.
, ,
, , , ..
LabVIEW .
, , , ,
. ,
LabVIEW . , ++ Basic,
, , .
:
;
;
() .

, . LabVIEW , :
(, VXI, RS232, USB .);
;
.

. , ,
- .
,
, ADAM-4000 I-7000,
, , , , ..
,
LabVIEW .
. , , LabVIEW.
10 12
.. .. .

1. LabVIEW.


1

LabVIEW
, LabVIEW, (). . LabVIEW , , .
LabVIEW LabVIEW,
, - National Instruments LabVIEW.
LabVIEW (New VI) (Open VI).
, -, .
VI () , , ( ) (-).
(Controls). ,
. , , .
, , ..
- (Functions),
.
.
, , . (.
1.1):
;
,
. 1.1.
;

;
;
.
Tools Palette (. 1.2),
. :
,
, .;
, , ;
. 1.2. Tools
;
;
;
;
;
;
, .
Controls (. 1.3), , Window Show Controls Palette. . Controls
, , , , , ActivX, Internet .
Controls:
Numeric ( ).
;
Boolean ( ).
. 1.3.
;
Controls
String&Table ( ). ASCII ;
List & Ring ( ). , ;

Array & Cluster ( ).


;
Graph ( ).
;
Path & Refnum ( ). ;
Decorations (). ;
Select Control ( ). ;
User Controls ( ). ,
;
ActiveX ( ActiveX). , ActiveX
;
Dialog ( ). ;
IMAQ Vision ( ). ;
Internet Toolkit ( Internet). , ,
Internet (ftp, , telnet, CGI ).

( ) -.
. , DBL , TF , I16 16- .
Functions (.
1.4), Controls
, - .
Functions , Window Show Function Palette.
Functions:
Structures (). ,
For Loop, While Loop .;
Numeric ( ). ,
;
Boolean ( ). ;
String ( ). ;
Array (). ;
Cluster (). ;
Comparison (). ;
Time & Dialog ( ). ,
;
File I/O (/ ). / ;
Instrument I/O ( /). ;
Instrument Drivers ( ). ,
. 1.4.
, , ..,
Functions
GPIB;
Data Acquisition ( ). ;
Signal Processing ( ). ;
Mathematics (). , , ,
;
Graphics & Sound ( ). , ;
Communication (). TCP, DDE .;
Application Control ( ). , ;
Advanced (). ,
.;
Report Generation ( ). , ;
Tutorial ( ). , LabVIEW;
User Libraries ( ). vi;
Select VI ( ). ;
IMAQ Vision ( ). , ;
Image Acquisition ( ). , ;
Internet Toolkit ( Internet). , Internet (ftp, , telnet,
CGI .);
SQL (SQL ). , SQL .

- , , , , , , .
. , . . , , ,
..
/ ( , ) , :
() () (Change to Control,
Change to Indicator);
(Find Terminal) /
(Find Control, Find Indicator);
/ (Show Label, Show Caption);
/ (Data Operations);
/ (Replace);
(Online Help);
, (Create Constant, Create Indicator, Create
Control) .
1.1.
1. LabVIEW NationaI Instruments LabVIEW 7.0 LabVIEW.
LabVIEW.
2. Help Find Examples. , .
3. Browse (). Directory Structure. Apps, Freqresp.Ilb
Frequency Response.VI ( ). (. 1.5).

. 1.5.

4.
Amplitude. ,
, .
, Enter, ,
. .
5. Run . , , .
-
6. -. Window Show Diagram <CtrlE>
.
7. , Help Show Context Help. Context Help , ;
)
Logarithm Base 10, Bode
Plot. Context Help ;

) Context Help More Help



LabVIEW Help ( ). Click here for more help
Context Help.
LabVIEW Help ( ) , , , .
;
)
/ Logarithm Base 10. Context Help ;
) . Context Help
.
8. Context Help ( ),
,
Help Lock Context Help. Context Help ( ) , .
.

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.

?
?
?
-?
?
-?
Controls ()?
Functions ()?
?
-.
.
?
.
?
?
?
.
2
,

:
;
( F);
;
;
.

- (
- ).
-; . , .
-, /
. , . , . ,
- . , Case (), While ( ) .. Add () Subtract () .
. LabVIEW
. / , .
, . ,
. , ,

. , . , , : / /.
:
Numeric ( );
Floating point , .
single (32 bit), double (64-bit) extended (128-bit) precision ( , ).
;
Integer , . :
8, 16 32 . , ;
Boolean , .
:
0 (FALSE) 1 (TRUE);
String , . ASCII
;
Path , . , , LabVIEW
, ;
Array ;
Cluster . ,
, , ;
Waveform , , ;
Dynamic , - . ,
, , .
- / .
- .
.
, . ,
, .
.
LabVIEW -. LabVIEW / , ,
.
Tools
Options Block Diagram.
. .
, .
2.1. F
,
() (F).

1. File New VI, .
2. . . .
3. . F. . F Enter.

- LabVIEW , .
. , DBL
.
! , ,
, .

-
4. -, Window Show Diagram.
5. -, :

6. Multiply () Functions Numeric (


). -.
7. Add () Functions Numeric ( ). -.
8. Functions Numeric ( ).
-. -
. 1,8, 32,0.
9. - .
10. , Window Show Panel.
11. , .

1. :
)
;
) Run, ;
) .
2. , File Close.
2.2.

( = + 273)

(R = 4/5)

( = 273)


( = R 5/4)


(F = 9/5 + 32)


(F = 9/4 R + 32)

(R = U/I)


(R = ( 273) 4/5)


(I = U/R)

10

( = /)

11

()
() () (P = I U)

12

()
() () (P = I U)

13

() () (/) (G = m/t)

14

()
(/3) ( = m/V)

(3)

15

(3) () (3/) (G = V/t)


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.

?
- ?
?
?
?
?
?
Controls ()?
Functions ()?
?
-.
.
?
.
?
3

:
;

.

- .
.
-.
. -
, Shift, Edit Create SubVI.
() .
, .
.
-
. . , .
, - .
Edit Icon (. 3.1).
. / () .
vi Show Connector (. 3.2).
, (/ Add Terminal/Remove Terminal,

3.1. Edit Icon

3.2. Show Connector

90 Rotate 90 Degrees, Patterns .). ,


, ,
, . ,
. .
. ,
. -, Functions () Select a VI ( ), -.
- , .
3.1. F
, .

1. F ().vi.

2. Edit Icon (
). Icon Editor.
3.
4. <Delete>, .
5.
.
6. :

, -

;
)
) F;
) ;
) ,

! ,
<Shift>.

)
;
) Copy from ( ) & W (-) 256 Colors (256- )
- , LabVIEW ;
) Copy from ( ) 16 Colors 256 Colors;
) Icon Editor. .
7. , Show Connector ( / ) . LabVIEW /
. ,
F, LabVIEW .
8. :
) Help () Show Context Help ( )
Context Help ( ) ;
) .
, ;
) . ;
) . , ;
) . F.
;
) . ;
) / . Context Help ( ) ,
.
9. File Save. F.vi.
10. File Close. .
3.2.
,
.

1. , :

) , Controls Numeric ( )
;
;
) Enter
) Visible Items (
), Digital Display ( )
.

2.
:
) , Controls Boolean ( )
;
) Enter ;
) , , ;
) F, .
3. , Context Help
:
a) File VI Properties;
) Documentation () Category () ;
) :
, Demo Read Voltage VI.
4. ,
Context Help :
a) Description and Tip
( );
) :
;
) Tip ;
) ;
) Description and Tip
( );
) :

( ), ;
) Tip F .
5. Context Help, Help Show Context Help.
6. Context Help.
-
7. -, Window Show Diagram.
8. -, .

- Demo Read Voltage VI, I:\Texts\AICiI\for_LabVIEW,


, . , 20 , 20 .
- Convert from Dynamic Data ( ), Functions Express Signal Manipulation. . Single Scalar in Resulting data type.
Multiply (), Functions Numeric.
Read Voltage VI 100.0 ;
Multiply ()
Create Constant ( ). 100 <Enter>.
Functions () Select a VI ( ) F, 3.1. -. .
Select (), Functions Comparison. F .

9. .
10. , .
11. .


12. , , .

13. , Show Connector ( / ).


14. , .
15. , File Close.
3.3. 3.2 , ,
2.2

; (
)

; ( )

10

11

() ()

12

() ()

13


() (/)

14

(3)
(/3)

15

(3) (3/)

: 1) , 1 9, 11, 12,
Demo Read Voltage VI, i:\Text\AICI\for_LabVIEW;
2) 10, 13 15 ,
, , Random Number (0-1), Functions Numeric.
0 1.


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
).

?
?
?
?
?
?
-?
Select?
?
, Icon Editor (

4
LabVIEW
:
LabView;
1 ;

For ( );
.

Case (),
. - , . LabVIEW
: While ( ), For ( ), Case (),
Sequence () (), Event (), Formula Node ( ).
While ( ). While ( ) , .
- While , .
, . , TRUE. Stop If True (
).
, , .
.

. Continue If True ( ).
For ( ). For ( ) .
For Functions Structures. , N , , .
, , .
0.

.
. , , ,
, . : Shift Register (
) Feedback Node ( ).
. .
, .
.
. LabVIEW
.
Add Shift Register ( ).
, .
, , , , .
.
, , . . 4.1 .

. 4.1. For

.
, , While
For ,
, . , . .
While For, Feedback Node ( ) Structures (). , , .
, , ,
.
Case. Case -.
, . Case :
?. , , , .
- (True \ False \ ..). - . True False. - . True False, .
Case Select - (. 4.2). Case TRUE (. 4.2, ).

)
. 4.2. Case :
TRUE; ;
FALSE

Case,
(. 4.2, ).
, - (. 4.2, ).
, , . , , , , . ,
. , LabVIEW .
, .
Formula Node. Formula Node
-. , . . ( Add Input Add Output), . ;.
. -
if- then .

Sequence Structure. Sequence Structure - . -


. Add Frame After, Add Frame
Before. ( Add Sequence Local variable), . , ,
.
4.1.
,
1 .

1. , :

, Controls Numeric, - .
, ControIs Numeric.
.
-
2. -, .

-. Functions Select a VI , , 3.2.


Temp Scale ( ),
Create Constant. FALSE TRUE .
- Wait Until Next ms Multiple, Functions Time and Dialog. Wait Until Next ms Multiple ( ), , , , , , . Create Constant. 1000. 1000 (
).
- Increment (), Functions Numeric.
1 .
3. .
4. .
5. .
4.2. ,

,
While.

Y = X 2 + Z 3 XZ + 10
Formula Node Formula Express,
Functions Arith/Compare
(/)

, Formula Node
y = sin (x),
, z = y + A, z = y A

, Formula Node
Y = x + cos (x) 10, Y >= 0,
Z = sqrt(Y)

ase, , 2- , 0 ,
,


;
2, 3 7 , . Sequence Structure Time
Delay, Functions Time and
Dialog

,
, 3.2,
.

Y = X 5 + cos2(Z) XZ + 10
Formula Node Formula Express,
Functions Arith/Compare
(/)

ase, , y = ax + 14, a = const,


y 0 , ,

10

, 70
.

11

, 70 FOR

12


;
5, 8 12 , .
Sequence Structure Time
Delay, Functions Time and
Dialog

13

Y = 10X 5 + sin2(Z) XZV


Formula Node Formula Express,
Functions Arith/Compare
(/)

14

,
While.

15

,
, ,


1. ?
2. Sequence Structur? Sequence
Structur?
3. While ?
4. 30 2 ?
5. ?
6. ?
7. 1 ?
8. Case? Case?
9. Formula Node? Formula Node?
10. For.
5
LabVIEW
:
;
;
;
.


. . . ()
(), . ,
.
, , : , .
.
.
, , , .
. , . 0. , 0 (n 1), n
.

. , , Controls Array & Cluster . .

. - , Functions
Array Array Constant .
.
. (2D) . ,
. , 6 ()
4 (). 24 (6 4 = 24).


Add Dimension ( ). . .
. For While . .
. , , , ,
.

/
Disable Indexing ( ). , , ,
.
, For , LabVIEW
. While . , , / Enable
Indexing ( ).
(2D) . For,
. , ,
.

. , Functions Array. :
Array Size ( ) . n, Array Size n .
, Array Size 3.

Initialize Array ( ) n- , element. ,


. , Initialize Array : element
4, dimension size ( ) 3, , .

Build Array ( ) n- . ,
. , , Build Array :

, , Concatenate Inputs (
).

Array Subset ( ) , , index,


, length (). , Array Subset,
2 index 3 :

Index Array ( ) , ,
index. , Index Array 2,
index 0.
Index Array
. . Index
Array index. index , .
index , . ,
, :

Index Array , index ()


0:

5.1.
, , .

1. , :
) ControIs Array & Cluster ;
) ;
) , Controls Numeric;
) , 10 ;
) <CtrI> , , ;
) ;
) , , ;
) ,
Representation, 132;
) .

-
2. -, .

Random Number (0-1), Functions Numeric. 0 1.


For, Functions Structures. 10 . 10.
Array Subset, Functions Array. , , , ,
.
3. .


4. , .
For 10 . . 10 . , , , . ,
, , .
5. .
5.2.

,
, 10 .
, 0
9,
1
8, . Reverse ID Array,
Functions Array

,
,
0 1 ..,
.
, {1, 23, 10, 5,
7, 11}, {23, 50,77}.
Decimate ID Array, Functions Array

, ,
80 , , 15 60.

,
,
.

,
, 3 10

,

. .

Sort 1D Array,
Functions Array

,

. Array Max & Min,
Functions Array

,

. Array Max & Min,
Functions Array

,
, 4 5

10

.

,
11

,
5 6,
4 5.

12

,
.
.
Transpose 2D Array, Functions
Array

13

,
, 20 .
, 0
9,
1
8, . Reverse ID Array,
Functions Array

14

,
, ,

15

, 5 10 Initialize
Array, Functions Array


1. ?
2. ?
3. ?
4. ?
5. ?
6. ?
7. For?
8. ?
9. ?
10. ?
11. 0 1?
12. ?

6
. .

:
;
;
;
, .

, , . (, ..).
- / , . / 28. 28 , , -

/ . , ,
.
. Controls
Array & Cluster . . .
, .

. ,
. 0,
1 . .
,
Bundle () Unbundle () -.
, , ,
Reorder Controls In Cluster. ,
.
(1) , (2) .
Click to set to .
. . ,
() .

. - , Functions
Cluster Cluster Constant , .
. , Functions CIuster. Bundle () Bundle by Name ( ) . Unbundle () Unbundle by Name ( )
.
, Cluster Tools ( ). Bundle Unbundle / . Bundle by Name Unbundle by Name /
.
, LabVIEW
, , .
(Cluster to Array). (Array to Cluster).
N
N . (..
0). ,
.
N N
.
(Cluster Size) , -

, , . 9. , , LabVIEW . , , , -,
, , .
6.1.

1. , :

) ;
) Controls Array & Cluster ;
) , , ;
) .
Change
to Indicator;
) ; , .
2. .
:
) ,
Reorder Controls in Cluster;
) , .

-
3. -, .

Functions Cluster Unbundle. . .


Functions Cluster Bundle. .
Functions Cluster Unbundle by Name.
. .
,
Select Item.
Functions Numeric Increment. 1 .
Functions Boolean Not. 1.
Functions Cluster Bundle by Name.
1 .
. ,
Select Item.
4. . vi.
5. .
6. - .
7. .

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.

?
?
?
?
?
?
?
?
?
?
?
, ?
/ ?
?
?
?


:
For ;
, For ;
.


. (Waveform Chart) ( )
. Controls Graph. . 7.1
: .

. 7.1. :
1 (Label); 2 Y (Y scal); 3 X (X scale); 4 (Scale legend); 5 (Graph palette); 6 (Plot legend)

: strip chart (), scope chart () sweep chart (). strip chart.
Advanced Update
Mode .
strip chart , , . scope
chart , .
sweep chart, scope chart, ,
.

. Bundle (), Functions CIuster. , -, ,

Bundle
.

.
. . 7.2 .
(Waveform Graph) (XY Graph) Controls Graph. , y = f (x), , X. , .

. 7.2. :
1 (Plot legend); 2 (Cursor); 3 (Grid mark); 4 (Mini-grid mark); 5 (Graph palette);
6 (Cursor mover); 7 (Cursor legend); 8
(Scale legend); 9 X (X scale); 10 Y (Y scale); 11 (Label)


, X 1 x = 0.
0, d .
Plot legend ( ).

.
, , X 1
= 0.
0, d , . , Y. Bundle, .
Build Array . Build Cluster Array,
.
. , x .
, , .
. , ,
. , . , .
7.1.
, 0,25 10 . . -

, . , .

1. , .

) (Waveform Chart) Controls Graph .


.
.
, (chart legend) Plot 0.

F .
() .
) Properties. Chart
Properties ( ). Format and Precision Digits of
precision ( ) 2.

) Plots .

) (Waveform Graph) Controls Graph . .


plot legend.
0 , 1 .
.
.
, , .
-
2. -, .

.vi, 3.2, -. .
Functions Time & Dialog Wait Until Next ms Multiple. 250, For 0,25 .
Functions Array Array Max & Min.
.
Functions Analyze Mathematics Probability and Statistics Mean VI. .
Array Max & Min Mean VI
Create Indicator , .
Functions Analyze Mathematics Curve Fitting () General Polynomial Fit
( ). .
Functions Cluster Bundle. <Ctrl> . .
x0= 0, x . dx = 0,25 , 0,25 .
Functions Array Build Array.
.
3. .

4. .

.
5. - .
6. :
) Plot legend Common Plots Scatter Plot ( );
) Plot legend r Plots . .

7. .
7.2.

, 5 10

, .

, 11 4

, 0 100 ( 7 ) ,
,
.
, ,

,
,

, ,
. ,

,
( ).
2 (
) 1. 1 , , , , . 1

, 20
2

, ,
10 . ,

10

, ,
10 . ,

11

, 5 6 4 5. ,

12

, ,
2- .

13

, 3 7

14

, 0 100 ( 7 ) ,
,
.
, ,

15

, . ,

1.
2.
3.
4.
5.
6.
7.
8.

. ?
. ?
?
?
?
?
?
, ?

2. . /

8

:
;
;
.


. ASCII . . :
.
.
. ASCII,
.
.
, .
.
, Controls String & Path.
.
.
. Visible Items Scrollbar ( ).
. .

- ASCII There are four dis , - play types


(Normal Display)
.
- \ - There\sare\sfour\s

display \stypes

(\
Codes Display)
* - ****************
-
****************
(Password Display)

- ASCII 5468 6572 6520


16--
6172 6520 666F
ASCII
(Hex Display)
. - , Functions String.
:
String Length , . , String Length
19 : The quick brown fox ( ).

Concatenate Strings ( ) . . , :

Concatenate Strings : The quick brown fox jumped over the lazy dog (
).
String Subset () length, offset ().
0. , ,
String Subset offset = 4 length = 5 : quick,
Match Pattern ( ) ,
regular expression, offset, , , . , match substring ,
offset past match ( ) 1. , regular expression
( ) , VOLTS DC: + 1.22863 + 1.
Match Pattern before substring ( ) VOLTS DC, match substring ( ) : after substring ( ) + 1.22863 + 1, offset past match 9.
.
Build Text Express Format Into String ( ). .
. - Format Into String.

- Build Text, Functions Express Output,


. , -.
Format Into String , , . .
Scan From String. Scan From
String , , 0-9, +, , , , . , input string, , initial search location ( ). , , .
.
. , Controls List & Table,
. .
. . 8.1 .

. 8.1. :
1 ; 2 ; 3 ;
4 ; 5 ; 6
; 7

, .
. , Number
To Fractional String, Functions String Number Conversion. . ,
.

8.1.
, .
.

1. , .
.

) 2 \
Codes Display.
) 132.
-
2. -, :

Format Into String, Functions String.


.
) Format Into String Edit Format String .
) Use specified precision ( ) 4 .
) . LabVIEW %.4f, .
) %.4f <Shift + Enter>.
, .
) \ Codes Display . \.

Concatenate Strings, Functions String.


.
String Length, Functions String.
.
Match Pattern, Functions String. 2 : ().
) regular expression ( )
Create Constant, <Shift + Enter>.

3. .
4. .vi. .

5. .
: ,
.
: 2. .
6. .
8.2. ,

,
5 40
.

,
3 10
.

, 3
,

,

,
5 6,

, 2

, 2

,

, 2

, 4 , ,

,
,

10

, 2 ,

11

, 3

12

, 4

,

13

,
5 8 .

14

, 2 (1 , 2 )

15

,
6 8,

1.
2.
3.
4.
5.
6.
7.
8.

?
.
.
?
?
?
? ?
?
9
/

:
/, , ;
, ;
/ .

/ .
/ Functions File I/O :
.
/ ().
/ () .
.
.
, .
/, , : (high
level File I/O), (low level File I/O) (advanced File
I/O).

/ . / Functions File I/O. / . /


/ (). / . / : .
/ :
Write to Spreadsheet File ( ) 2D ID . . .
,
.
Read From Spreadsheet File ( )
start of read offset 2D .
. , .
Write Characters to File . .
Read Characters From File number of characters start of
read offset. .
Read Lines From File start of
read offset. .
Binary File . .
- , ,
. /
.
/ . /
Functions FiIe I/O. / , .
, .
/ :
Open/Create/Replace File (// ) ,
. file path ( ) , , .
Read File , refnum, data,
count . ,
pos mode pos offset, .
Write File , refnum. , pos mode pos offset
.
Close File refnum .


. , Simple Error Handler VI ( ), Functions Time & Dialog. error in error out .
LabVIEW . LabVIEW ,
. LabVIEW , ,
. , LabVIEW
.
.
, ( ) /, . ASCII .
.
file path Open/Create/Replace File VI . , , , , . , H:\Laboratoria\lab1.vi Laboratoria.
.
, , , . C Tab constant , end of line . Functions
String.
Format Into File , ,
, .
Format Into String Build Text Express VI Write Characters
To File ( ) Write File ( ).
Format Into File , .
. Format Into String Write File.
-, Open/Create/Replace File VI .
For . Format Into String .
Tab constant () End of Line Constant ( )
.

(Advanced File I/O) Functions File I/O Advanced File Functions .


9.1.
, ,
.


1. , :

) Controls String & Path .


;
) Visible Items
Scrollbar ( ).
-
2.

-:

Functions Select a VI cmp.vi, 8.1,


-. .
- Open/ Create/Replace File VI,
Functions File I/O. .
) prompt () Create
Constant . , ;
) function Create
Constant. create or replace .
Write File, Functions File I/O. .
Close File, Functions File I/O. .
Simple Error Handler VI, Functions Time & Dialog.
.
3. .vi.


4. .
.
5. .txt Save .
, .
6. .
9.2.
, , 9.1, .

7. ,
Controls String & Path.

-
8. -:

Functions File I/O Open/Create/Replace File VI.


, .
) prompt Create Constant
;
) function Create Constant . open.
Functions File I/O Read File. , count.
Functions File I/O Close File. .
Functions Time& Dialog Simple Error Handler VI. , , .
9. .vi.

10. Browse () .
11. .txt Open .

12. . , , .
9.3. ,

,
5 40

, 3
.

,
5 6,

, ,
, .

,
3 10

, 2 (1 , 2 )
.

, ,

,
.

10

,
.

11

, .

12

, .

13

, 4
.

14

,
.

15

, .


1.
2.
3.
4.
5.
6.
7.
8.
9.

/? ?
/ .
/ .
?
Format Into File?
?
LabVIEW /?
/?
, ?

3. ADAM-4000.
, ,

10
,

: , ADAM 4000.

. (. 10.1),
, :
1) ADAM, ;
2) - ADAM-4011;
3) RS-485/422 RS-232;
4) , , ADAM-4011.
1 , - ADAM-4011, .

. 10.1.

2 / . , ,
() (). RS-485.
3 4000 RS-485 RS-232.
4 , LabVIEW.
- ADAM-4011. (. 10.2) J, K, T, E, R, S B . ,
15 , 50 , 100 , 500 , 1 2,5 ,
20 ( 125 ). ,
- , ,
.

. 10.2. ADAM-4011

ADAM 4000

. ADAM RS-485 RS-485/RS-232.
, , .
.
. COM- RS-232.
.
. , . Advantech devise manager.
, .
, .
. (LabVIEW, Delphi, C++ .)
Advantech devise manager , ADAM.
. (. 10.3).

: , .
( ) , , .
. - :
, (. 10.7), .

. 10.3.

. (. 10.4) ,
DevNum ( Advantech), (DriverHandle), ,
(Driver error).

,

(Device Manager) Advantech

. 10.4.

. 10.5.

(. 10.5) .
Chan&Gain
. Chan&Gain (. 10.6), Channel
, Gain ( ).
. (. 10.7) LabVIEW,
ADAM-4011, , . ADAM-4011 .
.
, DriverHandle.

. 10.6.
Chan&Gain

DriverHandle .
Chan&Gain , .

. 10.7.

TrigMode (0 , 1
).
error in .
Voltage ( ADAM-4011 ).
error out .
. ,
DriverHandle.

DriverHandle .
Port .
BitPos .
State .
error in .
error out .
. .
,
,

.
.
.
, , .
, , .


1) com- .
2) .
3) .

4) , ( 3-4 ).
5) .
6) , (Window Show block diagram) Ctrl + E.
7) .
8) , .

1, 3, 6, 11

(, progress bar,
) .

2, 7, 12, 13

4, 9, 14
5, 8, 10, 15

1.
2.
3.
4.
5.
6.
7.
8.
9.

.
?
.
ADAM-4011?
ADAM-4011 ?
?
?
.
, ?
11

: , ADAM 4000.

. (. 11.1),
, :
1) ;
2) - ADAM-4080D;
3) RS-485/422 RS-232;
4) , 1-2.
1 , - ADAM-4080D, .
2 , . , . , , .
RS-485.
4 , LabVIEW.

. 11.1.

- ADAM-4080D. , ADAM-4080D (. 11.2), , . , . 5 50 .


. ( 0) 0 1 ( ), 0 5 ( ),
( 1) 3,5 30 ( ), 0 5 ( ).
.

. 11.2. - ADAM-4080D

. . 11.3.
, , .
.
. - :
, ,
.
(. 11.4) , DevNum ( Advantech),
(DriverHandle), , (Driver error).

. 11.3.

. 11.4.

. 11.5.

(. 11.5) .
Chan&Gain . . (. 11.6) LabVIEW,
ADAM-4080D.
. , DriverHandle.

. 11.6.

DriverHandle .
Chan&Gain , .
TrigMode (0 , 1
).
error in ;
Voltage .
error out .


1) com- .
2) .
3) .
4) .
5) ,
(Window Show block diagram) Ctrl + E.
6)
.
7) , .
8) .

1.
2.
3.
4.
5.
6.
7.
8.

.
?
.
ADAM-4080D?
?
.
, ?
ADAM?
12

:
, ADAM 4000.

. (. 12.1),
, :

1) ;
2) - ADAM-4018;
3) RS-485/422 RS-232;
4) ( ), .
.
1 , - ADAM-4018 .
2 . 8 ,
() ().
RS-485.

. 12.1.

4 , LabVIEW.
- ADAM-4018. (. 12.2) J, K, T, E, R, S B .
8 , 15 , 50 , 100 , 500 , 1
2,, 20 ( 125 ).

. 12.2. 8- ADAM-4018

. 12.3.

. . 12.3.
. - :
, (. 12.6), .
(. 12.4) ,
DevNum ( Advantech), (DriverHandle), , (Driver error).

. 12.4.

. 12.5.

DriverHandle .
Chan&Gain , .
TrigMode (0 , 1
)
error in .
Voltage ( ADAM-4011 ).
error out .
.
DriverHandle.

DriverHandle .
Port .
BitPos .
State .
error in .
error out .

. , DriverHandle.

. .
. :
= ((P(t) A (t t))/P(t),
, :
, /

, 1

> 2,5
0,5 2
< 0,5

0,000656
0,0008
0,0012

P(t) :
t

P(t)

20
10
0
10
20
30
40
60
80
100

0,001027
0,0026
0,006107
0,012271
0,023368
0,042417
0,073749
0,19919
0,47359
1,01325

. 12.6.


1.
2.

com- .
.

3. .
4. .
5. .
6.
.
7. , (Window Show block diagram) Ctrl + E.
8. .
9. , .
10. .

1.
2.
3.
4.
5.
6.
7.
8.

.
?
.
ADAM-4018?
?
?
, ?
?

4. ,


13

: , .
: .

. (), R
0,05 , .
Q, r :

T (r, ) 1 T T (r, )
r
=
+ Q () (r ), > 0, 0 < r < R,
r r

1, = 0;
1, r = 0;
() =
(r) =
0, > 0;
0, r > 0.

T (r, 0) = T = 0.

T (0, )
= 0, T (, ) = 0,
r
, , ; T ; ;
(), (r) - .
:
( r , ) =

r2
Q
exp
.
4
4a

r a , . 13.1. Tmax, max .


T(r, ) :

Q
T ( r , )
=

2 2

r2

r2

1 e 4 a = 0.
4 a

(13.1)

, ,
r2
. ,
4a
. , max, R,

, = =

a=

R2
.
4 max

(13.2)

(r, )
max

max

. 13.1
:

Q
4e maxTmax

(13.3)

, 13.2 13.3 . :

a=


R2
a 0
4 0
max


Q
; =
0
4Tmax

max

(13.4)

. 13.1

13.1.

0/MAX

0/MAX

0,01

0,01

0,0037

0,09

0,0944

0,0347

0,02

0,0202

0,0074

0,10

0,1055

0,0389

0,03

0,0305

0,0113

0,11

0,1167

0,0429

0,04

0,0408

0,015

0,12

0,1280

0,0471

0,05

0,0834

0,0188

0,13

0,1395

0,0513

0,06

0,0619

0,0228

0,14

0,1511

0,0556

0,07

0,0727

0,0267

0,15

0,1629

0,0599

0,08

0,0834

0,0307

0,16

0,1748

0,0642

. 13.2.
. ( ) . 3,5 , (
), R = 6 . K
. r = 5 , . , , .
. 13.2.

PCI-911DG ADLINK. ,
T(R, ) . K LabVIEW. , T(R, ).
, 13.2 13.4.

1. l .
2. R .
3. R .
4. U = 12 .
5. .
6. .
7. LabVIEW.
8. LabVIEW VI, (
).
9. - .
10. .
11. , .
12. K (
). .

13. ().
, .
14. max Tmax, , .
14. . 13.1 , .
15. (13.4) .
16. 11 16 3 .
17. .
18. 0,95.

, 2/

, /( )

Tmax, K

max,

0,

Q = P0, /

P, /

R,

R,

U,

R,

, , .
.
.
13.2 .
.
13.2.

1.
2.
3.
4.
5.

1
2
3

1. .
2. .
3. ?
4. 13.2 13.4.
5. ?
6. .
7. .
8. ?
9. .
10. Tmax ?
11. max ?
14



: .
:
1. .
2. -4 .
3. .


, , . . r
q .
r
q , ,
.

+
. , () , .. , . .
, , :
q = gradT .

(14.1)

r
, q -

, . ().

. . 14.1.
q
1
h
2
. 14.1.

, , r
q . (14.1) :
q=

T1 T2
.
h

(14.2)

r
q , , T1 T2
h, :

=h

q
.
T1 T2

(14.3)

-4. -4, . 14.2, : 1 ; 2 ; 3 ; 4 ; 5 ;


6 ; 7 ; 8 ; 9 ; 10 ; 11 ; 12 ; 13 ; 14 ; 15 ; 16 ; 17 .
1 , ,
4, 2 . 15, , .
2 , () . , 16, .
, , 17 . . ,
, 4 .
3 16. r
, , q
104 /2.
4 1 7.
.
7 6, 8, 9 14.
, ,
9. .

. 14.2. -4

() 5, , . () , , .
6
.
13
.
, ,
.
8 . 4 , : ( 13)
5. .
14 ; , 9; 14
7.
11 14 8
.
2 3 16,
13.
0 100 .
10, 6, 7.
10 . 10
.

10 9, 8, 5103 /2.
, 0,005 0,5 0,02
10 . . . 14.1.

14.1

,
/( )

0,01 0,1

60 120

0,5 5

0,1 1,0

60 120

1 5

1,0 1,5

100 120

3 8

1,5 2,5

100

5 10

2,5 5,0

100

8 10

, , ,
.
:
5 . , , 17, .
1 (. 14.3) , 2.
. ( ),
, ( ).
1 50 2000 ,
.
q

1

. 14.3.


(. 14.4):
-4;
,
-4;
(), () -4,
();

. 14.4.

K(T1)

. 14.5.

, / ( ), ;
, 4.
PCI-1202 ISP DAS () 32 (10+10) 16 ( , ), 16 .
,
, LabVIEW.
(. 14.5):
1 ;
E2 ;
3 ;
4 .
. n 100 ,
n .
.
:
2

2
q T1 T2
+
,
= k + h +

q h T1 T2 T1 T2

q, h, 1 , 2 , , ; k ,
.
, ,
LabVIEW, . 14.6.

. 14.6.

1. , .
(c ).
2. -4 15 .
3. 10 -4 3 (. . 14.2) 2
11 .
4. 3 .
5. ( , ). 2-3 .
6. .
7. ,
.
8. ( ), .
14.2 .
9. -4 30 . 7, 8.
10. , .
14.2

25

40

,
/(K)

, %

1.
2.
3.
4.

, .
( . 14.3).
. 14.2 .
.

1. ?
2. (14.1) ?
3. ?
4. -4?
5. -4?
6. ?
7. ?
8. ?

9. ?
10. ?
11. ?
12. ?
13. , ( )
.
14. ?
15. .

1. , .. LabVIEW / .. , .. , .. . . : , 2004. 384 .


2. , .. LabVIEW / . .. , .. .
. : -; ; , 1999. 268 .
3. LabVIEW Express. 1. . : National Instruments Corporation, 2003. 354 . (
ni.com; WWW.labview.ru).
4. , .. , : . . 1 :
LabVIEW // .. , .. , .. . : - . . . -, 2005.
44 .
: , . 360, I/TEXTS/AICI/Liter

..
1. LabVIEW.

1.
LabVIEW
2. ,
.
3. ...
4.
LabVIEW .
5. LabVIEW...............
6.
. .

7. ....
2. . / ..
8. .......
9. / ........
3. ADAM-4000. , ,
10. , ,
.
11.
..
12. ..
4. ,
..
13.

...
14.
..

3
5
5
12
18
27
35
44
50
61
61
69
79
79
86
91
98
98
103
114

You might also like