gbib ieee488
TRANSCRIPT
GPIB IntroductionGPIB Introduction
Advantech IA Technical Support Team
AgendaAgenda
1. Introduction to Advantech GPIB Card
2. Introduction to IEEE 488.1
3. Introduction to IEEE 488.2 & SCPI
GPIB HistoryGPIB History((GGeneral eneral PPurpose urpose IInterface nterface BBus)us)
GPIB was initially developed by HP, as it’s the interface between their own internal connection devices and called HPIB.
In 1975, IEEE announced IEEE-488-1975 based on HPIB. (It standardizes electrical and mechanical characteristics between Connectors & Cables, and defines the data transmission Handshaking agreement among collecting bus).
In 1978, IEEE made the first revision IEEE-488.1-1987 for defining the firmware.
IEEE-488.2-1987 is a newly defined standard, called Standard Code, Format, Protocols and Common Commands for solving software compatibility problems.
SCPI (Standard Commands for Programmable Instruments)
GPIB GPIB characteristicscharacteristics GPIB can connect 15 devices (0~31 address can be
assigned) to PC (controller), PC handles the transmission on bus.
The total cable length in a system should not exceed 20m (2m max. between a device and next device)
Text mode commands. (Easy to differentiate) Using three handshake line for handshaking to
ensure data transmission accuracy.
PCI-1670 IntroductionPCI-1670 Introduction
SpecificationSpecification
Supports Windows 95/98/Me/NT40/2000/XP and DOS OS. Provides NI-like driver & function libraries. Supports Visual C++ 、 Borland C++
Builder 、 Labwindows 、 Visual Basic 、 Delphi and
Labview…etc. Provides interactive control utility.
– GPIBTool.exe IEEE 488 bus transfer rates up to 1.5M bytes/sec.
– ( Actual rates depend on instrument capabilities )
PCI-1670 can connect to many GPIB PCI-1670 can connect to many GPIB instrumentsinstruments
Oscilloscope
Digital multi-meter Switch
Function generator
Advantech PCI-1670 GPIB Card & GPIB Advantech PCI-1670 GPIB Card & GPIB cablecable
PCI-1670PCI-1670 Performance test Performance test
Advantech PCI-1670
NIPCI-GPIB
Big block data ( 106496 bytes) 1.142 sec 1.116 secSmall data (45 bytes) 0.033 sec 0.033 sec
IEEE 488.1 IntroductionIEEE 488.1 Introduction
GPIB UsageGPIB Usage
The goal of GPIB usageUsing PC to integrate control and data collection on many instruments GPIB is suitable for measurement or test system
In general:Advanced instruments Support GPIBLow price instruments Support RS-232
The transmission speed 8Mbits/s is enough for many instruments
High speed data transmission instruments (2%)Ethernet TCP/IP 100M~1Gbits/s or USB 2.0 480Mbits/s
IEEE 488 Signal LinesIEEE 488 Signal Lines
IEEE 488 bus consists of 16 signal lines, 8 ground lines and shielding
The 16 lines can be divided into 3 categories:1. Eight data lines2. Five interface management lines3. Three handshake lines
For more information about signal lines please refer to PCI-1670 manual
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DIO5
DIO6
DIO7
DIO8
REN
GND
GND
GND
GND
GND
GND
SIGNAL GROUND
DIO1
DIO2
DIO3
DIO4
EOI
DAV
NRFD
NDAC
IFC
SRQ
ATN
SHIELD
GPIB Connector and Pin Assignments
Data lines
Handshake linesData lines
IEEE 488.2 IntroductionIEEE 488.2 Introduction
IEEE 488.2 common IEEE 488.2 common commandscommands
Group Mnemonic Name
Auto configure *AAD Accept address command
Auto configure *DLF Disable listener function command
System data *IDN? Identification query
System data *OPT? Optional identification query
System data *PUD Protected user data command
System data *PUD? Protected user data query
System data *RDT Resourec description transfer command
System data *RDT? Resourec description transfer query
Internal operatio *CAL? Calibration query
Internal operations *LRN? Learn device setup query
Internal operations *RST Reset command
Internal operations *TST? Selftest query
Controller *PCB Pass control back command
Compliance
Optional
Optional
Mandatory
Optional
Optional
Optional
Optional
Optional
Optional
Optional
Mandatory
Mandatory
Mandatory if orthen than C0
Group Mnemonic Name Compliance
Synchronization *OPC Operation complete command Mandatory
Synchronization *OPC? Operation complete query Mandatory
Synchronization *WAI Wait-to-continue command Mandatory
Macro *DMC Define macro command Optional
Macro *EMC Enable macro command Optional
Macro *EMC? Enable macro query Optional
Macro *GMC? Get macro contents query Optional
Macro *LMC? Learn macro query Optional
Macro *PMC Purge macro command Optional
Parallel poll *IST? Individual status query Mandatory
Parallel poll *PRE Parallel poll register enable command if
Parallel poll *PRE? Parallel poll register enable query PP1
Stored settings *RCL Recall command Optional
Stored settings *SAV Save command Optional
IEEE 488.2 common IEEE 488.2 common commandscommands
Group Mnemonic Name Compliance
Status & Event *CLS Clear status command Mandatory
Status & Event *ESE Standard event status enable command Mandatory
Status & Event *ESE? Standard event status enable query Mandatory
Status & Event *ESR? Standard event status register query Mandatory
Status & Event *PSC Power on status clear command Optional
Status & Event *PSC? Power on status clear query Optional
Status & Event *SRE Service request enable query Mandatory
Status & Event *SRE? Service request enable query Mandatory
Status & Event *STB? Read status byte query Mandatory
Trigger *DDT Define device trigger command Optional if DT1
Trigger *DDT? Define device trigger query Optional if DT1
Trigger *TRG Trigger command Mandatory if DT1
IEEE 488.2 common IEEE 488.2 common commandscommands
SCPI SCPI
● Standard Commands for Programmable Instruments
HP-SL ( HP System Language )
TMSL ( Test and Measurement System Language )
SCPI ( HP TMSL + Tek ADID(Analog Data Interchange Format) )
IEEE 488.1, IEEE 488.2, and SCPIIEEE 488.1, IEEE 488.2, and SCPI
SCPI
IEEE-488.2
IEEE-488.1
1987Defined Codes, Formats, Protocols,and Common Commands
1975Defined BusDefined Bus Handshake
1989DefinedStandardCommands
The GPIB command in device The GPIB command in device manualmanual
HP 34401A : 6 1/2-digit, high-performance digital multi-meter manual
HP 33120A : Function/Arbitrary Waveform Generator manual
The GPIB command in device The GPIB command in device manualmanual