Документ взят из кэша поисковой машины. Адрес оригинального документа : http://genphys.phys.msu.su/rus/lab/vtek/VTEK-Zadacha_35.pdf
Дата изменения: Sun Sep 4 01:19:11 2011
Дата индексирования: Mon Oct 1 23:28:37 2012
Кодировка:




LabVIEW

2011


1

......................................................................... 2 1. LabVIEW 2. LabVIEW 3. DAQ- 1. LabVIEW 2. 3. 10 12 18 2 3 5 9

4. 23 5. 25 26

. LabVIEW........................................................... 26 ...........................................27 ................................................27 ...........................28 28


-2-

LabVIEW
.
: , . , , . LabVIEW - ().

1. LabVIEW
. , . , , , ­ , , , .. : , Pascal , . , , , , , . , , . LabVIEW (Laboratory Virtual Instruments Engineering Workbench), National Instruments (). ( , , , ..). , CERN, Lawrence Livermore, Oak ridge , - (, NASA, Jet


-3propulsion Laboratory). LabVIEW , , . , LabVIEW , , , ActiveX . LabVIEW (DLL), LabVIEW DLL, , . LabVIEW TCP/IP UDP, . LabVIEW , . , LabVIEW , , . LabVIEW . LabVIEW . , , , (help). LabVIEW , . .

2. LabVIEW.
LabVIEW () /Virtual Instrument (VI), ( ). LabVIEW , , , , .., LabVIEW , . vi. (. .1). 1. / Front Panel, , .. ­ /Controls, ­ /Indicators ­


-4. LabVIEW , ­ , , , .. ­ , , ... 2. - /Block diagram . , ( / .1).

1 2 /controls ( ) 1

3

4 4

.1 , - (5) , x y

LabVIEW . (SubVI / ), /. . - "" . ­ / , -. , .


-5 ­ -, / . , . , LabVIEW, , , , , . LabVIE . (. : W).

LabVIEW / . , LabVIEW, . Functions -. , Numeric, , Functions >> Programming (. 6). ( , e .).

3. DAQ-.
LabVIEW , . ( GPIB), . - LabVIEW. , LabVIEW , , PCI, , USB. DAQ- ( Data AcQuisition = ).

DAQ-.
DAQ- - (), ­ ­ . ( -


-6 - ­ ). . . . , (.2), U ­ (- .3). , - . , U .. N 2N ­1, . , . N (N ) .

1/2 + 1/4 ­1/8

1/2 + 1/4

U0



U
1/2

- , U0



0

t

.2.



, .2, U 1/2 U0 -


-7. . 1/4U0 3/4 U0. U, . , 1/8 U0 , 5/8 U0. N N , . , . .3 , .
U U

.3 . f . ­ ­ ­ ­ N-

­ , ­ . USB 6009 N = 14 , 2 14 = 16384 . , 10 1.2 . , 1 ( 2, . 17 ), 7.73 , , .


-8 . , . f , . f = 48 . ( ) 10 , 4.8 .
. , T, , N , t = T/N . N. 1.5 ­ 2 . , 200-500 . 100 .

USB 6009 , 8 , , , . , , 3, 48 , 24 .


-9-



.4

LabVIEW , Windows, . (.4). , Blank VI ( ), New. , ­ , ­ - (.5).

.5.


- 10 -

1. LabVIEW
, .1. , . , "Sum X+Y". - Functions. Functions >> Programming >> Numeric (.6).

.6 Numeric

Numeric Add. - ( ), , -, . . ( ) - ­ , (Wiring Tool) , Create >> Control ( Create >> Indicator).


- 11 - , , ­ Control (, , ) . - Control - Indicator. - , . . , - Window >> Show Front Panel (.5) Ctrl+E. (Run) , , , Ctrl+R: "" , - . , Error list / . . . . -, , . Delete. , . Show error, , -. . (Wiring Tool) , , . . (Formula Node), LabVIEW C. .7. Formula Node Functions >> . 7. Structures. ( ) -


- 12 , . , . Add Input ( ) Add Output ( ), (x, y) (z) ( ). . (;). , , . ** . - *, / , + , ­ , LabVIEW Help. , File >> Save, Z: [Students on Pc1 (Z:)], , , 101 >> Ivanoff Save, " Sum X+Y ".

2. .
USB 6009, USB- (.8). 8 ±1 ±20 , 2 , 12 / .
.8. USB 6009 DAQ ; ; ; USB .


- 13 . DAQ- , / , , (.9). : 1) Single-ended mode / () : "" ( 1, 4, 7, 10, 13 32, GND ( . ground) 8 2, 3, 5, 6, 8, 9, 11, 12 ( ai0 ­ ai7). , ­ "". 2) Differential mode / () : 2-3, 5-6, 8-9 11-12 (, ai0 ­ ai3). , . . 11, 12 ai3 1 . National instruments
Data Acquisition (DAQ) USB terminal /
.

29 / - - PFIO - - 13
GND ai 0 ai 4 GND ai 1 ai 5 GND ai 2 ai 6 GND ai 3 ai 7 GND ao 0 ao 1 GND GND ai 0 + ai 0 ­ GND ai 1+ ai 1 ­ GND ai 2 + ai 2 ­ GND ai 3 + ai 3 ­ GND ao 0 ao 1 GND

32


31 +5 V 15 ao 0 ao 1 12 ai 7 9 ai 6 6 ai 5 3 ai 4

0V 14 11 ai 3 8 ai 2 5 ai 1 2 ai 0

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

17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0 6 P0.7 P1.0 P1.1 P1.2 P1.3 PF I 0 +2.5V +5 V GND

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

