Documente Academic
Documente Profesional
Documente Cultură
THE
Taking Mobile Phone Coverage to Rural Areas With an Off-Grid Solution PAGE 28
ni.com
Inside NI
Executive Editor John Pasquarette Editor in Chief Sarah Beck Managing Editor Lacy Rohre Associate Editors Jontel Moran, Brittany Wilson Contributing Editors Johanna Gilmore, Madison Lax Creative Manager Joe Silva Project Manager Megan Hammons Art Director Larry Leung Illustrator Komal Deep Buyo Design and Production Group Manager Joe Silva Production Artist Komal Deep Buyo Photo Editors Nicole Kinbarovsky, Allie Verlander Image Coordinator Kathy Brown Production Specialist Richard Buerger Circulation Coordinator Brande Yarnell
CONTENTS
3 6 8 10
The Digital Energy Revolution
12 14 16 18
Estimate the Uptime of Your PXI System Developing Problem-Solving Skills With Simulation Special Focus: Hunting the Higgs Boson Particle 5 Questions for Choosing the Right Measurement Bus
21 23 26 30
Increase Your Productivity With DAQ Proficiency Hack Your Car With NI CAN Interfaces and LabVIEW New NI Single-Board RIO Devices Add Analog I/O and More Connectivity
NI-USRP 1.1 Driver Enhances Software Defined Radio Research Capabilities Be More Confident in Your CompactRIO Designs NIWeek 2012 Early Bird Registration Ends May 31
Cover
Control System
VA (AC)
DC Power Bus
Energy Source
Power Inverter
3-Phase AC System
Figure 1. Typical elements of a digital electronic power control system include an energy source, power inverter, output filter stage, and three-phase AC system.
ni.com
571
40 0
7
Single-Core DSP
FPGA
Single-Core DSP
FPGA
Figure 2. The recent incorporation of mini hardcore DSPs into FPGA fabric has dramatically increased the performance of FPGAs compared to single-core DSPs as measured in multiply-accumulate operations per second (MACS).
The performance per dollar of FPGAs doubles every 14 months, which is just longer than the 12 to 13 months it takes a team of 15 engineers to develop a custom embedded design. Keeping up with the exponentially accelerating pace of Moores law is moving engineering managers to rely on commercial off-the-shelf (COTS) technology. This is the motivation for devices like the new NI Single-Board RIO general-purpose inverter control (GPIC) producta cost-effective, off-the-shelf board with all the I/O for power electronics control and the latest FPGA and real-time processor technology. Modern FPGAs provide an ideal architecture for power electronics control systems because they enable you to place custom high-frequency digital pulse-width modulators (DPWMs) and digital control circuitry in dedicated hardware. The inherent field reconfigurability of FPGAs is especially beneficial for smart grid applications from the perspective of long-term support, maintenance, and interoperability with evolving standards and communication protocols. System-level graphical programming languages and the emergence of COTS hardware targets optimized for high-volume commercial deployment, such as the new NI GPIC platform, provide an alternative to fully custom hardware development. Reconfigurable COTS systems eliminate significant cost and risk associated with custom board design for high-volume commercial deployment. Completing the Design V for Power Electronics Digital energy technologies play a central role in increasing the performance and reducing the cost of solar, wind, and energy storage systems. National Instruments R&D is making investments to provide a comprehensive toolchain for the digital energy revolution. The vision is to complete the design V for power electronics. The design V, which you may know from the automotive and aerospace industries, describes an
integrated process for product design and test. NI is investing at each step of the V (see Figure 3) to improve in the design, prototyping, and deployment of commercial digital energy products. The goal is to eliminate issues that reduce the productivity of embedded design teams. The graphical system design approach begins with co-simulation, which enables you to develop LabVIEW FPGA code within a high-fidelity simulation environment that captures the interaction between the digital control system and analog power electronics. LabVIEW FPGA and the NIMultisim power electronics circuit simulator automatically adjust the simulation timestep to capture the fast transient behavior of the analog circuitry and its interaction with the FPGA-based control system. For example, if the current in an inductor is ringing, the simulation automatically slows down to capture the effect on the digital control system. Whats most important is to enable teams to develop their actual LabVIEW FPGA code within the simulation environment and then move it to a physical FPGA target with little effort. This enables a completely bidirectional development path. Changes made to the software at any stage from prototype to post-production automatically update anywhere that code is referenced in the toolchain. The goal is to write the embedded systems code on day one and continually improve it throughout development. You can design the power electronics circuitry in parallel with the FPGA software and the automated test code to help you evaluate the nonlinear design trade-offs between energy efficiency, cost, and component lifetime. This creates the opportunity to optimize for multiple design goals simultaneously, even given difficult trade-offs. To eliminate the need to manually tweak and possibly contaminate generated code, the FPGA resource utilization efficiency must be comparable to handwritten register transfer level (RTL) code. Also, the design platform must include fixed-point math blocks and power electronics IP libraries that enable efficient development of control,
Q2 2012
signal processing, and power analysis algorithms. Finally, the toolchain must target prevalidated COTS control boards that meet the specific control, I/O, performance, and cost needs of high-volume commercial digital energy products. On the right side of the power electronics design V is the challenge of how to test complex, high-power digital energy systems. The biggest issue in the past was a lack of real-time simulators for validation and verification. This is another area in which FPGA technology provides a solution. The same graphical system design tools are suitable for developing fast, real-time hardware-in-the-loop (HIL) simulators for the comprehensive validation of grid-tied power electronics systems. Imagining the Future It may be hard to imagine a world in which energy becomes a software problem, just looking for the right algorithms to efficiently convert, control, transfer, and store it. Thats what the digital energy revolution makes possible. How will we know it has happened? You can call it a digital energy technology if the system is digitized and digitally
controlled, networked, field reconfigurable, modeled, simulated, and improving exponentially in performance per dollar each year. What grand challenges of engineering will the digital energy revolution help us address? One thing is clearthese technologies are rapidly increasing in performance and falling in price, and they lie at the heart of renewable energy, smart grid, and electric vehicle systems.
Brian MacCleery brian.maccleery@ni.com Brian MacCleery is the principal product manager for clean energy technology at National Instruments. His mission is to facilitate the design, prototyping, and deployment of advanced embedded systems technologies to help make clean energy less expensive and more abundant than fossil fuels. To join the conversation about power electronics, visit the developer community at ni.com/powerdev.
Design
Graphical Co-Simulation
Test Cells
Power Electronics Testing
Prototype
Rapid Control Prototyping
HIL Testing
Real-Time HIL Simulation
Deploy
Commercial Deployment
Control System
VA (AC)
DC Power Bus
VB (AC)
M/G
VC (AC)
Energy Source
Power Inverter
3-Phase AC System
Figure 3. NI is working to complete the digital energy design V by providing a comprehensive toolchain for the rapid design, commercialization, and validation testing of digital power electronics control systems.
ni.com
Category Feature
In addition to the NI-DAQmx API, you should understand the following: Ground loops Virtual channels Scaling Triggering Logging Absolute accuracy Basic synchronization
n n n n n n n
Architect Complex DAQ Systems If you plan to measure hundreds of channels, stream large quantities of data to disk, perform advanced control, synchronize measurements across multiple chassis, or manage deployed systems, you should invest time to become an expert in those concepts specific to your application challenges. To perform these advanced tasks, you should be comfortable with the following concepts: Advanced timing and synchronization Property node use Hardware-timed single point acquisition NI-DAQmx events Performance optimization Signal import/export State machine model (verified, committed, reserved, and so on) System API and device management
n n n n n n n n
Develop DAQ Systems Most DAQ users should exhibit this level of proficiency. Your application or job determines whether you need more than basic measurement skills. If you plan to trigger acquisitions, develop systems with multiple measurement types, or synchronize multiple devices, you need to be comfortable using NI-DAQmx API functions to build your application.
Performing basic measurements or data logging Generating simple waveforms or toggling digital lines Running basic tests
Triggering acquisitions or synchronizing measurement tasks Developing systems with multiple measurement types Synchronizing multiple devices or modules
Measuring hundreds of channels or streaming large quantities of data to disk Performing advanced control Synchronizing across multiple chassis Managing deployed systems
Figure 1. Choose the level of proficiency that best fits your application.
Q2 2012
ni.com/gettingstarted
LabVIEW Core 1
Required Courses and Content Recommended Courses and Content Optional Courses
1 LabVIEW Core 1, or an equivalent level of experience, is required to complete the exercises in the Data Acquisition and Signal Conditioning course. However, if you plan to use DAQ products in the LabVIEW programming environment, NI recommends pursuing additional LabVIEW training.
Figure 2. Identify the skills you need for your project and the learning resources you can use.
Become Proficient With DAQ Products See Figure 2 for a map of resources to help you develop your DAQ skills: Getting Started With NI Products at ni.com/gettingstarted LabVIEW Core 1 training course Data Acquisition and Signal Conditioning training course Introductory and advanced training resources at ni.com/daq/setup/
n n n n
Mallori Martin mallori.martin@ni.com Mallori Martin is the program manager for customer training and certification at National Instruments. She earned a bachelors degree in biomedical engineering from Texas A&M University.
Add Someone With These Skills to Your Team Many National Instruments Alliance Partners have already invested in the level of proficiency you need for your application. If your DAQ project requires specific skills and you are unable to develop those skills in the time allotted for your project, you can connect with an Alliance Partner that can provide consulting services while you get up to speed.
This article is the second installment in a four-part series on proficiency to be featured quarterly in Instrumentation Newsletter. The first installment on RIO proficiency was featured in the first quarter 2012 issue.
To see DAQ training options, visit ni.com/newsletter/daqtraining.
ni.com
Feature
Figure 2. This is an example user interface of an application that reads information from a car.
Q2 2012
Figure 3. Hack your own car by developing an application on your laptop with the Automotive Diagnostic Command Set, connecting your laptop to your NI CAN interface, and then cabling your CAN interface directly to your cars OBD-II port.
that. But before you turn off your check engine light, remember that your engine still stores the DTCs for some time and records the last time the light was turned off, so it still needs to be cleared by a professional. How to Diagnose Your Car With NI Tools Here are the National Instruments tools you need to get this information and evaluate your own car: NI LabVIEWDevelop your own vehicle diagnostic application with this system design software. NI Automotive Diagnostic Command SetUse the command sets high-level and intuitive APIs with LabVIEW and NI CAN hardware interfaces to collect vehicle diagnostics while avoiding the low-level details of diagnostic protocols. NI USB CAN interfacesCommunicate with your diagnostic vehicle network using these portable CAN interfaces. CAN OBD-II cableConnect your NI CAN interface directly to the OBD-II port on your car with this cable.
n n n n
With the open development environment of LabVIEW and the various hardware items that you can interact with directly using software, this isnt your average diagnostics reading tool. If you want to take other types of measurements like analog inputs, you can combine this tool with your diagnostic readings in the same application for a more complete view of your vehicles electronic network.
Noah Reding noah.reding@ni.com Noah Reding is a product manager for the automotive industry at National Instruments. He earned his bachelors degree in electrical engineering from Vanderbilt University. To learn more about the NI Automotive Diagnostic Command Set, visit ni.com/newsletter/commandset.
After you have all of the tools, you can develop your desired application in LabVIEW and connect your system directly to your vehicle.
ni.com
Product In-Depth
New NI Single-Board RIO Devices Add Analog I/O and More Connectivity
Figure 1. New NI Single-Board RIO devices feature analog and digital I/O along with more peripheral connectivity options in a small 4.05 in. x 6.05 in. size.
Figure 2. The NI Single-Board RIO platform provides several options for built-in I/O as well as I/O customization through the RMC connector.
National Instruments recently introduced four new NI Single-Board RIO devices. Each device features a 400 MHz real-time processor and a Xilinx Spartan-6 FPGA that you can program with NI LabVIEW software, the LabVIEW Real-Time Module, and the LabVIEW FPGA Module. These devices have more peripheral options in the form of two RS232 serial ports, an RS485 serial port, an Ethernet port, and an optional controller area network (CAN) port, USB port, and SDHC card slot. They also feature a wide-ranging 9 to 30 VDC power input, a real-time clock backup battery, built-in memory up to 256 MB, and nonvolatile storage up to 512 MB that you can expand using the USB port or SDHC card slot. For a more customized solution, the NI sbRIO-962x devices incorporate a RIO Mezzanine Card (RMC) connector that provides direct access to 96 FPGA digital I/O (DIO) lines as well as certain processor-specific functions like USB. You can use the RMC connector to mate NISingle-Board RIO devices to custom daughter cards with application-specific circuitry to combine the benefits of off-the-shelf and custom systems.
These latest additions to the NI Single-Board RIO platform give you several levels of I/O customization. You can build a completely custom I/O solution and use the RMC connector to link the daughter card to an NISingle-Board RIO device. You can also combine a custom daughter card with the new multifunction devices featuring an RMC connector to take advantage of NIs expertise in analog I/O circuitry while still using your custom I/O. If you dont need custom I/O, the NI sbRIO-9633/36 devices offer easy access to built-in digital and analog I/O. Off-the-shelf solutions like NI Single-Board RIO decrease overall design expenses by reducing end-of-life component management, certification, extensive device testing, and support. The NI Single-Board RIO platform and LabVIEW combine the benefits of an off-the-shelf solution with the I/O customization options of in-house designs to give you the best of both worlds when building embedded control and monitoring systems.
To view detailed specifications and learn more about the new NISingle-Board RIO features, visit ni.com/singleboard.
RS232 2 2 2 2
RS485
CAN
USB
SDHC
DIO 4 4 28 28
RMC
RMC DIO 96 96
10
Q2 2012
Product In-Depth
Figure 2. Prior to INERTIA becoming an add-on for NI VeriStand, INERTIAs IP was used for more than a decade across hundreds of test applications.
NI VeriStand is powerful test software that offers real-time hardware I/O and model execution, deterministic stimulus generation, alarming, and data logging in a configuration-based environment. When you combine INERTIA and NI VeriStand, you can quickly configure several closed-loop controllers to implement test systems for the following: Engine, transmission, and motor Actuator, valve, and pump Turbine and gearbox Auxiliary power unit Tires
n n n n n
INERTIA is ideal for multimode and multiaxis control applications that use dynamometers or hydraulic control. By combining NI VeriStand and INERTIA, you can integrate actuator control to real-time model execution on a common hardware and software platform. This combination allows you to implement next-generation test cell applications using real-time simulation for more sophisticated and efficient testing. The INERTIA add-on features are installed into the NI VeriStand System Explorer and Workspace for seamless system configuration. The combined features allow you to define hardware I/O channels, PID control loops, shutdown procedures, and alarms for your test cell application. For example, control mode mapping allows multiple channels such as feedback, actuator command output, and control coefficients to be simultaneously changed at run time. INERTIA closed-loop controllers are automatically linked to the test-cell-specific Stimulus Profile Editor to offer intuitive test authoring and execution. In the NI VeriStand Workspace, the INERTIA add-on features GUI objects for safely executing manual mode transfers, manual setpoint ramping, and more. You also have a PID tuning tool with a detailed interface for real-time management of control-loop tuning parameters at run time. Wineman Technologys INERTIA uses the core strengths of NI VeriStand to offer an integrated, out-of-the-box control package for motors and drives, servo-hydraulics, and real-time model execution. Reduce the time and cost of implementing and maintaining your test cell applications with powerful, intuitive INERTIA tools.
Download an evaluation copy of the INERTIA add-on at ni.com/inertia/download.
Figure 1. The INERTIA add-on for NI VeriStand provides the ready-to-use controllers, tuning utilities, and other tools you need to implement test applications that require closed-loop control.
ni.com
11
Test Techniques
The inherent availability is defined by the following equation: Av = MTBF/(MTBF + MTTR) Where MTBF = Mean Time Between Failure and MTTR = Mean Time to Repair More practically, availability is defined as the following: Av = Uptime/(Uptime + Downtime) Calculating the Availability of Your PXI Chassis To calculate the availability of a PXI chassis, you need to know its functional mission. The mission, for purposes of the availability calculation, is composed of operational run-time expectations, a critical component sparing strategy, and MTTR variance of critical system components. For the NI PXIe-1066DC chassis, these mission assumptions are defined as follows: 24/7 run-time operation (this is a worst-case run-time operation value; deployments with a less demanding run-time operation schedule can expect improved availability). A sparing strategy is in place with adequate spare power supplies, fans, and a chassis (in case the backplane and electronics fail) on-site MTTR is associated with the Mechanical moving parts unexpected downtime; the planned Hard drives Fans downtime. (scheduled maintenance) Connectors is not included Batteries MTTR = 0 for power supplies and Capacitors fans because they are hot Solid-state drives and more... swappable, and switchover times are instantaneous with hot redundancy. MTTR = 40 minutes if the backplane and electronics fail (this value may vary per installation as a function of the notification system, availability and skill of repair personnel, chassis accessibility, and location of spare chassis).
n n n n n
Failure Rate
HW
Early Life Useful Life
Wear Out
Time
Figure 1. The bathtub curve depicts the failure rate over time of a system or a product.
12
Q2 2012
Figure 2. The NI PXIe-1066DC chassis features redundant, hot-swappable fans and power supplies to maximize its availability.
You also need to estimate the probability of chassis failure in one of two ways: (1) the Bellcore model or (2) the empirically gathered field failure data. The Bellcore model estimates the MTBF of the NI PXIe-1066DC chassis to be 305,782 hours at 25 C. This is not the MTBF of any component (power supply, fan) in the chassis failing but rather the MTBF of a chassis outage because enough critical components failed. To calculate the availability of the NIPXIe-1066DC chassis: MTBF = 305,782 hours MTTR = 40 minutes (0.67 hours) Therefore, Av = 305,782/(305,782 + 0.67) = .999998 = 99.9998% or 5 nines (the accepted scale goes up to 6) Planning for Failure As you can see from the availability calculation, the high-availability features, including redundant, hot-swappable fans and power supplies,
improve the availability of a PXI chassis (in this case, the NI PXIe-1066DC) to beyond five nines. To calculate the availability of the entire system, you must take into account failures because of software and modules. Availability considers sparing strategy and service capabilities (as a part of MTTR), so redundancy does not eliminate the need to plan for these other elements of system uptime. To aid in this planning, the NIPXIe-1066DC incorporates an Ethernet port to remotely monitor the health and status of critical system components, including chassis fans, power supplies, and overall temperature. A preventive failure plan comprising critical component redundancy, sparing, and efficient maintenance scheduling reduces the frequency of unexpected system failures and maximizes system uptime.
David Nosbusch david.nosbusch@ni.com David Nosbusch is a product marketing manager for PXI chassis and PXI timing and synchronization products at National Instruments. He earned a bachelors degree in electrical engineering from the University of WisconsinMadison. For more information on the NI PXIe-1066DC chassis, visit ni.com/pxi.
ni.com
13
NI in Academia
14
Q2 2012
LabVIEW Everywhere
Q: What were some of the first projects you worked on with LabVIEW? A: In 2000, I was completing my PhD studies at Leicester University where LabVIEW 6i was controlling and acquiring data from a large-scale wind tunnel. I took to the concept of graphical programming like a duck to water and began using LabVIEW to acquire, process, and present the masses of data I was collecting. Because it was so easy to experiment and explore software ideas, I quickly created an interactive, animated plot to show a measured boundary layer time variation, which I could export as a movie file. When I later worked at the University of Cambridge, I created numerous software solutions for myself and students, including high-speed data acquisition, 3-axis robotic probe controls, and APIs for communicating across instruments. I also created a network-enabled safety-monitoring application for students working in isolated laboratories. LabVIEW drivers made it easy to communicate with most third-party hardware.
ni.com
15
Special Focus
Scientists have been trying to find evidence of the existence of the Higgs boson particle for decades. But what is it? And whats all the excitement about?
16
Q2 2012
Scientists have been searching for the Higgs boson particle for years, and theyre finally narrowing the range within which they might find evidence of this elusive subatomic particle. First proposed by Dr. Peter Higgs, Higgs boson is a hypothetical elementary particle. If proven to exist, the Higgs boson particle is predicted by the Standard Model of particle physics to explain why particles have mass. The Higgs energy field consists of countless Higgs bosons, just like water is filled with countless H2O molecules. The Higgs field and Higgs boson particle are still theoretical so, to validate the Standard Model, scientists are trying to prove their existence. HOW CAN SCIENTISTS FIND HIGGS BOSON? The Large Hadron Collider (LHC), the worlds largest particle accelerator, hosts six experiments. Two of them (ATLAS and CMS) are dedicated to finding evidence of the Higgs boson particles existence through the side effects of collisions when protons smash into each other. Waiting for protons to collide is risky because the energy of a proton beam at full power is so high that it can melt a 1,100 lb block of copper. It is extremely important that the protons do not stray from their path and are reliably controlled. HOW NI HELPS The scientists at CERN use NI PXI and FPGA-based reconfigurable I/O (RIO) devices to control the motors that move graphite blocks within the collider to absorb any protons that stray from the nominal proton beams path. This process is commonly known as collimation. Because the LHC is a 27 km circular tunnel, more than 100 collimators around the tunnel must be synchronized accurately. Over 120 NI PXI systems with NI reconfigurable I/O (RIO) modules control these collimators and align the graphite blocks to absorb stray protons with millisecond resolution. What you may have seen in the news lately is that the ATLAS experiment showed excess events close to 125 gigaelectron volts (GeV). In physics, electron volts express both energy and mass. The CMS detector, which is independent of the ATLAS detector, similarly found events near 124 GeV. These findings are a huge development for scientists, who are closer than ever to capturing the elusive Higgs boson particle. While other experiments are planned to further support the evidence, scientists are optimistic that they are close to ending their search. The collision of protons at high energy levels produces a number of subatomic particles that are captured by detectors to validate the existence of the Higgs Boson. This collimator with graphite blocks is controlled by NI PXI to absorb particles not in the nominal path of the beam. This illustration shows a typical particle accelerator with a linear accelerator (LINAC) for initial acceleration, a booster ring to impart required energy on the particle, and a storage ring to store the particle before eventual collision.
To learn more about how CERN engineers use over 200 PXI systems at once, visit ni.com/newsletter/cern.
ni.com
17
Feature
How Much Data Will I Stream Across This Bus? All PC buses have a limit to the amount of data that you can transfer in a certain period of time. This is the bus bandwidth, which is often specified in megabytes per second (MB/s). The PCI bus, for example, features a theoretical bandwidth of 132 MB/s that is shared among all PCI boards in the computer. Gigabit Ethernet offers 125 MB/s of shared bandwidth across devices on a subnet or network. PCI Express and PXI Express offer dedicated data links that are capable of up to 1 GB/s per device.
When you take waveform measurements, your bus bandwidth must support the speed at which you acquire data. To calculate the minimum required bandwidth, take the number of bytes per sample (rounded up to the next byte), multiply by the sampling speed, and then multiply by the number of channels. For example, a 16-bit (2-byte) device sampling at 4 MS/s on four channels requires the following bandwidth: 2 bytes S
Do I Need to Synchronize Multiple Devices? Many measurement systems have complex synchronization needs, whether youre synchronizing hundreds of input channels or multiple types of instruments. The simplest way to synchronize measurements across multiple devices is to share a sample clock and a trigger. Many DAQ devices offer programmable digital lines for importing and exporting both clocks and triggers.
Certain buses, such as PCI and PCI Express, work with the real-time system integration (RTSI) bus, on which you can cable multiple boards in a desktop system directly together inside the case to make synchronization as easy as possible. This removes the need for additional wiring through the front connector and simplifies I/O connectivity.
Modules Controller Chassis
4 MS sec
4 channels = 32 MB/s
Note that the actual observed system bandwidth will be lower than the theoretical bus limits. It depends on the number of devices in a system and any additional bus traffic from overhead.
2
18
What Are My Single-Point I/O Requirements? Applications that require single-point reads and writes often depend on I/O values that are updated immediately and consistently. Bus latency is the time delay between when a driver software function is called and the actual hardware value of the I/O is updated. Depending on the bus you choose, this delay can range from less than a microsecond to a few milliseconds.
Another important factor in single-point I/O applications is determinism, which is a measure of how consistently I/O can execute on time.
Figure 1. The PXI platform is the best option for multidevice synchronization.
Q2 2012
Figure 2. Portable USB DAQ devices can quickly connect to laptop computers.
The best bus option for synchronizing multiple devices is the PXI platform, including PXI and PXI Express. This open standard was designed specifically for high-performance synchronization and triggering, with several different options for synchronizing I/O modules within the same chassis or multiple chassis.
measurement, so you can take distributed measurements and send the data back to a central location. Based on these five questions, you can use NIs selection guide for the most common DAQ buses to choose the right option for your application.
4 5
How Portable Do I Need This System to Be? Portability is important for many applications. External buses like USB and Ethernet are particularly effective for portable DAQ systems because of their quick hardware installation and compatibility with laptop computers. Bus-powered USB devices offer additional convenience because they are powered from the USB port and do not require a separate power supply. Wireless data transfer buses are another good option because the measurement hardware itself becomes portable while the computer can remain stationary. How Far Will My Measurements Be From My Computer? The distance between the measurements you need and the computers location can drastically vary from application to application. To achieve the best signal integrity and measurement accuracy, place your DAQ hardware as close to the signal source as possible. Running cables across long distances is costly and can result in noisy signals. A solution to this problem is to use a portable computing platform to move the entire system closer to the signal source. Wireless technology can altogether remove the physical connection between the computer and the
Figure 3. Wi-Fi DAQ devices eliminate the wires between measurement hardware and the host PC.
Chris Delvizis chris.delvizis@ni.com Chris is a product marketing manager for DAQ at National Instruments. He earned his bachelors degree in wireless engineering from Auburn University. To download the Complete Guide to Building a Measurement System, including a selection guide for the most common buses, visit ni.com/newsletter/measurementguide.
888 279 9833 ni.com
19
Product In-Depth
Figure 2. USB X Series devices with mass termination help you easily connect to a test fixture or a daughter board with custom signal conditioning and connectivity.
For OEM applications, the latest USB X Series devices feature a board-only package designed to be embedded into a larger system. These OEM boards provide connectivity through mass-terminated insulation-displacement connectors and are cost optimized for volume applications. The USB X Series devices with mass termination can connect to a daughter board or breakout box via a shielded cable. This option is ideal for applications requiring custom, external signal conditioning and connectivity and a rugged, shielded DAQ device.
To view specifications, pricing, and demo videos, visit ni.com/xseries/usb.
Figure 1. The latest USB X Series devices for OEM applications feature a board-only package designed to be embedded into a larger measurement or control system.
Device USB-6341 USB-6343 USB-6351 USB-6353 USB-6361 USB-6363 Devices With Simultaneous Sampling USB-6356 (32 MS) USB-6356 (64 MS) USB-6366 (32 MS) USB-6366 (64 MS)
Analog Input/Analog Output/Digital I/O 16/2/24 32/4/48 16/2/24 32/4/48 16/2/24 32/4/48 8/2/24 8/2/24 8/2/24 8/2/24
Sampling Rate (kS/s) 500 500 1250 1250 2000 2000 1250 per ch 1250 per ch 2000 per ch 2000 per ch
Screw Terminal
OEM
Mass Termination
20
Q2 2012
Product In-Depth
Web-Based UIs
Mobile Apps
Most engineers are comfortable with the idea of purchasing computing as a product, such as the procurement of a laptop or server machine. But with the advent of cloud computing, data storage, software, and computational resources are being delivered and used more as services. Referred to as the cloud, this shared-network computing infrastructure can be accessed via standard Internet technologies. It offers the benefit of elastic, on-demand computing services that are metered by use. In other words, instead of working with IT to allocate the time and budget necessary to obtain, set up, and maintain the capital investment of a server resource,
you can use the cloud to quickly increase (or decrease) the use of computing resources in an agile fashion and only pay for what you use. With the NI Technical Data Cloud, you can aggregate, store, and share data from any measurement system connected to the Internet. Through its easy-to-use NI LabVIEW software API, you can begin logging data in a matter of minutes.
To learn more about the NI Technical Data Cloud or participate in the early access release, visit ni.com/tdc.
ni.com
21
Product In-Depth
You can synchronize the new NI PXIe-4357 module with other SC Express modules to take multiple types of measurements.
electronic piezoelectric accelerometers, bridge-based sensors, fiber Bragg grating sensors, and isolated voltage inputs in a single PXI system or across multiple chassis.
To learn more about the NI PXIe-4357, visit ni.com/newsletter/scexpress.
The NI PXIe-1435 frame grabber acquires up to 850 MB/s, provides Power over Camera Link compatibility, and offers onboard I/O for triggering and synchronization, making it ideal for the surface inspection of large areas.
As one of the worlds highest throughput PXI frame grabbers, the NI PXIe-1435 enhances mixed-signal capabilities for high-end test systems. By combining high-throughput imaging with the benefits of off-the-shelf PXI measurement hardware, National Instruments offers full softwaredefined solutions for demanding automated test applications in industries such as consumer electronics, automotive, and semiconductor.
22
Q2 2012
Product In-Depth
The latest NI-USRP driver features MIMO support that simplifies multichannel prototyping by helping you easily synchronize multiple USRP radios.
The NI-USRP driver helps researchers, educators, and engineers rapidly prototype software defined radio (SDR) systems with unprecedented speed and at low cost. With the latest software driver update, NI-USRP 1.1, the NIUSRP (Universal Software Radio Peripheral) platform addresses a wider range of advanced applications, particularly those requiring MIMO and wide bandwidth. Featuring enhanced MIMO support and up to twice the bandwidth capabilities, the NI USRP platform helps you prototype an extensible MIMO radio, record and play back up to 40 MHz of spectrum, and monitor up to 40 MHz of spectrum continuously. The improved MIMO support also simplifies multichannel prototyping by making it easy to synchronize multiple USRP radios. You can build a phase-coherent 2x2 MIMO system by connecting two NI USRP devices with a single MIMO Data and Synchronization Cable. Larger MIMO configurations can be built by sharing a common, externally generated 10 MHz clock and pulse-per-second (PPS) signals between multiple NIUSRP radios using the external REF IN and PPS ports. You can also prototype a MIMO physical layer in NILabVIEW software and take advantage of the real-time, parallel execution paradigm integral to graphical system design with live signals streaming to and from the NI USRP radios.
NI USRP now offers a new wideband spectrum monitoring mode. By reducing the number of bits per sample from 16 to 8, NI USRP devices can transmit twice the amount of spectrum across the same Gigabit Ethernet link, which effectively increases the maximum bandwidth to 40MHz. This helps applications that can trade dynamic range for wider bandwidth, such as spectral occupancy in cognitive radio research. You can build a low-cost record and playback system by connecting the NI USRP to a standard PC to record up to 20MHz of spectrum in 16-bit mode or 40 MHz of spectrum in 8-bit mode, depending on hard drive throughput, available hard drive space, and DRAM configuration. RF/communications system design engineers can use LabVIEW and the NI USRP platform to get up and running fast, rapidly prototype and validate algorithms, and compare simulated data with real results and live RF signals. Because LabVIEW works seamlessly with PXI Express RF test instruments, you can build complete workbenches, from design to prototype to test, using a single software design and development flow.
To download the NI-USRP 1.1 driver, visit ni.com/usrp.
ni.com
23
Product In-Depth
The latest wireless monitoring devices are ideal for wireless structural health monitoring of bridges, buildings, and equipment and seamlessly integrate with existing NI CompactRIO systems.
The data presentation capabilities of the ELCOM Power Quality Analyzer include detailed graphical views like this line graph showing multiple phases.
Download the analyzer from the LabVIEW Tools Network at ni.com/labviewtools and start a free trial.
24
Q2 2012
Partner Network
ni.com
25
Developers View
Figure 1. Start your design with a common architecture for a CompactRIO or an NI Single-Board RIO control and monitoring application.
26
Q2 2012
Host PCs
Figure 2. The new developers guide contains updated best practices for implementing network-based communication.
Section 3: Customizing Hardware Through LabVIEW FPGA NI provides many tips and tricks to optimize LabVIEW FPGA code for size and speed. This section features a brief introduction to the LabVIEW FPGA Module for new users and then thoroughly examines code optimization and best practices for designing modular LabVIEW FPGA VIs. It also dives into more advanced topics such as the timing and synchronization of NI C Series I/O modules. Section 4: Interfacing to NI or Third-Party Hardware This section covers the methods and best practices you can use to interface your LabVIEW application for CompactRIO with additional NI hardware, including NI chassis for expanding your C Series I/O modules and NI touch panel devices for creating an industrial display. This section also includes best practices for interfacing with third-party hardware such as industrial networked devices like programmable logic controllers (PLCs) and serial-based devices.
Section 5: Deploying and Replicating Systems When youve completed and tested your LabVIEW application for CompactRIO, you might need to deploy it to one or more systems. This section discusses best practices for deploying CompactRIO systems on a larger scale through imaging, in addition to IP protection and techniques for porting a CompactRIO application to NI Single-Board RIO.
Meghan Kerry meghan.kerry@ni.com Meghan Kerry is a product marketing manager at National Instruments for LabVIEW Real-Time and FPGA. Her focus is software architectures and best practices for designing control and monitoring applications with NI CompactRIO and NI Single-Board RIO. To download the complete NI LabVIEW for CompactRIO Developers Guide, visit ni.com/compactriodevguide.
ni.com
27
Case Study
Taking Mobile Phone Coverage to Rural Areas With a Green, Off-Grid Energy Solution
THE CHALLENGE
Developing a green, off-grid energy solution to power mobile phone stations in rural Africa.
THE SOLUTION
Using NI CompactRIO hardware and NI LabVIEW software to monitor ammonia cracking to deliver regulated DC electrical power that produces only clean water and nitrogen as by-products.
According to a United Nations report, mobile phone adoption in Africa rose over 500 percent between 2003 and 2008 and is expected to continue rising exponentially. However, a mobile phone is of little use without adequate signal coverage, which requires a sizeable electricity supply. Unfortunately, the current energy grid in Africa is anything but reliable and rural areas suffer the worst conditions. Diesel generators are one solution, but they require regular maintenance, produce environmentally harmful by-products, and are prime targets for theft. The Diverse Energy PowerCube system replaces diesel generators with fuel cell technology that converts ammonia to electricity with zero local carbon emissions. To turn ammonia into electricity, we had to tap ammonia from a bulk supply, reform the ammonia into hydrogen and nitrogen, separate the hydrogen from the mixed gas stream, and pass the pure hydrogen stream to a fuel cell. In the PowerCube, CompactRIO controls and monitors the entire process. We initially developed the PowerCube using NI Compact FieldPoint, but when we saw that CompactRIO can incorporate faster processing as well as global control and communication, we changed platforms. The CompactRIO platform also features an accessible field-programmable gate array (FPGA) built directly into the backplane of the chassis. Using LabVIEW, we programmed the FPGA to enhance the functionality of the standard I/O, including the production of custom PWM and sine output signals. By embedding this functionality in the FPGA, we offloaded processing from the controller and reduced the amount of custom hardware necessary. Due to the inherent scalability of LabVIEW, we reused as much as 80percent of our code when moving from Compact FieldPoint to CompactRIO, saving a significant amount of development time and cost. We spent eight
Diverse Energys PowerCube replaces diesel generators with fuel cell technology that converts industrial gas to electricity with zero local carbon emissions.
months developing and testing the first PowerCube but only two weeks transferring it to the CompactRIO platform. We currently have five PowerCubes running in Africa, with an additional five in the UK that are ready to ship. LabVIEW and CompactRIO are perfect for development and field trial use. The ability to easily monitor real-time data and rapidly apply code modifications is an obvious benefit when developing new systems.
ni.com/casestudies
The LabVIEW programming deployment. If graphicalundertaken theenvironment helps with rapid development and we had same programming challenges in a text-based
language, we wouldnt be anywhere near where we are now in the development cycle.
28
Q2 2012
THE SOLUTION
Using LabVIEW and DAQ hardware to monitor a hybrid system and control the battery charge with renewable energy using a minimum supply from a grid. battery charge above 70 percent. It terminates only if the renewable energy generated is sufficient to charge the battery, the battery is fully charged, or the grid is not available due to a power outage. Monitoring a PVHW hybrid system using LabVIEW provides an easy solution for simultaneously harvesting three types of renewable energy as well as charging and discharging the battery. With precise grid supply control, we minimize our use of energy from the grid to the lowest possible value, which makes the process extremely economical. In addition, we prioritize the consumers need during power outages by allowing the battery to further discharge. The system is also very user friendly. LabVIEW proved an excellent choice for this application.
ni.com/casestudies
A team from UCSI Malaysia uses the NI USB-6008 DAQ device to generate and acquire electrical energy in a model of a hybrid energy system.
Monitoring a PVHW hybrid system using LabVIEW an easy simultaneously harvesting three types of renewableprovidesas well assolution forand energy charging discharging the battery within a certain range.
ni.com
29
30
Q2 2012
On the Web
Explore benefits, download resources, and learn about hardware platforms at ni.com/embeddedsystems.
To view past issues of Instrumentation Newsletter, update your subscription preferences, or subscribe to the semimonthly NI email newsletter, NI News, visit ni.com/newsletter. For inquiries, requests for permission, or changes of address, email the managing editor at newsletter@ni.com.
ni.com
31
Technology Outlook
partners to ensure that NI embedded systems use the latest and greatest technologies. The Embedded Systems Outlook examines five trends: 1. Embedded PlatformsIntegrated platforms combine Address Servic hardware components and a software framework for embedded system development. 2. Reconfigurable ComputingAn increasing number of advanced control and monitoring designs use programmable logic. 3. Mobile Devices and the CloudDesign teams can take advantage of the proliferation of mobile and cloud technology within embedded systems. 4. Innovating With Smaller TeamsSmaller design teams create a more efficient way for companies to innovate. 5. Future Proofing Through SoftwareEver-changing system requirements are demanding new approaches to upgrade systems over time.
To download the 2012 Embedded Systems Outlook, visit ni.com/eso.
Instrumentation Newsletter is published quarterly by National Instruments Corporation, 11500 N Mopac Expwy, Austin, TX 78759-3504 USA.
2012 NationalInstruments. All rights reserved. AutoCode, cDAQ, CompactRIO, CVI, DAQBook, DAQCard, DAQ-STC, DASYLab, DIAdem, Electronics Workbench, FieldPoint, Flex ADC, FlexMotion, HiQ, IOTech, Instrumentation Newsletter, LabVIEW, Lookout, MATRIXx, Measure, Measurement Studio, MITE, Multisim, NAT4882, National Instruments, NI, NI-488, ni.com, NI-CAN, NI CompactDAQ, NI-DAQ, NI Developer Suite, NI-FBUS, NI FlexRIO, NI-IMAQ, NI SoftMotion, NI TestStand, NI VeriStand, NIWeek, Planet NI, RTSI, SCXI, Sensors Plug&Play, SignalExpress, SourceAdapt, SystemBuild, The Software is the Instrument, The Virtual Instrumentation Company, Tracer DAQ, Turbo488, USRP, USRP2, Ultiboard, VirtualBench, and Xmath are trademarks of National Instruments. The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. LEGO, the LEGO logo, MINDSTORMS, and WEDO are trademarks of the LEGO Group. Tetrix by Pitsco is a trademark of Pitsco, Inc.2012 ARM, Keil, and Vision are trademarks or registered trademarks of ARM Ltd or its subsidiaries. Tektronix is a trademark of Tektronix, Inc. FireWire is a trademark of Apple, Inc., registered in the U.S. and other countries. Other product and company names listed are trademarks or trade names of their respective companies. A National Instruments Alliance Partner is a business entity independent from National Instruments and has no agency, partnership, or joint-venture relationship with National Instruments.
351256J-01 04920