Sie sind auf Seite 1von 56

TM

LabVIEW

National Instruments , ,
119361 . , . , .42 1101
: + 7(495) 7836851
: + 7 (812) 9514418
: + 38 (068) 3942122
: + 371 (22) 388786
: +374 (10) 219782
: info.russia@ni.com

Warranty
The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects in materials and workmanship,
for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace software media that
do not execute programming instructions if National Instruments receives notice of such defects during the warranty period. National Instruments does not warrant that the
operation of the software shall be uninterrupted or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of the package before any equipment will be accepted
for warranty work. National Instruments will pay the shipping costs of returning to the owner parts which are covered by warranty.
National Instruments believes that the information in this document is accurate. The document has been carefully reviewed for technical accuracy. In the event that technical
or typographical errors exist, National Instruments reserves the right to make changes to subsequent editions of this document without prior notice to holders of this edition.
The reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this docu
ment or the information contained in it.
EXCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS RIGHT TO RECOVER DAMAGES CAUSED BY FAULT
OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER.
NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL
OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
This limitation of the liability of National Instruments will apply regardless of the form of action, whether in contract or tort, including negligence. Any action against National
Instruments must be brought within one year after the cause of action accrues. National Instruments shall not be liable for any delay in performance due to causes beyond its
reasonable control. The warranty provided herein does not cover damages, defects, malfunctions, or service failures caused by owners failure to follow the National Instruments
installation, operation, or maintenance instructions; owners modification of the product; owners abuse, misuse, or negligent acts; and power failure or surges, fire, flood, acci
dent, actions of third parties, or other events outside reasonable control.

Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, recording, storing in an infor
mation retrieval system, or translating, in whole or in part, without the prior written consent of National Instruments Corporation.
National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws.
Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in
accordance with the terms of any applicable license or other legal restriction.In regards to components used in USI (Xerces C++, ICU, and HDF5), the following copyrights
apply. For a listing of the conditions and disclaimers, refer to theUSICopyrights.chm.
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
Copyright 1999 The Apache Software Foundation. All rights reserved.
Copyright 19952003 International Business Machines Corporation and others. All rights reserved.
NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities
Copyright 1998, 1999, 2000, 2001, 2003 by the Board of Trustees of the University of Illinois. All rights reserved.

Trademarks
National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section onni.com/legal for more informa
tion about National Instruments trademarks.FireWire is the trademark of Apple Computer, Inc., registered in the U.S. and other countries. Other product and company
names mentioned herein are trademarks or trade names of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have no agency, partnership, or jointven
ture relationship with National Instruments.PatentsFor patents covering National Instruments products, refer to the appropriate location: HelpPatents in your software, the
patents.txt file on your CD, or ni.com/patents.

WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS


