Procesni merilni sistemi povezani s klasičnimi merilnimi instrumenti

Slides:



Advertisements
Similar presentations
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Advertisements

I/O Interfaces.
Universal Serial Bus Grant Heileman. The History of USB In 1994 a collaborative effort to design a standard for peripheral devices was made between Compaq,
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Local Asynchronous Communication and RS-232. Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism.
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
1 Chapter Four Making Connections. 2 Introduction Connecting peripheral devices to a computer has, in the past, been a fairly challenging task Newer interfaces.
CSCI 4550/8556 Computer Networks Comer, Chapter 5: Local Asynchronous Communication (RS-232)
COMP3221: Microprocessors and Embedded Systems
EET Advanced Digital Chapter 21 Serial Ports.
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
USB Josh Rickmar John Marcoux. Topics Purpose and Goals History Bus Design Power Differential Signaling Connectors Changes in USB 3.0.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Shadi Agel Pongsakorn Bunyaphriruang Chih-Chung Chang Winnie Chia USB 2.0 VS FireWire.
USART Communication using the RS standard ETEC6416.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
National Institute Of Science & Technology GPIB Controllers Ashutosh Pradhan 1 EI DECEMBER-2004 GPIB CONTROLLERS Technical Seminar Presented By.
Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 11/06/20141Input/Output.
Peripheral Busses COMP Jamie Curtis. PC Busses ISA is the first generation bus 8 bit on IBM XT 16 bit on 286 or above (16MB/s) Extended through.
Introduction to USB Development. USB Development Introduction Technical Overview USB in Embedded Systems Recent Developments Extensions to USB USB as.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
Universal Serial Bus - USB Historical Perspective The Universal Serial Bus was originally developed in 1995 by a group of industry.
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
Universal Asynchronous Receiver/Transmitter (UART)
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Universal Asynchronous Receiver/Transmitter (UART)
FUNDAMENTALS OF NETWORKING
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
EET 2259 Unit 14 Instrument Control
Serial Communications
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Testing PCI Express Generation 1 & 2 with the RTO Oscilloscope
Chapter 6 Input/Output Organization
Serial mode of data transfer
RS-232 Communications.
IEEE 1394, USB, and AGP High Speed Transfer
Input/Output and Communication
Chapter 11: Inter-Integrated Circuit (I2C) Interface
Operating Systems (CS 340 D)
SERIAL PORT PROGRAMMING
Serial Communications
Group Manager – PXI™/VXI Software
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
RS-232 Communications.
C_ITCO011/C_ITCO111 LECTURER: E.DONDO
Serial Communication: RS-232 (IEEE Standard)
E3165 DIGITAL ELECTRONIC SYSTEM
Local Asynchronous Communication (RS-232)
USB : Universal Serial Bus
EET 2259 Unit 14 Instrument Control
Asynchronous Serial Communications
Chapter Overview Understanding Expansion Buses
Serial Communication Interface: Using 8251
Serial Communication Interface
modern electronic instrumentation unit5
I/O BUSES.
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Chapter 6 Transmission of Digital Data Interfaces and Modems
Universal Serial Bus (USB)
PIC Serial Port Interfacing
Ethernet 16EC351 Computer networks unit II Mr.M.Jagadesh,AP/ECE.
PIC Serial Port Interfacing
Serial Communications
Presentation transcript:

Procesni merilni sistemi povezani s klasičnimi merilnimi instrumenti Sodobna koncepcija avtomatsko podprte meritve predstavlja povezavo PC, merilnega instrumenta in drugih naprav za zajemanje veličin. Razlogi za povezavo PC z merilnimi instrumenti so: Kvaliteta meritev, točnost, zanesljivost Ponovljivost meritev Programska fleksibilnost Daljinsko krmiljenje instrumentov in odvzem vrednosti na krajevno ločenih mestih Prikaz in obdelava merilnih vrednosti

Avtomatski merilni sistemi Kontrolo merilnih instrumentov in zajemanje merilnih vrednosti preko PC lahko opravimo, če poznamo: Tip konektorja in instrumenta Tip uporabljenega kabla Komunikacijski protokol Programsko opremo Računalnik Instrument We do not discuss the serial or GPIB libraries in this course. We only use VISA. Let the students know that we will discuss the lower level functions later in the module Briefly describe a typical system containing several GPIB devices connected to a computer. Describe that one device is the System Controller and the others are Talkers/Listeners. Each device on the GPIB has a unique address.

Povezave instrument-PC RS232

