Fieldbus & Industrial Networking


Enhanced buses boost PC-based measurement

July 2005 Fieldbus & Industrial Networking

As PC technology has advanced, the ability to use standard desktop and portable computers for sophisticated test, control and design applications has improved dramatically.

Economies of scale have made it much more cost effective to utilise the GHz processing and Gigabytes of memory on standard computers than for vendors to install processors and memory in measurement instruments. At the same time, commercially available silicon technologies designed for modern electronics have been repurposed by the test and control industries. For example, analog and digital converters originally designed for electronic devices like cellular phones and DVD players now also provide incredible speed and accuracy for PC-based data acquisition devices.

These high production commercial components are available at fractions of the cost and in much faster design cycles than it would take for instrumentation vendors to design their own components. By using these advances in PC and silicon technologies, low-cost PC-based plug-in devices can now perform measurements and control with accuracy and processing speed never before available with traditional instruments.

Data bottlenecks

As acquisition rates increase, a common bottleneck for these virtual instruments has been the ability to quickly and easily transfer data from the measurement device into PC memory. Traditional bus technologies such as the general purpose interface bus (GPIB) and serial RS/232 often require instrumentation vendors to install local memory on the instrument itself to temporarily store data that cannot be transferred to the PC fast enough because of bus bandwidth limitations. As the PC industry standardised on the PCI bus over the past decade, plug-in devices designed for this bus realised a 10-times increase in data bandwidth versus GPIB, and in many cases the requirement for deep onboard memory was reduced. At the same time, cabled bus technologies such as USB have become extremely popular for test and measurement applications because of their portability and dummy-proof usability. As virtual instruments acquire more data at faster rates by using the latest analog and digital converter technologies, systems using PCI and USB have again encountered the bus itself as the limiting factor in efficiently transferring data to PC memory. To address this increasing hunger for bandwidth, new technologies including PCI Express and high-speed USB 2.0 are now making it possible to stream huge amounts of data from devices to the PC while ensuring backward compatibility and improving ease-of-use.

PCI Express

PCI Express was jointly developed by PC and peripheral vendors including Intel and began shipping in standard desktop PCs last year. Already, most desktop machines from the leading suppliers include at least one PCI Express slot. PCI Express maintains software compatibility with traditional PCI, but replaces the physical bus with a high-speed (2,5 Gb per second) serial bus. Data is sent in packets through pairs of transmit and receive signals called lanes, which enable 250 MB per second bandwidth per direction, per lane. Multiple lanes can be grouped together into x1 ('by-one'), x2, x4, x8, x12, x16, and x32 lane widths to increase bandwidth to the slot. And unlike PCI, which divides bandwidth between all devices on the bus, PCI Express provides dedicated bandwidth to each slot in the system.

Significant improvements in bandwidth and latency

Applications such as data acquisition and waveform generation require guaranteed bandwidth and deterministic latency. Sufficient bandwidth is required to ensure that data can be transferred to memory fast enough without being lost or overwritten. Latency is the time it takes for a signal such as a configuration or start command to be sent and received. Long latency is characteristic of buses such as Ethernet, and is a primary reason this bus has not been widely adopted for PC-based test. The original PCI specification did not address these issues because high-speed data streaming applications on the PC were not prevalent at the time it was introduced. As a result, data acquisition devices that adopted the bus required onboard memory for data buffering to handle the varying bandwidths available during data transfers. Today, isochronous data transfers such as uncompressed streaming audio and video require the I/O subsystem of the PC to provide guaranteed bandwidth and deterministic latency to prevent data glitches. To address these needs, PCI Express incorporates an isochronous data transfer mode, allowing a device to reserve a defined amount of bandwidth with deterministic latency. Data acquisition applications also benefit from this feature because PCI Express devices require less memory than traditional PCI for data buffering purposes.

Figure 1
Figure 1

