LabVIEW control solutions on Mac. Christophe Salzmann. Ecole Polytechnique Fédérale de Lausanne - Switzerland

Similar documents
Introduction to LabVIEW and NI Hardware Platform

From Online Experiments to Smart Devices

Figure 3.174: Illustration of the code of the event f USB that plots an USB camera frame if the typed frame is under the acceptable limits (case 0)

With respect to the National Instruments software product(s) being used, the following patents may apply:

LabVIEW Core 1. What You Need To Get Started. File Locations. The course installer places the course files in the following location: ni.

Programming for the LabVIEW Real-Time Module Using LabWindows/CVI

ECU Measurement and Calibration in a Real-Time Test Environment. Roland Magolei National Instruments Engineering GmbH Embedded Networks

Using COTS Hardware with EPICS Through LabVIEW A Status Report. EPICS Collaboration Meeting Fall 2011

Developing Measurement and Control Applications with the LabVIEW FPGA Pioneer System

What s New in LabVIEW 2018 and LabVIEW NXG

LabVIEW 2009 Real-Time & FPGA 最新技術剖析. National Instruments 美商國家儀器 行銷部技術經理吳維翰

DAQ in MATLAB HANS-PETTER HALVORSEN,

PC-based data acquisition I

Dept. of Electrical, Computer and Biomedical Engineering. Instrumentation for the data acquisition laboratory

What s New in Data Acquisition

Scientific Instrumentation using NI Technology

Designing Real-Time Control Applications Using LabVIEW and CompactRIO. Developer Days 2009

New Development of EPICS-based Data Acquisition System for Millimeter-wave Interferometer in KSTAR Tokamak

Copyright, Data Science Automation, Inc. All Rights Reserved. Page 1 of 5

University College of Southeast Norway. LM-900 Level Tank. Hans-Petter Halvorsen,

ENGR 1000, Introduction to Engineering Design

Increase Your Test Capabilities with Reconfigurable FPGA Technology

Advanced NI-DAQmx Programming Techniques with LabVIEW

Lecture 5: February 3

FYS Data acquisition & control. Introduction. Spring 2018 Lecture #1. Reading: RWI (Real World Instrumentation) Chapter 1.

ni.com Integrating EPICS and LabVIEW

Teaching Control System Principles Using Remote Laboratories over the Internet

The Use of LabVIEW FPGA in Accelerator Instrumentation.

Create Without Limits: Add the Power of User-Programmable FPGAs to Your Test Applications

CHAPTER 3 LabVIEW REAL TIME APPLICATION DEVELOPMENT REFERENCES: [1] NI, Real Time LabVIEW. [2] R. Bishop, LabVIEW 2009.

High-Value PXI Embedded Controller for Windows. High-Value Embedded Controllers for PXI Express NI PXI-8101, NI PXI NI PXIe-8101, NI PXIe-8102

Overview of the Experimental Physics and Industrial Control System: EPICS

ni.com/training Quizzes LabVIEW Core 1 ni.com/training Courses Skills learned: LabVIEW environment Certifications Skills tested: LabVIEW environment

Simulation in LabVIEW. Hans-Petter Halvorsen, M.Sc.

LabVIEW Communication Techniques for Distributed Applications

LabVIEW Release Notes

The Benefits of FPGA-Enabled Instruments in RF and Communications Test. Johan Olsson National Instruments Sweden AB

DAQ & Control with PXI. Murali Ravindran Senior Product Manager

PHYS 5061 Lab 1: Introduction to LabVIEW

Wavemaker Improvements at the University of New Orleans Towing Tank

BE/EE189 Design and Construction of Biodevices Lecture 5. BE/EE189 Design and Construction of Biodevices - Caltech

1 1 / 1 / Due : Fri. Nov. 23 rd / Mon. Nov. 26

LabVIEW Real-Time Module Release Notes

Tips for Code Re-Use. Rejwan Ali, Marketing Engineer NI Africa and Oceania

Simplify System Complexity

Physical Simulation Experiment System of Multi-Rigid-Body Spacecraft Attitude Control Based on Micro-Gravity Floating Platform Environment

Implementation of IEEE Conformance/Functionality Testing using LabView

The LabVIEW RIO Architecture and the Newest Member to the CompactRIO Family

LabVIEW Real-Time Module for Mac OS X User Manual Addendum

FlexRIO. FPGAs Bringing Custom Functionality to Instruments. Ravichandran Raghavan Technical Marketing Engineer. ni.com

ROGA Control v1.0. User Manual Release 2

High-Speed M Series Multifunction DAQ 16-Bit, up to 1.25 MS/s, up to 80 Analog Inputs

LabVIEW programming II

Application State Machine

D Demonstration of disturbance recording functions for PQ monitoring

High-Accuracy M Series Multifunction DAQ 18-Bit, up to 625 ks/s, up to 32 Analog Inputs

Simplify System Complexity

Motion Control Computing Architectures for Ultra Precision Machines

Data Acquisition in LabVIEW