GND 10 GND 7 GND 4 GND 1 GND

. 3
1

­ ai 3 +

. 2
­ ai 2 +

. 1
­ ai 1 +

. 0
­ ai 0 +

Analog input (ai) / output (ao)

.9


- 14 . . USB +5 ( ) 200 ( 31). . 27 31 DAQ 31 . DAQ- LabVIEW , DAQ-. , , - DAQ Assistant. DAQ Assistant ( Functions >> Express >> Input), -, . - DAQ Assistant DAQ-, Analog Input ( ) Voltage (). DAQ-, , ai0 ­ ai7 (.10). ai0 ­ ai3. ai3 , , , ai2, Finish. (.11). Signal Input Range ( ) Max: 10, Min: ­10. "N samples" (N ) Acquisition Mode ( ) N , N Samples to read N = 1000.

.10.


- 15 Test . ai2 , -

.11. .

1000 1-2 (.12). ai2 31 (+5 ) GND (). 5 . , .12. Test.


- 16 Close Test (.11), . DAQ- . , DAQ Assistant. , (.13). Data Create >> Numeric Indicator. ( , ) . . Controls Controls >> Numeric Meter (.14). - , Data. 0 ­ 10 , . .13 : - . . Properties -

.14. :


- 17 , . 1000 , Number of samples 2 ( ). Create >> Constant, 2. .13. "­" GND "", "+" 2 (ai2) +5 . . , 5 , (.14). -. , , . - . Controls >> Modern >> Decorations. , . - ­ . -: , , , ( ). (, ), , . 5 - 7 , . (). DAQ- USB 6009, , 1. . «» . 1 DAQ- USB 6009 ,
, ±20 ±10 ±5 ±4 ±2.5 +2 ±1.25 ±1 25°C () 14.7 7.73 4.28 3.59 2.56 2.21 1.70 1.53


- 18 -

3. .
A V
Rx
R = U / I.

2, . .15. : DAQ (ai3). 1 , ai3 ( 11-12), , . .15 : . . , () . , , , R, File >> Save as ( ). DAQ Assistant, - . DAQ Assistant (.16), . Add channels / Current / (.16). Resistor value (ohms) / () 1 ( 1 ai3), Signal Input Range / ±200 ±1. , Shunt Resistor / External / . Test . .

+


- 19 -

.16 .

USB 6009 - . data DAQ Assistant - , , ­ . Split Signal Split Signal ( Functions >> Express >> Signal manipulation). Data . Split Signal . (. 17). , ­ ( , . .16).


- 20 -

U = ai2 I = ai3

.17 : -

, , , DAQ, .16. . , Divide. .17. . , , Absolute Value, , Divide, Functions >> Numeric.

.18 :


- 21 .18. 2 . , 0.1 ­ 1000. Properties (). Scale () Logarithmic. Scale range (). , . 11-12 (. ai3) , 8-9 (. ai2) . , +5 , , . . 15, 19.

29 PFIO 13 GND 10 GND 7 GND 4 GND 1 GND


30 0V 14 AO 0 11 . AI 3 8 . AI 2 5 . AI 1 2 . AI 0

31 +5 V 15 AO 1

. 3
1 ­ AI 3 +

­ AI +

. 1
­ AI 1 +

6 . AI 5 3 . AI 4

. 0
­ AI 0 +

.19 :

Rx

. 2

12 . AI 7 9 . AI 6

.20


- 22 ( 8 9). , (.20). , DAQ- USB 6009, 1. , 1 , , . (. 5) . , U I R. , , , . . . , 1) - ( Rx), 2) - ( Rx). , . Rx, . , , , 5.


- 23 -

4.
4 5 1-3. , , . : 2 (.13).

.21. : -

LabVIEW , Functions >> Mathematics >> Prob & Stat. ­ Std Deviation &Variance, (mean) (Std Deviation) , . Std Deviation&Variance. - / . , "View as Icon", . / , Size to Text, .


- 24 -

.22. :

.21, 22. , DAQ Assistant Std Deviation&Variance , , data, , Std Deviation&Variance. , Number of samples. = s / N , s ­ . +5 ( 31 GND). N ­ , N = 2 5, 10, 100... N 2-3 . (.23). DAQ-.


- 25 -

5,00
N=5

5,02

5,04

5,06

5,08

6,00

N=50 N=1000
.23. .

, 2. DAQ- "" . , , , , .

5.
1) 3 (.17). , - . . , ­ R, ­ , R . 2) . 1. . , , .


- 26 -


1) ( - ). 2) ­ . 3) LabVIEW. 4) . : ; , , , , , , . ( , , ), . , , : , . (, ).

. LabVIEW.
LabVIEW ( . LabVIEW (, Pascal .), . . , , , . , . , .


- 27 LabVIEW , . : Numeric ­ Integer ­ (). Float ­ (). Boolean ­ , 0 (FALSE) 1 (TRUE) (). Array ­ , .. , . Waveform ­ ­ , , , . Dynamic ­ , - . , , , . / . , , . . , ­ , (Numeric), (Array), (Waveform). . LabVIEW Funtions , , (+), ( ) .. , - . LabVIEW - C, (Formula Node). , , , , . , .


- 28 , LabVIEW , . , , . , , , -

. , . . , I 64 (64 ) SGL (32- ) (.24). SGL, I 64, , .

integer single

.24.


. LabVIEW / . . .: , 2004. .. LabVIEW 7: . .: , 2005. .., .., .., .. : LabVIEW 7. .: , 2005 .., .. . .: .-. , 2002.