290 likes | 567 Views
NI Engine Control System Software. Renato Yapaulo Staff Systems Engineer Powertrain Controls Group – San Antonio TX. Outline. Overview FPGA VIs FPGA 1 Cam/Crank Signal Mapping EPT FPGA Setup FPGA 2 RT VIs Main Timed Loop Read Inputs VI Processing/Control Frame Write Outputs VI
E N D
NI Engine Control SystemSoftware RenatoYapaulo Staff Systems Engineer Powertrain Controls Group – San Antonio TX
Outline • Overview • FPGA VIs • FPGA 1 • Cam/Crank Signal Mapping • EPT FPGA Setup • FPGA 2 • RT VIs • Main Timed Loop • Read Inputs VI • Processing/Control Frame • Write Outputs VI • Combustion Analysis Option • Optional Items • RT Demo • Creating RT App with Template VIs • ECS User Interface • ECS Demo • Conclusion
Overview • Open Source and downloadable for FREE! • Software requirements (separate items) • LabVIEW 2012 (32-bit) or later • LabVIEW RT Module • LabVIEW FPGA Module • NI-RIO Device Drivers • Xilinx Tools for compiling FPGA • Powertrain Control Device Drivers • Software Calibration Management Toolkit • Optional Software: NI Combustion Analysis System Software for LabVIEW (NI-CASS) • Project structure
FPGA 1 Relay Controls Relay Controls Async Modules Async Modules Encoder Signals Encoder Signals Input Modules Input Modules Optional NI-CASS FPGA Optional NI-CASS FPGA Signal Manipulation Signal Manipulation Final Input To EPT Final Input To EPT EPT Block EPT Block Engine SynchronousModules Engine SynchronousModules Final Cam/Crank to FPGA 2 via DiffIO for sync Final Cam/Crank to FPGA 2 via DiffIO for sync Cam/Crk Signal Mapping Cam/Crk Signal Mapping Optional Loops Optional Loops
User-selectable Crank/Cam ChannelAssignment FPGA 1 - Cam/Crank Signal Mapping Relay Controls Async Modules Encoder Signals Input Modules Optional NI-CASS FPGA Signal Manipulation Final Input To EPT EPT Block Engine SynchronousModules Final Cam/Crank to FPGA 2 via DiffIO for sync Cam/Crk Signal Mapping
FPGA 1 - EPT FPGA Setup Relay Controls Async Modules Encoder Signals Input Modules Optional NI-CASS FPGA Signal Manipulation Final Input To EPT EPT Block Engine SynchronousModules • Supported Patterns: • 120-3600 ppr ENC • N-M • N+1 Final Cam/Crank to FPGA 2 via DiffIO for sync Cam/Crk Signal Mapping
FPGA 2 Relay Controls Engine SynchronousModules Async Modules Encoder Signals Input Modules EPT Block - replicate setup in FPGA 1 Optional NI-CASS FPGA Signal Manipulation Final Input To EPT EPT Block Engine SynchronousModules Final Cam/Crank to FPGA 2 via DiffIO for sync Cam/Crk Signal Mapping Chan 7 & 8 configured as inputs to receive Cam/Crank Signals from DiffIO 1 Module in Drawer A
RT – Main Timed Loop Timed Loop – 10 msec period Timed Loop • Flow: Read sensorsProcessControl Actuators • Notice the use of CalPoints instead of Native Controls/Indicators (NI-SCM features) • Native Indicators are used for passing local variables for neatness and for diagnostic purposes
RT – Read Inputs VI • Collection of readings from EPT block and input modules: 9411 Digital Input, AD Combo, 9853 CAN • Also includes many critical parameters reported from all modules such as module temperatures, critical voltage levels, faults, etc • There is also user-defined thresholds for critical engine parameters: Oil P, Coolant T & P • Variables to be used for controls are bundled into a type-def cluster for neatness
RT – Processing/Control Frame • This frame consists of SubVIs shown on the right • These subVIs typically contains 1D or 2D Table(s), PID controller or user-defined calculations • Each subVI is customizable • There is a VI template for every subVI for reference and for building RT app from scratch
RT – Write Outputs VI • Write commands to various Drive Modules • Leverage SubVIs built in the PC Device Drivers • Note extensive use of CalPoints
RT – Combustion Analysis Option • When Combustion Analysis Toolkit is purchased, a license will be provided • This will allow user to interface with the DAQ hardware and have access to Combustion Analysis VIs • These VIs are to be dropped into the Top Level RT VI just like that of the FPGA VI
RT -- Next Cycle Control Capability Closed Loop Fuel timing control on CA 50 Combustion data from CAS
RT – Other Items • DI Scope VI can be added for each DI Driver Module for quick diagnostic of current profile when operating Solenoid injectors. • Don’t forget to turn Scope ON in the FPGA • Slow Speed Loop available for logging slow speed, asynchronous data.
ECS User Interface TCP/IP Indicators Controls
ECS Demo Demo Time!!!
Conclusion • NI-PCG has designed and constructed a flexible/modular Engine Control System with sufficiently large I/O counts, and open-source application • Optional Combustion data acquisition and analysis software which lends itself to feedback control (Next Cycle Control) • This Open source application will be polished within the next few months prior to its projected release in Q4 this year
Thank you for your attention Questions? Contact: NI Powertrain Controls Group 12001 network Blvd, Ste 110 San Antonio, TX 78249 Email: powertraincontrolsinfo@ni.com Telephone: +1 210.248.9308
Host - Example Host Items These are to be directly paired Target Items (CalPoints)
Host – Indirect Pairing Host to Target Items Host Items Target Items These items are directly paired
Application Launch via SCM – Pairing Host items to Target Items