A new architecture for real-time control in RFX-mod G. Manduchi, A. Barbalace Big Physics Symposium 1/16

Compute Node Design for DAQ and Trigger Subsystem in Giessen. Justus Liebig University in Giessen

LabVIEW Tutorials. T.1 Temperature Measurement and Cold Junction Compensation (CJC) LUMS School of Science and Engineering

Lesson 6 Intel Galileo and Edison Prototype Development Platforms. Chapter-8 L06: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Ensemble QL andqle Networked Panel-Mount Piezo Drive

Research on function and design of virtual instrument based on LabVIEW Technology

DAQ SYSTEM FOR GYROLASER

High-Level Synthesis with LabVIEW FPGA

New Software-Designed Instruments

Academic Software Solutions

The data acquisition components, and their relationship to each other, are shown below.

Data Acquisition HANS-PETTER HALVORSEN,

NI Smart Cameras PRODUCT FLYER CONTENTS. Have a question? Contact Us.

Installation Guide: Quanser Rapid Control Prototyping Toolkit 2016 for NI myrio

Intel Research mote. Ralph Kling Intel Corporation Research Santa Clara, CA

Data Acquisition Laboratory

Hands-On Introduction to. LabVIEW. for Scientists and Engineers. Second Edition. John Essick. Reed College OXFORD UNIVERSITY PRESS

Introduction to Automating Standalone Instruments

Additional products and features

Introduction to PXI. Jacques Cilliers. Applications Engineer National Instruments ni.com

Canopus DVStorm2 and Matrox RT.X100. Comparison test and analysis document. DV Quality Test Results. Complete Test Results Inside

Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics.

DEVELOPMENT OF A MICROCONTROLLER- BASED SYSTEM WITH HARDWARE-IN-THE- LOOP METHOD FOR REAL-TIME CONTROL ALGORITHMS PROTOTYPING

Design Better. Reduce Risks. Ease Upgrades. Protect Your Software Investment

Hands-on Lab 2: LabVIEW NI-DAQ Basics 2

DT MS/s High-Speed, Isolated Simultaneous USB Data Acquisition Module. Overview. Key Features. Bandwidth of the DT9862

New Technologies in Data Acquisition

Open Platform for Developing and Testing Smart Grid Automation Systems. Igor Alvarado National Instruments Corp.

16-Bit A/D Converter (ENOB=14.1) 16-bit D/A. 16-bit D/A. Digital I/O (8/8) Counter/Timer (2)

Teaching Computer-Based Data Acquisition and Analysis Research Skills Using LabVIEW

Low Cost Data Acquisition Setup for Electrical Machines Laboratory. Ciprian Sorandaru, Sorin Musuroi

Lab Exercise 08 DC motor PID position control

Datalogging in LabVIEW

National Instruments Approach

Software-Defined Test Fundamentals. Understanding the Architecture of Modular, High-Performance Test Systems

1. Learn about LabView software and its different components

A Smart PMU with Edge Processing at the UCSD Synchrophasor Grid Monitoring and Automation Lab

Was ist neu in LabVIEW 2014

High-Speed Voltage Output up to 1 MS/s/Channel, up to 16 Bits, up to 32 Channels

Low-Cost Multifunction DAQ for USB

Analog Input Sample Rate

Transcription:

1 LabVIEW control solutions on Mac Christophe Salzmann Ecole Polytechnique Fédérale de Lausanne - Switzerland 2 1!

Outline Education & research context Control on the Mac (timeline) Current solutions Research example: spider crane Education example: inverted pendulum Conclusions 3 Context Automatic Control Laboratory Multidisciplinary lab mechanical, electrical, bio, chemical microtechnique, computer science, etc. Control theory Research on control and realtime information systems Industrial collaborations 4 2!

Control? Controller Error Sensor Actuator Controller aims: to stabilise a system, to improuve the dynamic of a system 5 A long time ago (~1980-90) Analog controller 6 3!

Computer based DAQ (~1990) DAQ board (no) Drivers -> Register level programming Visualization software -> LabVIEW 7 Custom based RT Kernel (1992-2007) Sampling period ~0.5 ms with a PowerMac 8100 (80Mhz) using NB-MIO16x hardware interrupt 8 4!

NI PID toolkit (~1994) Pure LabVIEW Interfaces the NB-MIO16 Sampling period in the order of 100ms 9 Fuzzy, G Sim toolkits (~1995) 10 5!

LabVIEW RT 2000 (1998) RT Engine RT Series Board Processor Board PXI/PCI 7030-6030E Intel 486/133 MHz 8M user DRAM 11 OS9 -> OSX = DAQ transition black hole Nasa 12 6!

OSX DAQ solutions Home brew DAQ/RT kernel LabVIEW RT for OSX Measurement Hardware Driver Development Kit NI-DAQmx Base Emulation (PPC) / Virtualization (MacIntel) 13 MHDDK Provides register level access to DAQ boards DAQ acquisition using Register Level Programming is definitely not trivial! National Instruments provides a higher level on the top of the MHDDK, called DAQmx base 14 7!

DAQmx base Lightweight subset of DAQmx Many NI hardware are supported 15 DAQmx base Is mainly written in LabVIEW (expose the source code) Is therefore easily portable to other platforms/os Is therefore modifiable by the user 4 x 10 x 16 8!

Real-Time with DAQmx base Similar to DAQ occurrence Not hard real-time >5kHz for a PID controller (LV 8.5 MacPro) If all I/O operations are synchronized, the interrupt handling can be floating provided that the RT task is completed before the next interrupt PID PID t AD DA DIO AD DA DIO AD DA DIO 17 Real-Time with DAQmx base Hardware IRQ goes from kernel space to user space via VISA DAQmx base wait for next sampling clock.vi 18 9!

Virtualization Allows Mac and Windows environment to run at the same time Provides native performances (CPU) Main products Parallels & VMWare Significantly improved over the last 2 years Support some NI products (USB, Ethernet, PXI, crio) Boot Camp (built-in 10.5) = Boot your macintel in Windows 19 Emulation Microsoft VirtualPC (discontinued) for PPC machines LabVIEW run slowly on it, some usb support Emulation can be use to upgrade old Vis Mini v mac (MacPlus emulator) for LV 1 and 2 SheepShaver (PowerMac emulator) For LV 2 to 7.0 20 10!

LabVIEW 8.6 New toolkits available on the Mac Mathscript Multi-cores 3D graph + Control and Simulation toolboxes 21 Research example: Spider crane Specificities no moving parts beside cables flat system Challenges control load position measurement 22 11!

Control flat systems Non-linear system! Un-modeled friction, etc. Flat system! Property that ensures controllability for non-linear systems! System inputs and states can be expressed in terms of the flat outputs and a finite number of its derivatives without integrating differential equations 23 Control jet scheduling measure the load position and its velocities and generate appropriate references for the three cable lengths! Compute load acceleration (jet) to reach desired position X ref! Use flatness property to compute the new ring position and thus cable lengths! Track cable lengths with PD controllers X ref 24 12!

Spider crane open loop* examples Download the Spider crane movies from http://lawww.epfl.ch/page4506.html *open loop: the load position is not measured 25 Measuring load position The challenge:! Get the load position in 3D, at 200Hz, with a millimetric resolution and no (read minimal) latency! The accutrack has the need resolution and acquisition rate, but:! return data via USB -> enormous latency for control! no drivers for the Mac LabVIEW came to the rescue! 26 13!

USB drivers in LabVIEW Easy, once you have vendor specifications OSX enforces USB norm (512kb bulk packet) 3 kind of USB pipes handled by LabVIEW! Bulk! Control! Interrupt 27 USB latency USB (~ 15ms +/- 10ms ) fine for data acquisition but for control represents ~2 sampling periods! Solution: modify the 3D camera hardware use the internal high speed serial interface parallelize data read parallel data using 24 x DIO inputs of a DAQ board 28 14!

Spider crane closed loop* examples Download the Spider crane movies from http://lawww.epfl.ch/page4506.html *open loop: the load position is not measured 29 Education example: Inverted pendulum Test the remote experimentation via http://emersion.epfl.ch/ Remotely accessible 24/7 Server is written in LabVIEW, various client applications (LV, Java, web 2) 30 15!

Remote Lab 3 x types of setups available 24/7 ~40 x lab computers (G5/MacPro), remotely accessible 31 Open Collaborative Environment Test elogbook via http://elogbook.epfl.ch/ Integration to open environments/clients/grid - Mashed-up environments 32 16!

Smart devices No hardware change A way of implementing functionalities (paradigm shift) Transfer client functionalities to smart device (server) Can initiate information exchange (push) Ideally supports all formats/protocols or is ready to Can be seen as an agent (in collaborative environments) Thomson s 1 definition: A smart device has communication capabilities A smart device has sensors and actuators A smart device is capable of reasoning and learning A smart device has identity and kind A smart device has memory and status tracking 1 Thompson, C. W. Smart devices and soft controllers, IEEE Internet Computing, 2005 vol. 9-1 33 Internet of Things The internet of things is the interconnection of smart devices and other intelligent objects Where are my Pals? I m busy at the moment, I ll redirect your request to the next free device 3230 3435 3038 3030 3109 332E 3435 0932 2E38 3409 332E 30 <mailto:niweek@ni.com- status OK, latest measurements> 34 17!

Conclusion Real-time control is possible on MacOSX 10.x PID controller in plain LabVIEW can run at 5kHz USB drivers can be written in plain LabVIEW USB latency is generally too slow for mechatronic systems LabVIEW is a very efficient tool for prototyping LabVIEW + lab setup = smart device 35 Still missing MathScript 3D graphs Control and simulation DAQmx Timed loop Shared variable Vision in 36 18!

Links http://lawww.epfl.ch follow research projects christophe.salzmann@epfl.ch 37 19!