PCI Express dramatically improves data bandwidth. The initial signalling frequency provided by the specification of 2,5 Gb/s provides up to 60 times (with a x16 slot) the usable bandwidth of 32 bit, 33 MHz PCI, and this signalling frequency is expected to increase with advances in silicon technology to 10 Gb/s/direction - the practical limit for electrical signals in copper. And because of the lane topology of PCI Express, data acquisition vendors can implement a PCI Express connector with the number of lanes suitable to the requirements of the device. Devices with smaller connectors can be 'up-plugged' into larger host connectors on the motherboard, improving hardware compatibility and flexibility.

Software compatibility is paramount

Software compatibility is also ensured by the PCI Express specification. The configuration space and programmability of PCI Express devices are unchanged from the traditional PCI methodology. In fact, all operating systems are able to boot without modification on a PCI Express architecture. At boot time, the operating system can discover all of the PCI Express devices present and then allocate system resources such as memory, I/O space, and interrupts to create an optimal system environment. And because the PCI Express physical layer is transparent to application software, programs originally written for PCI devices can run unchanged on PCI Express devices that have the same functionality. This backward compatibility of PCI Express software with traditional PCI is critical in preserving the software investments of both vendors and users.

USB 2.0 improves bandwidth, ease-of-use for external devices

Similar to the improvements PCI Express offers plug-in devices; USB 2.0 high speed has introduced improvements in bandwidth and signal latency for externally cabled data acquisition devices. USB has become the de-facto standard for cabling peripheral devices to the PC, and data acquisition devices are no exception. The plug-and-play and hot-pluggable features of the bus make it extremely easy to use, enabling a connected device to be automatically detected and configured by the host PC. Drivers are dynamically loadable and unloadable, with no need to power down the device or PC during installation. Another unique benefit to USB 2.0 is that the bus provides power on the same cable that carries the data signal, often simplifying connectivity and portability by eliminating dedicated AC power cables.

Figure 2. Each PCI Express slot has dedicated bandwidth to PC memory, unlike PCI, which shares bandwidth
Figure 2. Each PCI Express slot has dedicated bandwidth to PC memory, unlike PCI, which shares bandwidth

The USB 2.0 specification made significant improvements in both bandwidth and latency versus USB 1.1. The 1,5 MB/s rate provided by USB 1.1 quickly became a limiting factor for large data size transfers such as high-speed data acquisition. USB 2.0 improved that rate by 40 times, enabling bandwidths up to 60 MB/s. Like PCI Express, USB 2.0 provides isochronous transfers, but also adds another three data transfer modes that can be enabled by the manufacturer. For example, the bulk transfer mode provides data receive confirmations to ensure error-free transfer for applications such as data acquisition in which data integrity is paramount.

The release of the USB 2.0 standard created a total of three classes of USB devices: low-speed (1,5 Mb/s), full-speed (12 Mb/s), and high-speed (480 Mb/s) devices. USB 2.0 is both forward and backward compatible with USB 1.1, and low-speed, full-speed, and high-speed devices can all coexist on a single USB port. In addition to bandwidth improvements, USB 2.0 also introduced new ways to improve the efficiency of data transfers. Data frames - the time segments allotted for packet transfers - were cut from 1 ms into eight 125 µs frames, and the number of data bytes transferred per frame was significantly increased. Because large data packets can consume large amounts of bandwidth, new handshaking commands were introduced to ensure that the host is ready and capable of receiving the entire queued data packet. USB 2.0 also introduced split transactions, which prevent full-speed and low-speed devices from slowing the bus down. With split transactions, the host can communicate with high-speed devices on the bus without waiting for slower devices to return communication.

Looking forward