Serijska komunikacija RS-232 Instrument RS-232 Cable PC Serial Port Popularna komunikacija med PC in periferijo, instrumentacijo Sinhroni ali asinhroni prenos preko dvožilnega kabla (parica) Počasen prenos (19200Baud, 116kBaud) Dolžina prenosa 17m do 3000m Serial Port Communication Serial communication is a popular means of transmitting data between a computer and a peripheral device such as a programmable instrument or even another computer. Serial communication uses a transmitter to send data, one bit at a time, over a single communication line to a receiver. You can use this method when data transfer rates are low or you must transfer data over long distances. Serial communication is popular because most computers have one or more serial ports, so no extra hardware is needed other than a cable to connect your instrument to the computer (or two computers together). Serial communication requires that you specify four parameters: the baud rate of the transmission, the number of data bits encoding a character, the sense of the optional parity bit, and the number of stop bits. Each transmitted character is packaged in a character frame that consists of a single start bit followed by the data bits. A typical character frame encoding the letter “m” is shown in the slide above. Baud rate is a measure of how fast data is moving between instruments that use serial communication. RS-232 uses only two voltage states, called MARK and SPACE. In such a two-state coding scheme, the baud rate is identical to the maximum number of bits of information, including “control” bits, that are transmitted per second. MARK is a negative voltage and SPACE is positive; the slide above shows how the idealized signal looks on an oscilloscope. The truth table for RS-232 is: Signal > +3 V = 0 Signal < -3 V = 1 The output signal level usually swings between +12 V and -12 V. The “dead area” between +3 V and -3 V is designed to absorb line noise.

Serial Communication Terminologija Baud rate – prenos bitov na sekundo Data bits – podatkovna beseda Parity – paritetni bit (preverjanje pravilnega podatka) vedno 1 Stop bits – 1 invertiran bit Flow control – programsko ali strojno preverjanje prenosa Instructor: See how many students are going to use or are interested in Serial I/O. Then cover the material in this and the next four slides accordingly. Go over the following Serial I/O terminology: Baud rate—How many bits per second are transferred on the serial cable. Data bits—How many bits represent a data value. Parity—Optional error checking bit that is added to the data. Stop bits—Certain number of bits added to the end of each data transfer. Flow control—Optional hardware or software handshaking parameters for communicating with a device.

Serijski konektor RS-232 Ima večina PC 9-pin ali 25-pin konektor En oddajnik, 10 sprejemnikov 8-pin Diferencialana napetost (±2V) RS-485 32 oddajnikov, 32 sprejemnikov Uporaba v industrijski avtomatizaciji Pin DTE DCE 1 DCD Input Output 2 RxD I O 3 TxD O I 4 DTR O I 5 Com - - 6 DSR I O 7 RTS O I 8 CTS I O 9 RI I O There are several recommended standards (RS) for serial communication. Each varies in hardware and software specifications. The students must be familiar with their instrument and what connector is used before you can begin controlling that device with their computer. There are three main Serial I/O types: RS-232—Connector found on most PCs. This is a single-ended communication method where only one device can be connected per port. Two connector types, 8- or 25-pin. Two configurations, DCE or DTE. RS-422—Connector found on most Macs. This is a differential communication method. Connector has 8 pins. RS-485—Differential and multi-drop serial communication method used mainly in industrial automation. It has the advantage of allowing longer cable lengths compared to RS232. There are various standards for allowing multiple devices to share the same cable. Not covered in this course.

GPIB komunikacija GPIB Instrument GPIB Cable GPIB Interface GPIB Communications GPIB instruments offer test and manufacturing engineers the widest selection of vendors and instruments for general-purpose to specialized vertical market test applications. GPIB instruments have traditionally been used as standalone benchtop instruments where measurements are taken by hand. Many GPIB instruments used today are still used in this fashion. History In 1965, Hewlett-Packard designed the Hewlett-Packard Interface Bus (HP-IB) to connect their line of programmable instruments to their computers. Because of its high transfer rates (nominally 1 MB/sec), this interface bus quickly gained popularity. It was later accepted as IEEE Standard 488-1975. Today, the name General Purpose Interface Bus (GPIB) is more widely used than HP-IB. Because the original IEEE 488 document contained no guidelines for a preferred syntax and format conventions, work continued on the specification to enhance system compatibility and configurability among test systems. This work resulted in a supplement standard IEEE 488.2, Codes, Formats, Protocols, and Common Commands, for use with IEEE 488 (which was renamed to ANSI/IEEE Standard 488.1-1987). IEEE 488.2 does not replace IEEE 488.1. Many devices still conform only to IEEE 488.1. IEEE 488.2 builds on IEEE 488.1 by defining a minimum set of device interface capabilities, a common set of data codes and formats, a device message IEEE 488.2 adopted IEEE 488 becomes IEEE 488.1 HP-IB becomes IEEE 488 HP designs HP-IB IEEE 488.2 revised SCPI introduced HS488 proposed HS488 approved 1965 1975 1987 1990 1992 1993 1999 LV Instr 1-7

Povezave PC in merilnih instrumentov Linearna topologija (serijska vezava) Topologija zvezde (paralelna vezava)

GPIB-kartica za PC