(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF RELIABILITY SUITABLE FOR
USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO
PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT INJURY TO A HUMAN.
(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BE IMPAIRED BY ADVERSE
FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY, COMPUTER HARDWARE MALFUNCTIONS, COM
PUTER OPERATING SYSTEM SOFTWARE FITNESS, FITNESS OF COMPILERS AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION,
INSTALLATION ERRORS, SOFTWARE AND HARDWARE COMPATIBILITY PROBLEMS, MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING
OR CONTROL DEVICES, TRANSIENT FAILURES OF ELECTRONIC SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES OR MISUSES,
OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER COLLECTIVELY
TERMED SYSTEM FAILURES). ANY APPLICATION WHERE A SYSTEM FAILURE WOULD CREATE A RISK OF HARM TO PROPERTY OR PERSONS
(INCLUDING THE RISK OF BODILY INJURY AND DEATH) SHOULD NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO
THE RISK OF SYSTEM FAILURE. TO AVOID DAMAGE, INJURY, OR DEATH, THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRU
DENT STEPS TO PROTECT AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO BACKUP OR SHUT DOWN MECHANISMS.
BECAUSE EACH ENDUSER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS' TESTING PLATFORMS AND BECAUSE A
USER OR APPLICATION DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER
NOT EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR
VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS
ARE INCORPORATED IN A SYSTEM OR APPLICATION, INCLUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN, PROCESS AND SAFETY
LEVEL OF SUCH SYSTEM OR APPLICATION.

ni.com/russia

ii

LabVIEW 8.5.1.


1
LabVIEW.

LabVIEW ..............................................................2
....................................2
.....4
.................................................4
 .....................6
........................................................................6
.................................................7
........................9
........................................10
............................10

New .........................11
..............................................................11
.............................................................12

.........................................12
..................................................12
..................................................................12
LabVIEW................................................13
..............................................13
"" .........................................................13

...........................28
...........................................28
.............................29

.................................................................29
.................................29
.....................................30
............31
...........................................31
..........32
..............32
....................................33

...........................34
.......................................................34
.......................................................34
4


DAQmx ...............................................35
......................................................36
................................37
DAQmx....................................37
.....38


(Windows Linux) ..........................................................38

Instrument I/O Assistant..................................................39
....................................40
...................................40
,

 DAQ Assistant ..........................................40
.............................................................................41
.......................................................41
 Instrument I/O Assistant ..........................41

2


(Blank VI) ..................................14
, .....15

......................................................15

........................................................16

...................................17
(Error List)........18
.............................19
..19
............................................................20

LabVIEW............21
 ........................22
.........22
.....................22
...................................22
..........................23
NI Example Finder
( )..................................................23
"" .........................................................23

5

LabVIEW
........................42
...........................................................43
...................................................................................43
.........................................................................43
.....................................................................44
...........................................44
,
LabVIEW ....................................................44

3


, ......................24
.......................................................25
...............................................26
.....................................................27

LabVIEW 8.5.1.

.......................................................................42
.............................................52
........................................................52

iii

National Instruments , ,



LabVIEW, 
.
LabVIEW.
, LabVIEW.
, 
.


 . , 
File Page Setup Options ,
File, Page Setup , , Options .

, .

bold

,
.
, 
, , .

italic

, ,
. , 
.

monospace

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

monospace bold

,
.
, .

Platform

Platform . ,
, .


,
:
LabVIEW Release Notes LabVIEW. 
LabVIEW Application Builder.
LabVIEW Help LabVIEW Help 
LabVIEW, LabVIEW, , ,
, , , , , .. 
, National Instruments. LabVIEW Help 
Help Search the LabVIEW Help.
LabVIEW Quick Reference Card ,
, , 
, .

ni.com/russia

iv

LabVIEW 8.5.1.

1
LabVIEW

, LabVIEW,
, , ,
, 
. LabVIEW 
, , , 
, .
LabVIEW 
(, , ), 
. , ,
. , 
.
,  , 
() .
LabVIEW 
, ,
, GPIB, PXI, VXI, RS232 RS485 .


,
( ).
, ,
, 11.
40 .

11.

LabVIEW 8.5.1.

National Instruments , ,

LabVIEW.

LabVIEW
LabVIEW Getting
Started, 12. , 
, LabVIEW,
.
, LabVIEW,
, ni.com
National Instruments.

12. Getting Started

Getting Started , 
. , 
.
,
View Getting Started Window.


LabVIEW , 
(), , ,

.
, 
.
1. LabVIEW.
2. Getting Started New, VI from Template (
) New.
3. Create New VI From Template Tutorial (Getting Started)
Generate and Display ( () 
).
, 
. 
Description (). 13 
New .
ni.com/russia

LabVIEW 8.5.1.

LabVIEW.

13. New

4. OK, .
Create New.
5. .
, , 
.
,
.
: , /,
Window Show Front Panel ( ).
, <CtrlE>. <Ctrl> 
<Option> <Command> (Mac OS) <Alt> (Linux).

6. Window Show Block Diagram ( 


)  .

, .
 , 
.
7. Run
(), . , ,
<CtrlR>.
.
8. "" ( ) , 
.

LabVIEW 8.5.1.

National Instruments , ,

LabVIEW.



 . 
,
.
, :
: ,
Undo Edit <CtrlZ>.

1. , 14, 
, View Controls Palette.

14.
: , ,
.
"" 
. , , .

2. LabVIEW, 
Express. 
, Express .
3. Express,
Numeric.
, ,
/ .
4. Numeric Controls,
/.
5. (Knob) Numeric, 
, ,
.
.
6. File Save As ( ) 
.vi .


 , Simulate
Signal.  Simulate Signal. 
 Simulate Signal .
, .
1. , <CtrlE> 
.
 Simulate Signal, . 
, 
ni.com/russia

LabVIEW 8.5.1.

LabVIEW.

. ,  Simulate
Signal , , .
2.  Simulate Signal
Properties () , 
Configure Simulate Signal ( ).
(Mac OS) <Command> , 
.
Configure Simulate Signal ( 
),
 Simulate Signal.

Simulate Signal ,  
. ,

, .
3. Sawtooth ( ) Signal type
( ). , 
, . Configure
Simulate Signal ( ) ,
15.

15. Configure Simulate Signal

4. , 
Configure Simulate Signal.
5.  Simulate
Signal. , 
, , .
6. , , 
 , . 
Amplitude ().

.
, Configure
Simulate Signal ( 15). , , , 
 ,
.
LabVIEW 8.5.1.

National Instruments , ,

LabVIEW.


,
Amplitude ()  Simulate
Signal.
:
1.  Knob
( ), .
( ),
. ,
.
2. Knob ( )
. , 
Simulate Signal , .
,
. /,

.
3. Knob (B ),
. ,
,
.
4. Knob ( ),
. , Wiring tool (
). 
.
5. ,
Knob, 
Simulate Signal, , .
, .
Knob ( ) .
6. File Save ( ), .


.
, .
1. , <CtrlE>
.
2. Run () <CtrlR> .
3. .
, .. Operating tool ( 
), . , 
.
4. , ,
.
, 
. 
, . Y
, .
, , Run ()
, . ,
, 
.
ni.com/russia

LabVIEW 8.5.1.

LabVIEW.

5. , STOP (),
. STOP , 
. Abort Execution ( ), 
, , 
. , ,
, 
, . , 
, , .


, 10 
.
1. , ,
,  Simulate Signal
( ).
2. <Delete>, .
3. , 16, , 
View Functions Palette ( ),
. 
Express. ,
Express, "Express" .

16.

4. Arithmetic & Comparison palette ( ), 


 Formula ()( ), 
 
. ,  
.  
, Configure Formula ( ).
 , 
.
5. Help (), ,
Configure Formula ( ),
LabVIEW .
, ,
.
 ,
, Help () 
( )
 Help ().
6. Formula (), ,
.
7. LabVIEW Help, Configure
Formula ( ).

LabVIEW 8.5.1.

National Instruments , ,

LabVIEW.

8. Label X1 Sawtooth,
 Formula. 
String Configure Formula,
.
9. , *10 Sawtooth
String.
(Input) 
*, 1, 0 .
Input , LabVIEW 
Sawtooth String.
, String 
Sawtooth .
Configure Formula ( )
, 17.

17. Configure Formula


. String
Errors ( ) "Invalid
Formula" ( ).

10. OK, 
Configure Formula.
11. Sawtooth  Simulate
Signal.
12. ,
Sawtooth Sawtooth  Formula (
), .
13. Result (
)  Formula .
,  .
 .
 , 18.
:
Clean Up Wire ( ) , LabVIEW
, .
LabVIEW , .
ni.com/russia

LabVIEW 8.5.1.

LabVIEW.

18. 

14. <CtrlS> File Save ( ),


.


, 
Simulate Signal, ,  Formula,
Merge Signals ( ).
, :
1.  Sawtooth 
 Simulate Signal.
2. Sawtooth , 
.
Merge Signals (
), . 
, ,
. Merge Signals 
, .
 , 19.

19. ,
Merge Signals

3. <CtrlS> File Save ( ),


.
4. , .
.
Y , 10 
, . ,
 Formula 10.
5. STOP, .
LabVIEW 8.5.1.

National Instruments , ,

LabVIEW.


,
"" .
, .
1. 
Properties () .
Knob Properties ( ).
2. Label () Appearance ( ), 
Knob .
Knob Properties ( ) 
, 110.

110. Knob Properties

3. Scale () Scale Style ( ), 


Show color ramp ( ).
.
4. OK,
Knob Properties.
5. .
6. Knob Properties
. , Scale 
Marker text color, .
7. Cancel, .
, OK.


. ,
,
.
, .
1. . 
, .
2. , 111, 
,
. , .
ni.com/russia

10

LabVIEW 8.5.1.

LabVIEW.

111.

3.
Properties () .
Waveform Graph Properties ( ).
4. Plots () Sawtooth .
Colors () . .
5. Sawtooth (Formula Result) .
6. Do not use waveform names for plot names ( 
).
7. Name 
" ".
8. OK, 
Waveform Graph Properties ( ).
.
9. Waveform Graph Properties ( 
) .
, Scales 
Y Y.
10. Cancel, .
, OK.
11. .

New
New , ,
. 
.
, ,
.
New, :
LabVIEW New, VI from Template More
Getting Started.
File New ( ) Getting Started,
.


.
, 
, , / .
LabVIEW 8.5.1.

11

National Instruments , ,

LabVIEW.


. , ,
.
 .
, , .
, 
.


,
G, .
 .
 .
(Wire)
, . 
, 
, . 
.
.




. , 
, . 
, .
,
, .


. Run 
<CtrlR> . Run
, , .
, Abort Execution.
, ,
.
, ,
.
.


, ,
. 
 
. , , 
, . ,
 
 Properties () .
 ,  
. 
,
, .
  
. , ,
.

ni.com/russia

12

LabVIEW 8.5.1.

LabVIEW.

LabVIEW
LabVIEW Help
LabVIEW, LabVIEW
, , , , 
, , , , .
LabVIEW ,
National Instruments.
, Help
(). LabVIEW Help 
, 
Help Search the LabVIEW Help.
 LabVIEW, ,
LabVIEW Help
, ,
Help AddOn Help, AddOn Help .



.
,

Properties (). ,
.

""
"" :

: <Ctrl> <Option> <Command> (Mac OS)


<Alt>(Linux).

LabVIEW 8.5.1.

13

National Instruments , ,

2


LabVIEW.
, .
, .


,  
. .
, , 
. ,
, , 
21.

45 .

21. Reduce Samples

(Blank VI)
, ,
, .
, (Blank VI):
1. Getting Started, Blank VI
( ) New () <CtrlN>.
.
: , File New VI ( )

File New ( ) Blank VI ( ) Create New ( ).


2. (Functions palette) ,
. "",
, , 
, .
ni.com/russia

14

LabVIEW 8.5.1.

,
 
.
1. Help Show Context Help ( 
) ,
, 22. 
"Show Context Help Window" ( 
), , 
.
: <CtrlH>
(Mac OS) <CommandShiftH>.

22.

2. Express Input palette ( )


 Input.
.
3. , , 
, .
.
,
.
4.  .
Configure Simulate Signal ( ).
5. Configure
Simulate Signal ( ), Frequency (
)() Amplitude (). , 
.
6.  Simulate Signal ( ) ,
10.7 2.
"Result Preview" ( ) 
.
7. OK, 
Configure Simulate Signal ( ).
8.  Simulate Signal 
, .
 Simulate Signal.
9. Reduce Samples.vi
.


, LabVIEW Help
, .
1.  Simulate Signal Detailed
help ( ) ,
Simulate Signal ( ) LabVIEW Help. 
,
, Detailed help ( ).
LabVIEW 8.5.1.

15

National Instruments , ,

LabVIEW Help, 
 
Help () ,
Help Search the LabVIEW Help ( LabVIEW Help).
2. Search (), "sample compression"
Type in the word(s) to search for ( ) 
<Enter>. , . 
, , "sample compression ".
,  (compres
sion) .
3. Sample compression ,
,  Sample compression.
4. , ,
"Place on the block diagram" ( ),
 .
5. .
6.  Sample compression  
 Simulate Signal.
7.  Sample compression , 
25 .
8. OK, 
Configure Sample Compression.
9. , Sine ()
 Simulate Signal Signals ()  Sample
compression.


(controls) 
(indicators) ,
(Controls Palette).
.
:
1.  Mean (
)  Sample compression, Create Numeric
Indicator ( ) ,
. Mean (),
, .
2. Mean ()  Sample
compression Insert Input/Output ( /) 
, Enable ().
,
 .
.
3. Enable ()
Create Control ( ) ,
. (
) .
, 
. ,
, .
4. ,
Sine ()  Simulate Signal Signals () 
 Sample compression, Create Graph Indicator (
) .
ni.com/russia

16

LabVIEW 8.5.1.

5. , Mean ()
 Sample compression Sine ().
Merge Signals ( ).
6. , 23.

23.  Reduce Samples

7. .
(ontrols) (Indicators) 
,
, .
: , , 

.
8. .



,
. , 
While (While Loop).
, While (While Loop) 
.
1. .
, , . 
.
2. .
3. Search (), , 
, While . LabVIEW ,
, .

,  .
4. While Loop <<Execution Control>> ( While<
>), Execution Control While.
5. While (While Loop) Execution Control.
6. .
, "" While.
7. ,  
, 24.

LabVIEW 8.5.1.

17

National Instruments , ,

24.  While

8. , While,
 .
While, , (STOP), 
(conditional terminal). 
(STOP).
9. .
,
(STOP).
10. (STOP) .

(Error List)
, .
, Mean () 
.
1. Mean () 
, (Positioning tool).
2. Mean (), ,
<Delete>.
3. .

( ). 
. (Run) ( 
), , .
4. (Run),
Error list ( ),
. ,
Error list ( ) , 
.
5. Errors and warnings ( ),
Wire: has loose ends (: )
Help (), .
: , 
("") . 
.

6. Errors and warnings ( )


Wire: has loose ends (: ),
.
ni.com/russia

18

LabVIEW 8.5.1.

7. <CtrlB>, .
<CtrlB> 
. ,
<Delete>.
8. View Error List ( ), 
. .
: , , ,

<CtrlL>.
9. Close, . Run 
.


,
 .
, 
.
1.   Time Delay (
) While. 
.
2. 0.25 Time delay ( ) ().
, . 
0.25 , 
.
3. OK, 
Configure Time Delay ( ).
4. .
5. Enable . 
, .
6. STOP (), .



.
1. (Controls palette)
Express Table ,
.
2. .
LabVIEW Table () 
Build Table ( ).
3.  Build Table Table () ,
  Build
Table Table (). , 
, .
 Build Table, Table () 
.
4.
Compression.

While,  Sample

While, 
,  Build Table .
LabVIEW 8.5.1.

19

National Instruments , ,

, , 
.
5. (""),
Mean ()  Sample Compression Signals ()
 Build Table.  ,
25.

25.  Reduce Samples

6. .
7. Enable.
Enable , 
25 . , 
.
8. .
9. ,
Table Properties ( ). ,
.
10. .


, ,
, .
, , 
 Time Delay ( ).
1. Help Search the LabVIEW Help (
LabVIEW), LabVIEW Help.
2. Search, "time delay"( ) 
Type in the word(s) to search for ( ), 
<Enter>.
: , , , Search titles only (
) . , AND
(), OR (), NEAR () Type in the word(s) to search for. 
, Using Help ( )
Contents () LabVIEW Help.

3. Location (), 
. Reference ( 
) LabVIEW,
ni.com/russia

20

LabVIEW 8.5.1.

, , , , . HowTo (
) , LabVIEW.
Concept () 
LabVIEW.
4. Time Delay ( ),
,  Time Delay.
5. , , Open
example ( ) Example () , 
,  Time Delay.
6. Browse related examples ( ),
NI Example Finder ( )
, .
, 
, NI Developer Zone ni.com/zone.

, .

Examples () 
, 
.
NI , 
Help Find Examples ( )
Find Examples ( ) Examples ()
Getting Started.
7. , NI 
, .

LabVIEW

LabVIEW:
Context Help ( )
LabVIEW, . 
, , , ,
, .
, Help Show Context Help ( 
) <CtrlH>(Mac OS). 
<CommandShiftH>.
 , 

.
LabVIEW Help
LabVIEW. LabVIEW Help ,
Detailed help (
) Context Help ( ). 
 
Help () .
LabVIEW Help, Contents
(), Index () Search ().
Contents (), .
Index ()
, Search () .
LabVIEW 8.5.1.

21

National Instruments , ,

LabVIEW Help , ,
Place on the block diagram, 
.
Search LabVIEW Help, ,
AND (), OR (), NEAR (), 
. , . , ,
, Search titles only
.
Search Location 
, 
().
Reference ( )
LabVIEW, , , , , .
HowTo ( ) 
LabVIEW. Concept () 
LabVIEW.


(con
trols) (indicators),  . ,
, , , 
.


,
/ 
Create () . LabVIEW 
/ / 
, . 
, . ,
,
.


While (While Loop), , 
. While ,
.
While , .
Execution Control , 
, 
, .


Run , 
. Run ,
, 
. Run View Error List (
" ), , .
. Help (
) .
errors and warnings ( ), 
, .

X . , 
, . ,
,  .
ni.com/russia

22

LabVIEW 8.5.1.

,
.
,
.
List Errors ( ) , 
Error list .
Help ()
, .


"" . 
 Build Table, .

NI Example Finder ( )
NI Example Finder,
NI Developer Zone
ni.com/zone. , LabVIEW
, , 
. Help"Find Examples (" )
Find Examples ( ) Examples (
) Getting Started, NI Example Finder.

.

Examples () . 
. 
, , 
.

""
"" :

: <Ctrl> (Mac OS) <Option> <Command>


(Linux) <Alt>.

LabVIEW 8.5.1.

23

National Instruments , ,

3

LabVIEW ,
. LabVIEW 
.
: ,

LabVIEW (Full and Professional Development Systems)


, ,
, , ,
. , ,
, 31.
40 .

31. Save Data

,
, , 
.
1. Getting Started New, New.
2. Create New VI From Template Tutorial (Getting
Started) Generate, Analyze, and Display.
( ) (RMS).
3. OK , 
.
4. Context Help ( ) ,
<CtrlH> (Mac OS). <CommandShiftH>.
5. , <CtrlE>.
6.  Amplitude and Level Measurements,
.
.
ni.com/russia

24

LabVIEW 8.5.1.

. 
.
7. RMS (), 
,  
. 
, <CtrlB>.
RMS () 
Amplitude and Level Measurements.
Generate, Analyze, and Display
, .
8. 
Properties () . 
Graph Properties.
9. Appearance Visible Label ()
Unfiltered Signal ( ) .
10. OK,
Graph Properties.
11. .
.
12. STOP, .


 Simulate Signal .
Configure Simulate Signal,
.

, .
1. , (""), 
 Simulate Signal. 
Simulate Signal, , <Ctrl>
(Mac OS). <Option> (Linux). 
.
2.  Simulate Signal
. LabVIEW 
Simulate Signal Simulate Signal2.
3.  Simulate Signal2, 
Configure Simulate Signal.
4. Sine () Signal type ( ).
5. Frequency (Hz) 60.
6. Amplitude 0.1.
7. Add noise, .
8. Uniform White Noise ( )
Noise type ( ).
9. Noise amplitude ( ) 0.1.
10. Seed number 1.
11. Timing () Run as fast as possible (
).
12. Signal Name ( ) Use signal
type name.
13. Signal name 60 Hz and Noise.
LabVIEW 8.5.1.

25

National Instruments , ,

Configure Simulate Signal


LabVIEW , 
 .
Result Preview ( )
. Configure Simulate Signal ( 
) , 32.

32. Configure Simulate Signal

14. OK, 
Configure Simulate Signal.


, , 
 Formula (). , 
Formula .
, 60 Hz and Noise Sine.
1.  ,
Sine ()  Simulate Signal,  Amplitude and Level
Measurements Unfiltered Signal, .
2. Search () , 
Formula   Simulate
Signal  Amplitude and Level Measurements.
3. Configure Formula Label
X1 Sine, X2 60 Hz and Noise.
4. Input "+", Sine 60 Hz and Noise,
String.
5. OK, 
Configure Formula.
6. (""), Sine
 Simulate Signal Sine  Formula.
7. 60 Hz and Noise  Simulate Signal2 60 Hz
and Noise  Formula.
8. Result ()  Formula
Unfiltered Signal Signals  Amplitude and Level Measurements.

ni.com/russia

26

LabVIEW 8.5.1.

9. , <CtrlE>.
10. .
.
11. STOP, .
12. File Save As ( )
Analysis.vi .


, 
 Filter ().
,  Filter ,
IIR ( 
) .
1. , Result () 
Formula Signals  Amplitude and Level Measurements.
2. .
3.  Filter  
 Simulate Signal2 I  Amplitude and Level Measurements.
Configure Filter.
4. Filter Specifications ( ), Cutoff
Frequency ( ) () 25.
5. OK,
Configure Filter.
6. .
7. Unfiltered Signal , 
<Ctrl>, , 
.
8. .
9. Unfiltered Signal2 
Filtered Signal.
Appearance () Graph Properties.
10.  Result ()  Formula
Signal ()  Filter.
11. Filtered Signal  Filter Signal 
Amplitude and Level Measurements
Filtered Signal.
12. File Save ( ).
 Analysis , 33.

33.  Analysis
LabVIEW 8.5.1.

27

National Instruments , ,


Display Format ( ) 
Graph Properties , X Y 
.
, X Y
Unfiltered Signal Filtered Signal.
1. Unfiltered
Signal Properties () . 
Graph Properties.
2. Format and Precision Time (XAxis) () 
.
3. Type () Automatic formatting ().
4. Digits 6 Significant digits ( )
Precision Type ( ).
5. Hide trailing zeros ( ).
6. Amplitude (YAxis) () 
35. Y X.
7. Scales () Amplitude (YAxis) ().
8. Autoscale.
9. Minimum 2.5, Maximum  2.5.
10. OK,
Graph Properties.
11. 110, Filtered Signal.
X Y Unfiltered Signal Filtered Signal ,
.


 Amplitude and
Level Measurements.
, 
.
1.   Amplitude and Level
Measurements, Configure Amplitude and Level
Measurements.
2. Amplitude Measurements ( ),
RMS ().
3. Peak to peak. Peak to peak Results
() .
4. OK,
Configure Amplitude and Level Measurements. RMS
 Amplitude and Level Measurements Peak to peak,
. Peak to peak .

ni.com/russia

28

LabVIEW 8.5.1.


,
.
, , 
.
1.  Time Delay ( ).
2. While. 
Configure Time Delay.
3. Time delay (seconds) 0.1
OK.
4. .
10 .
5. .


, 
, .
, .
1. ,
.
2. Express, , 
34.

34.

3. 
.
4. Boolean
Warning (). 
, , .
5. File Save ( ), 
Save As.
6. . Copy
() Substitute copy for original,
.
7. Continue Warning Light.vi 
.


, 
,  Comparison ().
, 
.
LabVIEW 8.5.1.

29

National Instruments , ,

1.  Comparison 
Amplitude and Level Measurements.
Configure Comparison.
2. Compare Condition ( ) Greater(>)
().
3. Comparison Inputs Value 2 Value,
, .
4. OK, 
Configure Comparison.
 Comparison , 
, . Greater () , 
"?".
5. Peak to Peak  Amplitude and Level Measurements
Operand 1  Greater.
6. , Peak to Peak
Operand 1.
7. ,
Create Numeric Indicator ( 
) .
Peak to Peak, , .
Peak to Peak , 
 Peak to Peak, . ,
Peak to Peak .


, ,
 Greater.
, , 
.
1.  Warning ()
 Greater. ,
While, 35.

35.  Warning Light

2. Result ()  Greater
Warning.  , 35.

ni.com/russia

30

LabVIEW 8.5.1.

3. .
Peak to Peak.
.
4. .
2.0, Warning .
5. STOP, .
6. .


, ,
 Write To Measurement File.
, 
LabVIEW.
1.  Write To Measurement File 
 Amplitude and Level Measurements. 
Configure Write To Measurement File.
File Name test.lvm.
.lvm , 
.
.
LabVIEW .
LabVIEW Data. LabVIEW LabVIEW
Data .
, ,
File Name.
2. If a file already exists ( )
Configure Write To Measurement File Append to file, 
test.lvm, .
3. Segment Headers ( ) One header
only, , LabVIEW 
.
4. File Description : Sample of peak
to peak values ( ). LabVIEW
.
5. OK, 
Configure Write To Measurement File.


, LabVIEW test.lvm.
, test.lvm.
1.  Peak to Peak  Amplitude and
Level Measurements Signals ()  Write To
Measurement File.
2. File Save ( ) , Save
Data.vi .
3. .
4. STOP .
5. , , test.lvm
LabVIEW Data .
, .
6. Save Data.
LabVIEW 8.5.1.

31

National Instruments , ,


, 
 Write To Measurement File ,
, .
, 
.
1. (rocker button)
.
2. Properties
() , .
3. Write to File.
4. Operation () Boolean Properties
Latch when pressed Button behavior ( ).
. ,
, Preview Selected Behavior.
5. OK, 
Boolean Properties.
6. .


, ,
, .
1.   Write To Measurement
File, Configure Write To Measurement File.
2. File Name test.lvm Selected
Samples.lvm, .
3. OK,
Configure Write To Measurement File.
4. Signals  Write To
Measurement File Insert Input/Output ,
Comment ().
5. Comment  Write To
Measurement File Select Input/Output Enable
, Comment Enable.
 , .
, ,
, , ,
.
6. Write to File  Write To
Measurement File.
7. Write to File Enable  Write To
Measurement File.
 , 36.

ni.com/russia

32

LabVIEW 8.5.1.

36.  Save Data


, ,
Selected Samples.lvm.
1. . Write to
File .
2. STOP .
3. Selected Samples.lvm .
Selected Samples.lvm test.lvm.
test.lvm , Save Data,
Selected Samples.lvm ,
Write to File.
4. .
5. .

LabVIEW 8.5.1.

33

National Instruments , ,



. 
:
. , 
, 
.
 Enable
. , 
, Operation
Boolean Properties.


 Filter . 
 Filter, .


 Write To Measurement File ,
.lvm, .tdm .tdms . .lvm
,
. .lvm LabVIEW 
. , 
, .lvm , 
, . 
(.tdm) , .
.tdm
, / ,
.lvm. TDM .tdms
, , .tdm
.
LabVIEW LabVIEW Data 

. / /
.lvm .tdm LabVIEW Help.

ni.com/russia

34

LabVIEW 8.5.1.

4

,
Windows.
.

, Taking Measurements Contents
LabVIEW Help.


 DAQ Assistant
( ) DAQmx. DAQmx 
, 
.
DAQmx, Getting Started Getting Started with DAQ Taking an
NIDAQmx Measurement in LabVIEW Contents LabVIEW Help.
DAQmx
.
, DAQmx, 
NIDAQ Readme.
, 
DAQ (Traditional NIDAQ), 
DAQ (Legacy) 
Taking Measurements Contents LabVIEW Help.
: 7.4 DAQmx, DAQmx
MAX. DAQmx . 
Measurement & Automation Explorer Help for NIDAQmx 
DAQmx, 
.

DAQmx ,
.

30 .

DAQmx
DAQmx
, ,
. ,
. , 
.
, , 
DAQ .
1. .
2. , Express Input, 
Input.
LabVIEW 8.5.1.

35

National Instruments , ,

3. Input  DAQ Assistant, , 


.
DAQ Assistant Create New ( ).
4. Analog Input ( ),
.
5. Voltage () 
.

. ,
.
6. Supported Physical Channels , 
, ai0, Finish. 
, 41, 
, .

41.

7. Input Range Settings, 10 


(Max) 10 (Min).
8. Task Timing, N Samples.
9. Samples To Read 1000.


, , ,
.
, , 
.
1. Test, .
DAQ Assistant.
2. Start () , , ,
Close, DAQ Assistant.
3. OK, DAQ
Assistant. LabVIEW .
4. Read Voltage.vi .
ni.com/russia

36

LabVIEW 8.5.1.


, , 
, DAQ .
,
.
1. , data (),
Create Graph Indicator .
2. . 
. (plot leg
end), , Voltage.
3.   DAQ
Assistant Properties () , 
DAQ Assistant .
4. Voltage 
Rename () , 
Rename a channel or channels.
: Rename a channel or channels, 

<F2>.
5. New Name First Voltage Reading
OK.
6. OK, 
DAQ Assistant.
7. .
First Voltage Reading.
8. .

DAQmx
,
. ,
, .
,
.
1.   DAQ Assistant,
DAQ Assistant.
2. Add Channels, ,
Voltage () Add Channel,
Add Channels To Task.
3. Supported
Physical Channels OK, DAQ Assistant.
4. Second Voltage Reading.
5. Task Timing Continuous.
DAQ Assistant,
.
6. OK, DAQ
Assistant. Confirm Auto Loop Creation.
7. Yes. LabVIEW While 
 DAQ Assistant . 
, stop  DAQ Assistant.
stopped  .
 , 42.
LabVIEW 8.5.1.

37

National Instruments , ,

42.  Read Voltage


,  DAQ Assistant ; stopped
TRUE () While.


,
, .
, .
1. ,
.
2. .
, 
.
3. First Voltage Reading 
Color () .
, , ,
. Second Voltage Reading.
4. .
5. .



,
. 
. , , /
/ . , ,
. National Instruments
. 
.

(Windows Linux)
NI Instrument Driver Finder ( ), 
LabVIEW Plug and Play ,
LabVIEW.
: Instrument Driver Finder Windows Linux. 
. NI Instrument Driver Network 
ni.com/idnet .

, , 
Instrument Driver Finder.
1. Tools Instrumentation Find Instrument Drivers Help Find
Instrument Drivers Instrument Driver Finder.
2. National Instruments Manufacturer (
).
ni.com/russia

38

LabVIEW 8.5.1.

3. Search. Search Results


, , Instrument Driver Finder 
. Instrument Driver Finder 
. ,
, 
.
4. Driver Install.
5. ni.com, No, I Need to create a
profile (, ) Create Profile,
, ni.com.
NI.com, 7.
6. Instrument Driver Finder.
7. Yes (), 
Login.
8. Close , Instrument Driver Finder 
labview\instr.lib
.
9. Close, Instrument Driver Finder.
.
, 
Controlling Instruments Using Instrument Drivers
Contents LabVIEW Help.

Instrument I/O Assistant


,
 Instrument I/O Assistant.
:  Instrument I/O Assistant, 

. Instrument I/O Assistant  National Instruments


Device Drivers.
, , 
Instrument I/O Assistant.
1. , .
2.  Instrument I/O Assistant Input
. Instrument I/O
Assistant.
3. Show Help, , 
Instrument I/O Assistant.
. 
Instrument I/O Assistant. 
, .
4. Select Instrument ( ) 
, ,
.
5. , .
6. , Hide Help, 
, Instrument I/O Assistant.

LabVIEW 8.5.1.

39

National Instruments , ,


, ,
. 
Instrument I/O Assistant, 
.
.
1. Instrument I/O Assistant, Add Step 
Query and Parse.
2. Enter a command *IDN?. *IDN? , 
. 
, .
, .
3. Run, . Instrument I/O Assistant
, .
4. ASCII only Byte index
, ASCII.
Instrument I/O Assistant
ASCII .
5. Parsing help, ,
Instrument I/O Assistant, 
.
6. ASCII representation , ,
.
7. Token name . ,
 Instrument I/O Assistant, .


,
. .
, .
1. Add Step Write.
2. Enter a command *IDN?.
3. Enter a command Add
parameter, .
4. Test value .
5. Parameter name .
, .
6. OK, 
Instrument I/O Assistant.



 DAQ Assistant
 DAQ Assistant, 
.
 DAQ Assistant , 
, DAQmx 
. DAQmx , 
ni.com/russia

40

LabVIEW 8.5.1.

. ,
 DAQ Assistant 
, DAQmx.
 DAQ Assistant
Getting Started Getting Started with DAQ Taking an NIDAQmx Measurement in
LabVIEW, Contents LabVIEW Help.
, DAQmx 
NIDAQ Readme. DAQmx , 
, Taking Measurements Contents
LabVIEW Help Traditional
NIDAQ (Legacy) .

DAQmx 
, , ,
, . , 
.
, .
, , ,

. , .
Taking Measurements Contents LabVIEW
Help .


NI Instrument Driver Finder,
LabVIEW Plug and Play
LabVIEW.
.
, , 
/ / . , ,
.
National Instruments .
Instrument Driver Finder, 
Controlling Instruments Using Instrument Drivers Contents
LabVIEW Help.
NI Instrument Driver Network

ni.com/idnet,
.
,
Controlling Instruments Using Instrument Drivers
Contents LabVIEW Help.

 Instrument I/O Assistant


Instrument I/O
Assistant .

.
Instrument I/O Assistant,  
Instrument I/O Assistant  Instrument
I/O Assistant .

, Instrument I/O Assistant Help, 
, Show Help Instrument I/O Assistant.
LabVIEW 8.5.1.

41

National Instruments , ,

5

LabVIEW

, 
. LabVIEW , 
,
, .
, ,
LabVIEW. 
,
Fundamentals, Contents
LabVIEW Help. Concepts 
/ LabVIEW. HowTo 
LabVIEW.


, Express

, LabVIEW.
,
. , ,
Express,
,
.
, Express Numeric
Controls ( ) Numeric Indicators
( ). Modern Classic
Numeric,
.
View
Always Visible Categories Show All Categories
, .

,
Fundamentals Building the Front Panel,
Contents LabVIEW Help.

ni.com/russia

42

LabVIEW 8.5.1.

LabVIEW


 , Express 
(Function palette), ,
LabVIEW.
View
Always Visible Categories Show All Categories , 
.
LabVIEW ,
, .  ,
, 
.
 
. , 
, .

,
(). (), ,
.
 .
 .
.

Fundamentals Creating VIs and SubVIs,
Contents LabVIEW Help.
 .
()  
Fundamentals Building the Block Diagram, 
Contents LabVIEW Help.

LabVIEW. , 
.

LabVIEW 8.5.1.

43

National Instruments , ,

LabVIEW



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

Fundamentals Building the Block Diagram, 
Contents LabVIEW Help.


, 
.  (
).  
. 
, , .
,
.
(Graphs), (Charts) (Numeric Indicators).
LabVIEW 
. 
, 
.
 Convert from Dynamic Data
, , 
. 
, LabVIEW 
Convert from Dynamic Data .
, ..  Convert to Dynamic Data 
, , 
.
,
Fundamentals Building the Block Diagram,
Contents LabVIEW Help.

,
LabVIEW
, , ,
Express ,

.
, , 
, , ,
.
 LabVIEW, ,

, , 

ni.com/russia

44

LabVIEW 8.5.1.

LabVIEW

, LabVIEW. 
,
Fundamentals Programmatically Controlling VIs,
Contents LabVIEW Help.
, 
LabVIEW ,
, C C++.
,
Fundamentals Calling Code Written in TextBased Programming Languages,
Contents LabVIEW Help.
,
, LabVIEW. 
, Fundamentals
Networking in LabVIEW, Contents
LabVIEW Help.

, (shared variables),
, 
. 
, Fundamentals Networking in LabVIEW,
Contents LabVIEW Help.

, .
,
Fundamentals Networking in LabVIEW,
Contents LabVIEW Help.

, , 
, 
, . 
, Fundamentals
File I/O, Contents LabVIEW Help.
,
. .
,
Fundamentals Creating VIs and SubVIs, 
Contents LabVIEW Help.
LabVIEW LabVIEW 
LabVIEW, , 

. 
. 
, (Touch Panel), , PDA,
. 

.
LabVIEW Fundamentals
Organizing and Managing a project LabVIEW Help.
Windows LabVIEW 
.NET ActiveX, , , 
, .NET ActiveX.

Fundamentals Windows Connectivity LabVIEW Help.
, 

(nodes). ,
, LabVIEW MathScript. 
LabVIEW 8.5.1.

45

National Instruments , ,


A
automatic scaling
(
)

, 
. , 
.

B
block diagram
()

.
(node), , (wire), 
. 
.

Boolean controls/indicators
(
/)

, 
( ).

broken Run button


(
)


.

broken VI
( )

, . 
.

C
channel ()

1. ,
.
,
,
. (counter) 
, ,
.
2. , , ,
, 
. NIDAQmx ,
 ( ), 
( ). 
Traditional NI
DAQ NIDAQmx. Traditional NIDAQ
MAX. NIDAQmx 
MAX, ,
, 
.
3. (Switch) 
. 
( , ) .
. 

NIDAQmx Switch.

checkbox

, 
. .

conditional terminal
(
)

While (While Loop), , 


, .

Context Help window


( )

, LabVIEW,
. ,

ni.com/russia

46

LabVIEW 8.5.1.

, , , , , , 
.
control ( ) .
, , ..
Controls palette
(
)

, , 
.

current VI

, ,  (Icon Editor) 
.

D
DAQ

. data acquisition ( ).

DAQ Assistant
(
)

, .

DAQ device
(
)

.
. DAQ
, PCMCIA , DAQPad , 
USB IEEE 1394 (FireWire). SCXI 
DAQ .

data acquisition (DAQ)


( )

1. , 
.
2. .

data flow ( )

, ,
. 
.
LabVIEW ,
 .

data type ( )

. LabVIEW
: (numeric), (array),
(string), (Boolean), (path), (refnum),
(enumeration), (waveform) (cluster).

DC

default

, .
, .

device ()

, 
, 
. 
. . DAQ device measurement device.

drag

, ,
.

driver

,
DAQ.

dynamic data type


( )

, 
. ,
. 
.

E
Error list window
( )

LabVIEW 8.5.1.

, ,
, , , .

47

National Instruments , ,

error message
( )

Express VI ()

, . 
.

F
For Loop ( For)

, ( ) 
. 
: For i = 0 to n 1, do....

front panel ( )

. 
, .

function ()

, , 
.

Functions palette
( )

, , , .

G
General Purpose Interface Bus
( )

GPIB (). HPIB.


.
IEEE 488, ANSI/IEEE 4881978,
488.11987 488.21992.

graph ()

. 
.

I
I/O (/)

/ , ,
/ .

icon ()

.

indicator ()

, , 
.

instrument driver
( )

Instrument I/O Assistant

,
 Instrument I/O Assistant ,
, , 
.

L
.lvm

,

.

label ()

, (
) .

LabVIEW
( 

)

Laboratory Virtual Instrument Engineering Workbench 


, 
.

LED

legend
( )

, ,
.

M
MAX
ni.com/russia

Measurement & Automation Explorer.


48

LabVIEW 8.5.1.

Measurement &
Automation Explorer
(
)

Windows
National Instruments.

measurement device
( )

, E , SCXI
.

menu bar ( )

.
. ,
.

N
NIDAQ

, 
NI DAQ . NIDAQ
ANSI C,
, , LabVIEW, 
NI.

NIDAQmx

NIDAQmx NIDAQ 
DAQ Assistant 
LabVIEW, LabWindows/CVI Measurement
Studio; 

; 
(API) 
NIDAQ.

node ()

. ,
, . 
, .

numeric controls and indicators


(
)


.

O
object ()

,
, , , , 
.

Operating tool
( )

P
palette ()

, 
.

plot ()


.

Positioning tool
( )

project ()

, 
.

Project Explorer window


( )

, LabVIEW.

LabVIEW 8.5.1.

49

National Instruments , ,

Properties dialog boxes


( )

, 
.
/.

pulldown menus
( )

, . 
.

PXI

PCI eXtensions for Instrumentation ( PCI


) .

R
RMS ()

S
sample ()

/ / .

scale ()

, /
,
.

shortcut menu
( )

, . 
.

string ()

structure ()

, Flat Sequence structure


( ), Stacked Sequence structure (
), Case structure ( ), For Loop
( For), While Loop ( While) Timed Loop ( ).

subpalette ()

, ,
.

subVI ()

,  . .

T
.tdm

, .

.tdms

TDM Streaming. 
.tdm
.

task ()

, ,
NIDAQmx.
.

template VI ( )

, 
, 
. New.

terminal ()

() , .

tip strip ()

, ,
, .

tool ()

toolbar ( ) , .
Traditional NIDAQ (Legacy)

ni.com/russia


DAQ National Instruments.
. 
Traditional NIDAQ (Legacy), 
, ,
NIDAQ Readme.

50

LabVIEW 8.5.1.

V
VI

virtual instrument (VI).

virtual instrument (VI)


( )

, LabVIEW,
.

VXI

VME eXtensions for Instrumentation VME


.

W
waveform ()

, .

waveform chart
( )

,
.

While Loop ( While)

, ( ) ,
.

wire ()

Wiring tool
( )

LabVIEW 8.5.1.

51

National Instruments , ,



ni.com National Instruments:
1) Support ni.com/support.
SelfHelp Resources ( ) 
 National Instruments,
, ,
, , 
, .
2) ni.com ,
National Instruments:
National Instruments , ,
119361 . , . , . 42, 1101
: + 7(495) 7836851
: + 7 (812) 9514418
: + 38 (068) 3942122
: + 371 (22) 388786
: +374 (10) 219782
: support.russia@ni.com


(Training and Certification) National Instruments 

. 
15 
 NI .
National Instruments
. 
, 
. 
, 
.
:

ni.com/russia, :
: + 7(495) 7836851
: + 7 (812) 9514418
: + 38 (068) 3942122
: + 371 (22) 388786
: +374 (10) 219782

ni.com/russia

LabVIEW 8.5.1.

Das könnte Ihnen auch gefallen