CAPTIVATE. MOTIVATE. GRADUATE.USER MANUALQNET Energy Conversion Board for NI ELVISwith NI ELVIS RIO Control ModuleSet Up and Configuration©2016Quanser Inc.,All rights reserved.Quanser Inc.119Spy CourtMarkham,OntarioL3R5H6,Canada****************Phone:1-905-940-3575Fax:1-905-940-3576For more information on the solutions Quanser Inc.offers,please visit the web site at:This document and the software described in it are provided subject to a license agreement.Neither the software nor this document may be used or copied except as specified under the terms of that license agreement.All rights are reserved and no part may be reproduced,stored in a retrieval system or transmitted in any form or by any means,electronic,mechanical,photocopying,recording,or otherwise,without the prior written permission of Quanser Inc.Japan VCCI Notice This is a Class A product based on the standard of the Voluntary Control Council for Interference(VCCI).If this equipment is used in a domestic environment,radio interference may occur,in which case the user may be required to take corrective actions.Waste Electrical and Electronic Equipment(WEEE)This symbol indicates that waste products must be disposed of separately from municipal household waste,according to Directive2002/96/EC of the European Parliament and the Council on waste electrical and electronic equipment(WEEE).All products at theend of their life cycle must be sent to a WEEE collection and recycling center.Proper WEEE disposal reduces the environmentalimpact and the risk to human health due to potentially hazardous substances used in such equipment.Your cooperation in properWEEE disposal will contribute to the effective usage of natural resources.For information about the available collection andrecycling scheme in a particular country,go to /citizenship/weee.This product meets the essential requirements of applicable European Directives as follows:•2006/95/EC;Low-Voltage Directive(safety)•2004/108/EC;Electromagnetic Compatibility Directive(EMC)Caution:This is a Class A product.This product may cause radio interference in a domestic environment,inwhich case the user may be required to take adequate measures.ContentsSafety Information4 1Introduction5 2System Hardware62.1System Schematic62.2Modes of operation72.3Hardware Components112.4Interfaces132.5Supervisor182.6Environmental193QNET Energy Conversion Setup20 4Troubleshooting224.1You are getting’VI Missing’messages224.2The AC generator motors are not responding22QNET ENERGY CONVERSION-User Manual v1.0Safety InformationThe following symbols and definitions are interchangeably used throughout the User Manual: Symbol DescriptionCaution:consult documentation for additional informationDirect Current|On(Power)[on NI ELVIS II unit]⃝Off(Power)[on NI ELVIS II unit]Table0.1:Symbols1IntroductionThe Quanser QNET Energy Conversion Board for NI ELVIS with ELVIS RIO Control Module is pictured in Figure 1.1.It is a reconfigurable system designed to teach the fundamentals of energy conversion across the electrical and mechanical domains.The modular system supports a number of different configurations and measurements of key parameters are achievable using the resources on the ELVIS RIO.Example experiments include open and closed loop SMPS (switched-mode power supply)control,3-phase power generation,rectification,inverters,and power system integration and applications.The main QNET Energy Conversion features include:•Linear power amplifier•Mechanically coupled motor assembly (3-phase generator)•Rectifier•SMPS with configurable buck or boost topology •Inverter and transformer •Linear currentloadFigure 1.1:Quanser QNET Energy Conversion Board for NI ELVIS with ELVIS RIO ControlModuleCautionThis equipment is designed to be used for educational and research purposes and is not intended for use by the general public.The user is responsible to ensure that the equipment will be used by technically qualified personnel only.QNET ENERGY CONVERSION -User Manual v 1.02System Hardware2.1System SchematicThe QNET Energy Conversion provides an integrated communication interface with the NI ELVIS RIO Control Module.The interaction between the different system components on the QNET Energy Conversion is illustrated in Figure2.1.The NI ELVIS RIO Control Module is interfaced to the PC or laptop via USB link.The NI ELVIS RIO Control Module provides command signals to the QNET Energy Conversion components.An on board supervisor is used to safeguard the hardware and to set the mode of operation.Figure2.1:Interaction between QNET Energy Conversion components2.2Modes of operationThe QNET Energy Conversion may be configured to represent the modes that are outlined below.This is accomplished over a communications interface between the ELVIS RIO and the supervisor.After selecting a mode, the supervisor will automatically connect the appropriate modules on the board.2.2.13-Phase PowerThis mode includes the linear amplifier,as well as the3-phase AC generator components(no rectifier).Figure2.2:Three phase power configuration2.2.2Boost ConverterThis mode includes the linear amplifier,switched mode power supply(in boost)and the variable load components.Figure2.3:Boost converter configuration2.2.3Buck ConverterThis mode includes the linear amplifier,switched mode power supply(in buck)and the variable load components.Figure2.4:Buck converter configurationQNET ENERGY CONVERSION-User Manual v1.02.2.4InverterThis mode includes the linear amplifier and the single phase inverter components.Figure2.5:Inverter configuration2.2.5RectifierThis mode includes the linear amplifier,3-phase AC generator and rectifier components.Figure2.6:Rectifier configuration2.2.6Generator-to-BoostThis mode includes the linear amplifier,3-phase AC generator,rectifier,switched mode power supply(in boost)and variable load components.Figure2.7:Generator to Boost configuration2.2.7Generator-to-Boost-to-InverterThis mode includes the linear amplifier,3-phase AC generator,rectifier,switched mode power supply(in boost)and single phase inverter components.Figure2.8:Generator to boost to inverter configuration2.2.8Generator-to-BuckThis mode includes the linear amplifier,3-phase AC generator,rectifier,switched mode power supply(in buck)and variable load components.Figure2.9:Generator to buck configurationQNET ENERGY CONVERSION-User Manual v1.02.2.9Buck-to-InverterThis mode includes the linear amplifier,switched mode power supply(in buck)and single phase inverter components.Figure2.10:Buck to inverter configuration2.2.10Boost-to-InverterThis mode includes the linear amplifier,switched mode power supply(in boost)and single phase inverter components.Figure2.11:Boost to inverter configuration2.3Hardware ComponentsThe main components comprising the QNET Energy Conversion board are labelled in Figure2.12,and are listed in Table2.1.Table2.1:QNET Energy Conversion component nomenclatureFigure2.12:General layout of QNET Energy ConversionExposed moving parts near the AC-generator assemble.CautionCaution2.3.1Linear AmplifierThe QNET Energy Conversion uses a power op amp to supply either the DC motor or the SMPS,depending on the mode of operation.It has a voltage compliance of0to20V.2.3.23-phase AC Generator and RectifierThe QNET Energy Conversion uses the Anaheim Automation BLWR11D-24V-10000brushless DC Motor as a 3-phase AC Generator.The specification sheet can be found at:Anaheim Automation BLWR11D-24V-10000.The generator is driven using a Micro-drives M2232U-24-GS-050brushed DC Motor.The specification sheet can be found at:Micro-drives M2232U-24-GS-050.The rectifier can be dynamically configured for3-phase or single phase operation with or without bulk capacitors of 1µF and10µF.2.3.3Switched Mode Power SupplyThe switched mode power supply can be configured as a buck or a boost.A maximum switching frequency of 25MHz is enforced for both topologies.The boost configuration is limited to a duty cycle range of0to50%and an On-time of150µs.The maximum boost output voltage is30V.2.3.4Variable LoadThe variable load on the QNET Energy Conversion board is a current sink.It is capable of sinking250mA or more, given a source above7V with a low output impedance.Attempting to command loads in excess of250mA will cause the load to saturate near300mA.2.3.51-Phase InverterThis includes an isolated step down power transformer to a resistor load.The maximum input voltage is30V,which is the maximum output from the switch mode power supply.The inverter needs a minimum voltage of10.5V tooperate.Once enabled,a minimum input voltage of8.5V must be maintained.2.4Interfaces2.4.1Control SPI InterfaceThis SPI interface operates with16-bit data at5MHz or lower,with CPOL=0(clock polarity)and CPHA=0(clock phase).Data is transmitted MSb(most significant bit)first.The NI ELVIS RIO Control Module acts as a master.This interface is used to set the board mode,clear the watchdog and set the values of user controlled switches.The pin definitions are defined in Table2.2.Table2.2:Control SPI Interface pin definitionsThe data input contains the raw supervisor code,as described above,as well as a board ready bit as shown in Figure2.13a.The board ready bit is set after the board is ready to be used after changing the mode from reset.The board ready bit is cleared after the board is put into reset or if it enters the supervisor state.(a)Input Data format(b)Output Data formatFigure2.13:Control SPI16-bit data configurationThe data output is split into two bytes.The upper byte is a preamble and the interpretation of the lower byte depends on the value in the preamble.The format is as shown in Figure2.13b.The preamble and lower byte behavior are as described in Table2.3.Table2.3:Preamble and lower byte behavior2.4.2Inverter SPI InterfaceThis interface is reserved exclusively for commanding the inverter voltage.The pin definitions are as described in Table2.4.Table2.4:Inverter SPI Interface pin definitionsThis interface only contains data output.The inverter voltage command is signed and corresponds to the percentage of the amplitude being commanded to the inverter driver.For example-1024commands the maximum negative voltage and1023commands the maximum positive voltage.This uses the2’s complement via11bits,as shown in Figure2.14Figure2.14:Inverter SPI16-bit data configuration2.4.3I/O channelsThe outputs are defined in Table2.5.The inputs are defined in Table2.6.Table2.5:Output pins defined in the custom FPGA codeTable2.6:Input pins defined in the custom FPGA code2.5SupervisorOn power-up,the QNET Energy Conversion goes into a reset mode.In this mode,all outputs from the NI ELVIS RIO Control Module are disabled,the external24V supply is electronically disconnected from the circuit and all switches go to safe values.The SPI interface can be used to change the mode from reset to one of the modes identified in subsection2.2.Depending on the mode that is selected,some of the supervisor conditions in Table2.7 will be enforced.The purpose of this is to prevent the user from accidentally damaging the hardware.If any of the supervisor conditions are violated,the QNET Energy Conversion will go into a supervisor state.The supervisor state is similar to reset mode in that the external24V supply is electronically disconnected,all outputs are disabled and switches are set to safe states.The only way to get the QNET Energy Conversion out of the supervisor state is to put the device back into reset mode,or cycle the power.Table2.7:QNET Energy Conversion supervisor conditions2.6EnvironmentalThe QNET Energy Conversion is designed to function under the following environmental conditions:•Standard rating•Indoor use only•Temperature5◦C to40◦C•Altitude up to2000m•Maximum relative humidity of80%up to31◦C decreasing linearly to50%relative humidity at40◦C •Pollution Degree2•Mains supply voltage fluctuations up to±10%of the nominal voltage•Maximum transient overvoltage2500V•Marked degree of protection to IEC60529:Ordinary Equipment(IPX0)3QNET Energy Conversion SetupThe procedure to install the QNET Energy Conversion module on the NI ELVIS RIO Control module is detailed in this section.The NI ELVIS II +and NI ELVIS RIO Control module components used in the installation procedure are located and marked by an ID number in Figure 3.1,and described in Table 3.1.Note:The NI ELVIS RIO Control Module and QNET Energy Conversion are compatible with both the NI ELVIS II and NI ELVIS II +.CautionIf the equipment is used in a manner not specified by the manufacturer,the protection provided by the equipment may beimpaired.Figure 3.1:Components on NI ELVIS II +and NI ELVIS RIO Control moduleTable3.1:NI ELVIS II+and ELVIS RIO CM componentsCautionDo NOT make the following connections while power is supplied to the hardware!CautionThe unit is provided with a grounded cord to be used with a properly grounded outletonly,this is a safety feature,do not disable it.Follow these instructions to setup a QNET Energy Conversion board on an NI ELVIS II+:1.Position the handle of the QNET Energy Conversion over the bracket at the front of the NI ELVIS II+to ensureproper mechanical support.Slide the female MXP connector of the QNET Energy Conversion module into the male MXP connector on the NI ELVIS RIO Control Module.Make sure it is connected properly.2.Connect the USB cable from the NI ELVIS RIO Control Module to the PC.Note that a USB connection to theNI ELVIS II+is not required.3.Connect the NI ELVIS II+power cable.4.Connect the supplied QNET power supply to the24V power connector for motors on the QNET EnergyConversion,as labeled in2.1.5.Power the NI ELVIS II+by turning ON the System Power Switch on the rear panel,and the Active LED shouldturn orange in under2s.6.Turn ON the Prototyping Board Power switch,and the Prototyping board power LED as well as the NI ELVISRIO Control Module power LED should turn green in under2s.QNET ENERGY CONVERSION-User Manual v1.04TroubleshootingMost hardware/software errors are reported through the Supervisor.See2.5for more details.Please review the following before contacting Quanser’s technical support.1.Verify the connections outlined in Section3in this guide.2.Make sure all cables are firmly connected.4.1You are getting'VI Missing'messages1.Make sure you installed all the LabVIEW add-ons listed in the Quick-Start Guide.2.Verify that the correct LabVIEW version is installed(2016,as the VIs are not backward compatible).4.2The AC generator motors are not responding1.Ensure that the2-pin cable to the brushed DC motor is connected.2.Ensure that the8-pin3-phase AC connector coming out of the AC generator is connected.3.Ensure that the supervisor isn’t reporting any errors and that the24V power is connected.4.Ensure that the DC motor-AC generator assembly is freely moving.If problems still persist,obtain support from Quanser by going to and click on the Tech Support link.Fill in the form with all the requested software and hardware information as well as a description of the problem encountered.Also,make sure your e-mail address and telephone number are included.Submit the form and a technical support person will contact you.QNET boards to teach introductory controls, mechatronicsand physics concepts using NI ELVISQNET Myoelectric Boardteaches control using principles ofelectromyography (EMG)Quanser QNET add-on boards for the NI ELVIS platform teach introductory control topics in undergraduate labs cost-effectively. All QNETs are offered with comprehensive courseware that have been developed to enhance the student learning experience.Torequestademonstrationorquote,**********************©2016 Quanser Inc. All rights reserved. LabVIEW™ is a trademark of National Instruments.***************************。