GPIB Hardware lastnosti Maksimalna razdalja med instrumenti = 4 m (2 m povprečna) Maks. dolžina kablov = 20 m Maks. število instrumentov = 15 (2/3 vključenih) 1 12 13 24 DIO5 DIO6 DIO7 DIO8 REN GND (TW PAIR W/DAV) GND (TW PAIR W/NRFD) GND (TW PAIR W/NDAC) GND (TW PAIR W/IFC) GND (TW PAIR W/SRQ) GND (TW PAIR W/ATN) SIGNAL GROUND DIO1 DIO2 DIO3 DIO4 EOI DAV NRFD NDAC IFC SRQ ATN SHIELD Hardware Specifications The GPIB is a digital, 24-conductor parallel bus. It consists of eight data lines (DIO 1-8), five bus management lines (EOI, IFC, SRQ, ATN, REN), three handshake lines (DAV, NRFD, NDAC), and eight ground lines. The GPIB uses an eight-bit parallel, byte-serial, asynchronous data transfer scheme. This means that whole bytes are sequentially handshaked across the bus at a speed that the slowest participant in the transfer determines. Because the unit of data on the GPIB is a byte (eight bits), the messages transferred are frequently encoded as ASCII character strings. Additional electrical specifications allow data to be transferred across the GPIB at the maximum rate of 1 MB/sec because the GPIB is a transmission line system. These specifications are: A maximum separation of 4 m between any two devices and an average separation of 2 m over the entire bus. A maximum cable length of 20 m. A maximum of 15 devices connected to each bus with at least two-thirds of the devices powered on. If you exceed any of these limits, you can use additional hardware to extend the bus cable lengths or expand the number of devices allowed. Note For more information about GPIB, visit the National Instruments GPIB support website at http://www.ni.com/support/gpibsupp.htm.

GPIB signali in opis posameznih linij GPIB vodilo sestavlja 16 signalnih linij in 8 linij mase. Signalne linije lahko glede na funkcijo razdelimo v tri skupine: 8 podatkovnih linij (Dat lines) 3 linije za izmenjavo podatkov (Handshake lines) 5 linij za upravljanje vmesnika (Interface management)

USB – Universal Serial Bus Uporaba za povezovanje periferije s PC Hitrost prenosa podatkov V. 1.0, 1996: 200 kB/s (1.5 Mb/s) V. 1.1, 1998: 1.5 MB/s (12 Mb/s) V. 2.0, 2000: 60 MB/s (480 Mb/s) V. 3.0, 2008: 625MB/s (5Gb/s) Povežemo lahko do 127 naprav Podatke pošiljamo paketno, vsak paket vsebuje kodo naprave Široka uporabnost: >95% PC Node Hub Host Root Hub The Universal Serial Bus (USB) is a plug & play bus developed by a group of computer industry leaders. It is a standard held privately by the USB-Implementers Forum (USB-IF), an independent corporation responsible for overseeing the development and compliance of the USB standard. The promoters group started with Intel, Microsoft, Compaq, and NEC, and now includes Hewlett-Packard, Lucent, and Philips. With strong marketing power and considerable backing from the promoters, USB devices flourish, entering almost every area of the computer peripheral market. Using USB, you connect peripheral devices (such as a keyboard and mouse) to PCs (hosts) either directly or through a hub. Bandwidth is shared with non-Test and Measurement devices. USB ports are readily available on PCs, making the bus an attractive possibility for instrument control. The USB-IF has released three specifications, the main goal of which is to define a new communication speed. Version 1.0 released in January 1996 defines a low speed of 200 kBytes/s. Version 1.1 released in November 1998 is a minor revision providing some specification bug fixes and a full speed of 1.5 Mbytes/s. Version 2.0 released in April 2000, is available on new computers, and defines a high speed of 60 Mbytes/s. The topology of the bus consists of: hosts, which manage attach/detach of peripherals and initiate transactions; hubs, which provide additional connectivity and serve as bi-directional repeaters; and nodes (peripherals), which react to requests from hosts. Instrument Control – The Future of GPIB, VXI and PXI ni.com

Instrument Drivers Poiščemo program za ustrezen instrument Application Development Environment (ADE) Poiščemo program za ustrezen instrument Enostavna kontrola instrumenta in merjenje Zmanjšamo čas programiranja in meritev Instrument hitro vključimo v atomatiziran sistem merjenja Instrument Commands (*idn?, meas?) Instrument Driver Bus Communication Protocol (configure, read, write, trigger) Although VISA simplifies instrument control programming significantly, it still requires low-level knowledge of instrument communication and of instrument command sets. As an improvement, instrument and software vendors began writing instrument drivers. Instrument drivers are a set of high-level software routines to control a programmable instrument. For example, instead of sending four commands to an oscilloscope to set it up to perform an acquisition, an instrument driver would have one function call that configures the scope. Instrument drivers simplify instrument control and significantly reduce the amount of time required to develop an instrument control application. Not only do instrument drivers eliminate the need for the user to learn new command sets for each instrument, but they also provide a common architecture and interface to the user. Instrument © National Instruments Corporation Instrument Control – The Future of GPIB, VXI and PXI