As PC bus technologies like PCI Express and USB 2.0 continue to improve data bandwidth, performance and ease-of-use, the benefits of using PC-based devices for measurements and control are even more dramatic. In fact, by virtue of being based on computer technology, virtual instruments will always improve as new communication, processing and memory technologies come to market. As PCI Express and USB 2.0 continue in their adoption cycles, there will be several years of hybrid systems that use these new technologies in addition to traditional PCI and USB 1.1 buses and devices. These transitions will be abridged by the software compatibilities of the new technologies with their predecessors as well as the physical compatibility between USB 1.1 and USB 2.0. But the benefits of these two new technologies are clear, and as PC-based test and control systems continue to push bandwidth requirements, PCI Express and USB 2.0 will enable faster data transfers to PCs where the ever increasing processor speeds and memory depths can be fully utilised. USB 2.0 has spurred a whirlwind of new easy-to-use data acquisition devices, and with the release of PCI Express, the next generation of plug-in data acquisition devices adopting the new bus standard is sure to follow.

For more information contact Michael Hutton, National Instruments, 011 805 8197.





Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Why secure industrial communication depends on deployment as well
Fieldbus & Industrial Networking
The Industrial Security Harmonisation Group has released a joint industry perspective highlighting a critical truth in industrial cybersecurity: secure communication is not determined by protocols alone, but by how they are deployed and managed in real-world environments.

Read more...
A single platform for all automation functions
Beckhoff Automation Fieldbus & Industrial Networking
The introduction of TwinCAT in 1996 marked a decisive evolutionary step for PC-based control. Today, the TwinCAT platform combines all automation functions in a strictly deterministic real-time environment, from PLC and motion control through CNC and measurement technology and beyond, to vision, robotics and pioneering AI tools.

Read more...
Loop signature Part 2-4: Feedforward Control: Part 3
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
In the previous articles in this series, the basic theory behind feedforward control was discussed, and it was also shown how to apply feedforward in practice. In this article, it will be shown how well feedforward can work in practice by giving a couple of examples.

Read more...
Control Station and Dimension Software partner to connect control performance monitoring with enterprise operations intelligence
Fieldbus & Industrial Networking
Control Station has entered into a strategic technology partnership with Dimension Software, a leading provider of industrial operations management platforms. The collaboration connects Control Station’s PlantESP control loop performance monitoring platform with Dimension Software’s Asset Intellect operations intelligence environment, enabling manufacturers to operationalise control performance insights across their organisations.

Read more...
PCIe digitiser cards for optimal GHz signal acquisition and analysis
Vepac Electronics Fieldbus & Industrial Networking
The addition of two new PCIe Digitiser cards from Spectrum Instrumentation extends the company’s flagship M5i series to deliver optimal GHz signal acquisition and analysis capabilities.

Read more...
Precise, synchronised control for automated steel mesh handling system
Fieldbus & Industrial Networking
Automation specialist Hambi Maschinenbau has developed a world-first system that automates the cutting, handling and stacking of heavy reinforcing steel mesh – a task that previously required up to six human operators.

Read more...
Loop signature Part 2-3: Feedforward Control: Part 2
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
Feedforward control tuning is not nearly as critical as feedback tuning, and fairly simple models are usually fine for the purpose in hand.

Read more...
Upgrading radiological surveillance systems in nuclear facilities
Omniflex Remote Monitoring Specialists Fieldbus & Industrial Networking
Nuclear plant operators face an uncomfortable reality. Many of the control and monitoring systems still in use today were never designed to support the full operational lifespan of the facilities they serve.

Read more...
Next-level CAN Software enables easy access to CAN XL
Industrial Data Xchange (IDX) Fieldbus & Industrial Networking
With the release of its PCAN-Explorer 7, PEAK delivers a major update that adds full support for CAN XL, multiple symbol files per connection, Python scripting and flexible licensing including floating licenses.

Read more...
Loop signature Part 2-2: Feedforward Control: Part 1
Michael Brown Control Engineering Fieldbus & Industrial Networking
Feedforward control is a powerful technique that can dramatically improve control variance in cases where load changes cause big deviations from setpoint and the actual process dynamics are too slow to allow the feedback controller to operate fast enough to catch these disturbances.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved