You are on page 1of 3

2004 16 183

LabVIEW
, ,
( 430072)
: LabV IEW , V C , V B
, LabV I EW
:

LabV IEW ; ; PCL

818HG; I /O

T P312 :

B:

1004 373X ( 2004) 16 023 03

Rapid Development of Data Acquisition System Base on LabVIEW


CHEN Zefeng , PEI Feng , Y AN G W ansh eng
( Schoo l of Po w er Mechanical Eng inee ring , Wuhan Univ ersit y, Wuhan, 430072, China)

Abstract:

It is par ticular ly intr oduced a rapid dev elo pment method that use DA Q card to cr eate D AQ sy stem base o n LabV IEW .

Compar ed with V C, V B, LabV IEW show sits evident superio rity in D AQ sy stem dev elo ping .
Keywords:

LabV I EW; da ta acquisition ; PCL

818 HG; I / O

( N ational Ins truments , N I)


LabV IEW ( Laboratory V irtual Ins t rument
Engineeri ng Workb ench ) 1986 ,

,
, , LabV IEW
LabV IEW

1
N I LabV IEW
, ,
V I , Windows
D LL
; Cod eLink ,
LabWi ndows / CV I C ;
ActiveX , DD E S Q L, Wi nd ows
; Dat aSocket W eb

2 LabVIEW
2. 1
, N I ,
LabV IEW
( Advant ech ) PCL 818 HG ,
PCL 818 HG
, PC , 16 8
, 100 k Hz 12 b A /D , 1 k FIFO ,
( 1000) , DM A
, 16 , 12 b
, ,
V isiD AQ3. 1, AciveDAQ , LabV IEW Wi ndows 3. 1 /95 /
N T /2000 /X P DL L 32 b
LabV IEW PC
LabV IEW ,
1

Server , T CP /IP UD P V Is,


; V Is ,
V Is , LabV IEW
G PIB, VX I, PX I, RS232, RS485, PLC
LabV IEW
V I ( Vi rtual Inst rumen t)
,
:

2004 04

07

1 D LL

2. 2
,
LabV IEW PCL 818 HG

2:

23

: La bV IEW
( 1) Select DevicePop. vi
, ,

Server DataSock et Server M anag er

Select Modu lePop. vi

2 LabV IEW

DeviceOpen. vi ,

DataSocket Conn ection U RL (

, , I /O

ds tp: / /serv ername /dataname ) ,

0 ,

Publish and Su bscribe, 2

0 M AIConfig. vi

Data Socket , 2

, Con fig Chann el ,

D AQ (

) ( ) , D AQ

TCP / IP

,
, Dat aSocket ,

,
2

,
,

( 2) W hile M AIVol tage In. vi

Da taSocket ,

Data Socket

, 200 ms

( 3) , DeviceClose. vi
, , Errmsg

3 LabVIEW

LabV IEW ,

32 b LabV IEW I /O V I ,

, T CP /IP, Remote

Data Acquisi tion ( RD A )

Data Sockets ,

LabV IEW 6. 1 , LabV IEW

LabV IEW
V C+ + , V B, LabV IEW

W eb
, W eb

PCL 818 HG:

V isual C+ + :
DRV_ Dev iceO pen ( U LO N G Dev iceN um, LON G fa r *
Driv er Ha ndle );
DRV_ DeviceClo se( LO N G far * Driv er Ha ndle);
DRV_ M A ICo nfig ( LON G Driv er Ha ndle, L PT_ M A ICo nfig
lpM A ICo nfig );
V isual Basic:
Declar e Functio n D RV _ Dev iceO pen Lib " adsa pi 32. dll "
( ByV a l DeviceN um As Long , _ Driv er Ha ndle As Lo ng) As Long
Declar e Functio n D RV_ DeviceClo se Lib " adsa pi 32. dll "
( Driv e r Ha ndle As Lo ng ) As Long
Declar e Function D RV_ M A ICo nfig Lib " adsa pi32. dll "
( ByV al Driv er Handle As Lo ng , _M AI Co nfig As PT_
M A ICo nfig ) As Lo ng

, ,

2. 3 Da ta Socket
Data Sock et N I ,
,
Data Socket
Data Socket Server Manager , Da taSocket Server
Dat aSocket 3 , Dst p ( DataSock et
T ranf er Prot ocol, DataSocket )
U RL Data Socket
, U RL,

adsapi32. d ll

, , : FT P Web

I /O , V B ,

O PC

Data Sock et

LabV IEW ,

, Dat aSocket

DA Q Da taSocke

LabV IEW ,

DataSocket DataSocket Serv er ,

G ( Graphical Languag e) ,

, DataSock et

LabV IEW :

24

2004 16 183

, , ; PCL

LabV IEW

, ,

( 3 ) , ,

8 , 8

, LabV IEW ,

DataSock et

,
, , ,
, ,
, , LabV IEW
,

[ 1 ] Advantech Corporation. 32 b LabV IEW drivers


u sers guide.
3 La bV IEW

[ 2 ] N ational Ins truments Corporation. LabV IEW user


manual. July 2000 Edi tio n. Part Number 320999C

01.

, PCL 818 HG

[ 3 ] Travis , Jeff rey. LabV IEW f or ev eryone. pren tice


Hall, 2001.

,
, 1976 ,

( 22 )
,

82C51 int 0, ,
,

, GM S ,

, Newmassag e 1,

, ,

, ,

, ,

[1 ] G SM 07. 05 version 7. 0. 1 release 1998.


[ 2 ] Cellular engine Siemens TC35 t erminal technical
des cription.
[3 ] Zodiac GPS receiver family desig ners guide.
[4 ] Zodiac s erial data in terf ace.
[ 5 ] , .
[M ]. : , 1995.
[6 ] . C [ M ]. :
, 1999.

4 T C 35

[ 7 ] , , , . G SM
[ M ]. : , 1996.

25

You might also like