키사이트테크놀로지스...스트리밍하여 디지털 시리얼 버스를 테스트할 수 있습니다. 계측기 개수가 줄어들어 테스트 셋업이 보다 간편해졌습니다.
Labviewace3.yc.ac.kr/계측장비제어.ppt · PPT file · Web view ·...
Transcript of Labviewace3.yc.ac.kr/계측장비제어.ppt · PPT file · Web view ·...
-
(Communication)
-
A.
LabVIEW .
LabVIEW Serial I/O, GPIB I/O, VISA I/O
.
LabVIEW instrument
-
B. Serial
Serial . serial 1 1bit receiver transmitter . .
Serial 1 serial 1 device . string . carriage return, line feed, semicolon . .
-
LabVIEW Instrument I/O Serial serial
serial . Flow control handshaking . Buffer size VI . Port number . Baud rate, data bit, stop bit, parity
port number serial string( )
-
: Serial .
1. Serial Port Init VI serial .
2. Serial Port Write VI .
3. Bytes at Serial Port VI serial .
4. , Serial Port Read VI .
port number serial buffer byte byte count .
port number serial requested by count
-
C. IEEE 488 (GPIB)
GPIB 488.2 VI GPIB VI . GPIB 488.2 VI LabVIEW IEEE 488.2 . VI National Instruments NI-488.2 IEEE 488.2 . , GPIB VI .GPIB . GPIB , , .1970 HP General Purpose Interface Bus(GPIB) , 1975 IEEE , GPIB IEEE 488 . GPIB, HP-IB, IEEE 488 . GPIB 24 parallel bus. 8 , 5 (ATN, EOI, IFC, REN, SRQ), 3 handshake, 8 . GPIB 8 parallel, byte serial, asynchronous . handshake .GPIB byte(8 bit), ASCII string .
-
3.
1. , GPIB (EOI) .
2. end-of-string(EOS) . EOI EOS , EOI EOS .
3. Listener handshake .
0~30 GPIB . 0 GPIB . GPIB 1~30 . GPIB () . 1 Talker 1 Listener . string Talker Listener handshake. LabVIEW GPIB VI .
-
GPIB VIsLabVIEW GPIB VI Instrument GPIB GPIB 488.2 . VI Low-level 488.2 . GPIB string . GPIB Write GPIB Read.
-
Data string address string GPIB .Mode GPIB write . timeout ms . Error In Error Out cluster error handler VI . Status 16-element Boolean array GPIB .
: GPIB Write VI string VDC;MEAS1? GPIB address 2 . mode(0) timeout ms(25000) .
-
GPIB Read VI .
(1) VI ,
(2) VI ,
(3) VI time limit ,
(4) VI END(EOI asserted) ,
(5) VI end of string (EOS)
address string byte count . byte count mode . data string .
: GPIB Read VI 2 20 . mode(0) time-out ms(25000) .
-
GPIB VI GPIB
: GPIB VI . GPIB VI GPIB write GPIB read . *idn? IEEE 488.2 . identification string .
-
1.File New Panel .
2. Panel Control indicator .
Control indicator pop-up Create Control Create Indicator .
3.Write Data string *idn? . Read Byte Count numeric 100 .
-
1.Diagram Window .
2. .
GPIB Write(Instrument I/O :: GPIB ): string GPIB .
GPIB Read(Instrument I/O :: GPIB ): GPIB .
General Error Handler VI(Time & Dialog ): VI cluster , dialog box .
3. VI .
Identification string Read Data . GPIB , EABO error=6 . *idn? .
* .
-
D. VISA
VISA Virtual Instrumentation Software Architecture. VISA VXI, GPIB, RS-232, LabVIEW . VISA VXIplug & play System Alliance , 35 . VISA instrument I/O . Function Instrument I/O VISA . VISA VISA session . VISA session Path and Refnum .
-
VISA session session identifier. VI I/O configuration .
VISA session VISA Open VISA primitive . VISA Open VISA session . file I/O file refnum .VISA session Instr class. VISA session pop-up class GPIB Instr, Serial Instr, VISA/GPIB-VXI RBD Instr, Generic Event, Trigger Event, VXI Signal Event, Resource Manager .
VISA VISA Open, VISA Write, VISA Read, VISA Close .
-
VISA Open Resource Name VISA session(for class) device . session identifier VISA session device .Resource Name I/O
-
GPIB GPIB keyword . Embedded MXIbus VXI VXI keyword . GPIB-VXI GPIB-VXI keyword .Asynchronous serial ASEL keyword .
Interface SERIALASRL[board][::INSTR]GPIBGPIB[board]::primary address[:: secondary address][::INSTR]VXIVXI[board]::VXI logical address[::INSTR]GPIB-VXIGPIB-VXI[board][::GPIB-VXI primary address]::VXI logical address[::INSTR]
-
VISA Open primary 2 GPIB GPIB::2::0::INSTR instrument descriptor string
VISA Write write buffer string VISA session . dup VISA session handle . UNIX synchronously , asynchronously . return count .
-
VISA Read VISA session data .byte count data read buffer . dup VISA session handle . UNIX synchronously , asynchronously .return count
VISA Close VISA session close.
-
VISA VI GPIB/Serial
VISA write VISA read VISA VI (GPIB Serial) . *idn? GPIB serial , identification string . VISA Fluke 45
-
1. Panel .
VISA session Path & Refnum . VISA Open pop-up .
2.Resource Name string .
2 GPIB : GPIB::2::0::INSTRCOM1 serial: ASRL1::INSTR
* Note : VISA Open Online Help Resource Name .
3.Write string Contrl *idn? . Byte Control 100 .
-
1. .
2. .
VISA Open (Instrument I/O::VISA ) : communica-tion session VISA session refnum .
VISA Write (Instrument I/O::VISA ) : string .
VISA Open (Instrument I/O::VISA ) : .
VISA Open (Instrument I/O::VISA ) : VISA session .
3. VI .
VISA session INSTR . VISA session pop-up VISA class .Resource name serial GPIB .
4.VI VISA. vi .
-
E. LabVIEW Instrument
Instrument S/W . LabVIEW instrument . . . Instrument SubVI Sub VI .
Instrument TemplatesLabVIEW example directory VISA instrument template VI LabVIEW EXAMPLES INSTR INSTTMPL *.LLB . instrument VI, instrument LabVIEW . Instrument LabVIEW instrument template VI . Template VI instrument , VI .
-
F. LabVIEW Instrument
HP34401A Getting Started instrument . HP34401A Multimeter VI .
LabVIEW EXAMPLES INSTR HP34401A.LLB HP34401A Getting Started VI .HP34401A Getting Started VI instrument VI. VI . Help Show Help Help .HP34401A Getting Started VI indicator . instrument documentation . High-level VI configure . VI HP34401A instrument VI . VI VISA .
-
Instrument
3-2 VISA.VI Instrument . VISA.VI .
1. VISA.VI .
2. .
-
1. Diagram Window .
2. Diagram Window .
Edit Create SubVI . SubVI .
-
3. , Edit Create SubVI .
-
4. , Edit Create SubVI .
5. instrument SubVI , SubVI Instrument Initialize .vi, Instrument Application. Vi, Instrument Close. vi Seminar.llb
-
Note: VI , Icon Editor . pop-up Icon Editor
-
6. Instrument SubVI Seminar.llb , SubVI .
7. . Resource Name string GPIB::2::0::INSTR . VI .
2 GPIB , 2 GPIB . Write Buffer string .
8.VI Instrument driver.vi .
a
RS-232 Cable
Serial Port
RS-232 Instrument
C
O
M
P
U
T
E
R
G
P
I
B
I
n
t
e
r
f
a
c
e
G
P
I
B
C
a
b
l
e
G
P
I
B
I
n
s
t
r
u
m
e
n
t
s