{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T15:22:04Z","timestamp":1783524124654,"version":"3.55.0"},"reference-count":49,"publisher":"MDPI AG","issue":"15","license":[{"start":{"date-parts":[[2024,8,2]],"date-time":"2024-08-02T00:00:00Z","timestamp":1722556800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Energies"],"abstract":"<jats:p>Microgrids have increased in popularity thanks to both the integration of renewable energy resources and their energy distribution capability for remote locations. Moreover, the microgrids, mainly using multiple generators connected in parallel, acquire additional advantages by using both Hot-Swap and Current-Sharing techniques. This paper presents the development of a Hardware in the Loop platform to test Current-Sharing algorithms. It is reinforced that the use of a real-time simulation based on Hardware in the Loop is a viable and cost-effective alternative in the validation of controllers. The platform was developed in a graphical programming environment (LabVIEW 2015) and implemented with NI MyRIO 1900 (National Instruments Corp., Austin, TX, USA) development boards for easier reproducibility. The entire code project is openly available and provided in this paper. A system of photovoltaic energy generators was used to evaluate the performance of the HIL platform. As a result, the platform was able to reproduce a similar behavior to the photovoltaic generator, presenting average mean errors of 0.4 V and 0.2 A in its voltage and current, respectively. Additionally, the platform showed its capability to test Current-Sharing algorithms in the occurrence of Hot-Swap events. This work contributes with a validation tool for energy management systems applied to microgrids.<\/jats:p>","DOI":"10.3390\/en17153803","type":"journal-article","created":{"date-parts":[[2024,8,2]],"date-time":"2024-08-02T09:34:17Z","timestamp":1722591257000},"page":"3803","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["Controller Hardware in the Loop Platform for Evaluating Current-Sharing and Hot-Swap in Microgrids"],"prefix":"10.3390","volume":"17","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-4080-1286","authenticated-orcid":false,"given":"Juan","family":"Mart\u00ednez-Nolasco","sequence":"first","affiliation":[{"name":"Departamento de Ingenier\u00eda Mecatr\u00f3nica, Tecnol\u00f3gico Nacional de M\u00e9xico\/IT de Celaya, Antonio Garc\u00eda Cubas 600, Celaya 38010, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9808-190X","authenticated-orcid":false,"given":"V\u00edctor","family":"S\u00e1mano-Ortega","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda Mecatr\u00f3nica, Tecnol\u00f3gico Nacional de M\u00e9xico\/IT de Celaya, Antonio Garc\u00eda Cubas 600, Celaya 38010, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Heriberto","family":"Rodriguez-Estrada","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda Mecatr\u00f3nica, Tecnol\u00f3gico Nacional de M\u00e9xico\/IT de Celaya, Antonio Garc\u00eda Cubas 600, Celaya 38010, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0565-2510","authenticated-orcid":false,"given":"Mauro","family":"Santoyo-Mora","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda Mecatr\u00f3nica, Tecnol\u00f3gico Nacional de M\u00e9xico\/IT de Celaya, Antonio Garc\u00eda Cubas 600, Celaya 38010, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Elias","family":"Rodriguez-Segura","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda El\u00e9ctrica y Electr\u00f3nica, Tecnol\u00f3gico Nacional de M\u00e9xico\/IT de Celaya, Antonio Garc\u00eda Cubas 600, Celaya 38010, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jos\u00e9","family":"Zavala-Villalpando","sequence":"additional","affiliation":[{"name":"Departamento de Ingenier\u00eda Mecatr\u00f3nica, Tecnol\u00f3gico Nacional de M\u00e9xico\/IT de Celaya, Antonio Garc\u00eda Cubas 600, Celaya 38010, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,8,2]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"1297","DOI":"10.1007\/s00202-020-00950-7","article-title":"Assessment of technical and financial benefits of AC and DC microgrids based on solar photovoltaic","volume":"102","author":"Ullah","year":"2020","journal-title":"Electr. Eng."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Datta, U., Kalam, A., and Shi, J. (2018). Hybrid PV\u2013wind renewable energy sources for microgrid application: An overview. Hybrid-Renewable Energy Systems in Microgrids, Woodhead Publishing.","DOI":"10.1016\/B978-0-08-102493-5.00001-7"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Sood, V.K., and Abdelgawad, H. (2019). Microgrids architectures. Distributed Energy Resources in Microgrids, Academic Press.","DOI":"10.1016\/B978-0-12-817774-7.00001-6"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"376","DOI":"10.1049\/iet-stg.2019.0281","article-title":"Controlling DC microgrids in communities, buildings and data centers","volume":"3","author":"Kolluri","year":"2020","journal-title":"IET Smart Grid"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"346","DOI":"10.3390\/electricity3030019","article-title":"Optimal Coordinated Control of DC Microgrid Based on Hybrid PSO\u2013GWO Algorithm","volume":"3","author":"Lie","year":"2022","journal-title":"Electricity"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"10796","DOI":"10.1109\/TPEL.2019.2900147","article-title":"Efficient Improvement of Photovoltaic-Battery Systems in Standalone DC Microgrids Using a Local Hierarchical Control for the Battery System","volume":"34","author":"Yang","year":"2019","journal-title":"IEEE Trans. Power Electron."},{"key":"ref_7","first-page":"4876","article-title":"DC Microgrids\u2014Part I: A Review of Control Strategies and Stabilization Techniques","volume":"31","author":"Lu","year":"2016","journal-title":"IEEE Trans. Power Electron."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Li, Z., Ren, Z., Li, H., Wang, C., Wang, C., and Hao, L. (2023, January 27\u201330). An Optimal Operation Method of Hybrid AC\/DC Distribution Network Under the Goal of Peaking Carbon Dioxide Emissions and Carbon Neutrality. Proceedings of the 2023 Panda Forum on Power and Energy (PandaFPE), Chengdu, China.","DOI":"10.1109\/PandaFPE57779.2023.10140544"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"6761595","DOI":"10.1155\/2022\/6761595","article-title":"Distributed Energy Storage Cluster Control Method for DC Microgrid Considering Flexibility","volume":"2022","author":"Tao","year":"2022","journal-title":"Math. Probl. Eng."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Nojavan, S., Pashaei-Didani, H., Mohammadi, A., and Ahmadi-Nezamabad, H. (2020). Energy management concept of AC, DC, and hybrid AC\/DC microgrids. Risk-Based Energy Management, Academic Press.","DOI":"10.1016\/B978-0-12-817491-3.00001-5"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Mostafa, M.H., Abdel Aleem, S.H.E., Ali, S.G., and Abdelaziz, A.Y. (2019). Energy-management solutions for microgrids. Distributed Energy Resources in Microgrids, Academic Press.","DOI":"10.1016\/B978-0-12-817774-7.00020-X"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Merai, M., Naouar, M.W., and Slama-Belkhodja, I. (2016, January 22\u201324). Coordinated control of multiple Multi-Function Grid connected Converters for power quality improvement in micro-grid applications. Proceedings of the 2016 7th International Renewable Energy Congress (IREC), Hammamet, Tunisia.","DOI":"10.1109\/IREC.2016.7478913"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Zahraoui, Y., Alhamrouni, I., Mekhilef, S., Basir Khan, M.R., Seyedmahmoudian, M., Stojcevski, A., and Horan, B. (2021). Energy management system in microgrids: A comprehensive review. Sustainability, 13.","DOI":"10.3390\/su131910492"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"e12885","DOI":"10.1002\/2050-7038.12885","article-title":"A brief review on microgrids: Operation, applications, modeling, and control","volume":"31","author":"Shahgholian","year":"2021","journal-title":"Int. Trans. Electr. Energy Syst."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"116879","DOI":"10.1016\/j.apenergy.2021.116879","article-title":"Optimization of load dispatch strategies for an islanded microgrid connected with renewable energy sources","volume":"292","author":"Ishraque","year":"2021","journal-title":"Appl. Energy"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"111327","DOI":"10.1016\/j.rser.2021.111327","article-title":"Energy management system optimization in islanded microgrids: An overview and future trends","volume":"149","author":"Bazmohammadi","year":"2021","journal-title":"Renew. Sustain. Energy Rev."},{"key":"ref_17","first-page":"5365","article-title":"Banshee distribution network benchmark and prototyping platform for hardware-in-the-loop integration of microgrid and device controllers","volume":"2019","author":"Salcedo","year":"2019","journal-title":"J. Eng."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"e12106","DOI":"10.1002\/2050-7038.12106","article-title":"A review on real-time simulation and analysis methods of microgrids","volume":"29","author":"AhmadiAhangar","year":"2019","journal-title":"Int. Trans. Electr. Energy Syst."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"10920","DOI":"10.1109\/TPEL.2020.3040071","article-title":"Accurate and stable hardware-in-the-loop (HIL) real-time simulation of integrated power electronics and power systems","volume":"36","author":"Lauss","year":"2020","journal-title":"IEEE Trans. Power Electron."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Kumar, G.B., and Palanisamy, K. (2022). Energy management of renewable energy-based microgrid system with HESS for various operation modes. Front. Energy Res., 10.","DOI":"10.3389\/fenrg.2022.995034"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Kikusato, H., Ustun, T.S., Suzuki, M., Sugahara, S., Hashimoto, J., Otani, K., Shirakawa, K., Yabuki, R., Watanabe, K., and Shimizu, T. (2020). Microgrid Controller Testing Using Power Hardware-in-the-Loop. Energies, 13.","DOI":"10.3390\/en13082044"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"100","DOI":"10.1109\/OAJPE.2020.2974940","article-title":"Adaptive Droop Control Method for Suppressing Circulating Currents in DC Microgrids","volume":"7","author":"Ghanbari","year":"2020","journal-title":"IEEE Open Access J. Power Energy"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"106757","DOI":"10.1016\/j.epsr.2020.106757","article-title":"Controller hardware in the loop testing of microgrid secondary frequency control schemes","volume":"190","author":"Nigam","year":"2021","journal-title":"Electr. Power Syst. Res."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"1146","DOI":"10.1109\/TLA.2019.8931203","article-title":"Hardware-in-the-Loop for Wind Energy Conversion with Resonant Current Control and Active Damping","volume":"17","year":"2019","journal-title":"IEEE Lat. Am. Trans."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Zamiri, E., Sanchez, A., Yushkova, M., Mart\u00ednez-Garc\u00eda, M.S., and de Castro, A. (2021). Comparison of different design alternatives for hardware-in-the-loop of power converters. Electronics, 10.","DOI":"10.3390\/electronics10080926"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Jiang, W., Sun, L., Chen, Y., Ma, H., and Hashimoto, S. (2021). A hardware-in-the-loop-on-chip development system for teaching and development of dynamic systems. Electronics, 10.","DOI":"10.3390\/electronics10070801"},{"key":"ref_27","first-page":"4","article-title":"Low-cost Arduino-based Hardware-In-the-Loop Platform for Simulation and Control of Dynamic Systems","volume":"50","author":"Giraldo","year":"2023","journal-title":"IAENG Int. J. Comput. Sci"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"21729","DOI":"10.1109\/ACCESS.2023.3248511","article-title":"A review of microgrid energy management and control strategies","volume":"11","author":"Ahmad","year":"2023","journal-title":"IEEE Access"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Sharma, S., Iyer, V.M., Bhattacharya, S., Kikuchi, J., Zou, K., and Gupta, M. (2020, January 18\u201321). A Methodology for Seamless Hot-Swap of Converters in DC Microgrids. Proceedings of the IECON 2020 The 46th Annual Conference of the IEEE Industrial Electronics Society, Singapore.","DOI":"10.1109\/IECON43393.2020.9255034"},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"1583","DOI":"10.1109\/TCST.2018.2834878","article-title":"A Robust Consensus Algorithm for Current Sharing and Voltage Regulation in DC Microgrids","volume":"27","author":"Cucuzzella","year":"2019","journal-title":"IEEE Trans. Control Syst. Technol."},{"key":"ref_31","first-page":"1","article-title":"Control Algorithm for Equal Current Sharing between Parallel-Connected Boost Converters in a DC Microgrid","volume":"1","author":"Shebani","year":"2020","journal-title":"J. Electr. Comput. Eng."},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Zhang, Q., Zhuang, X., Liu, Y., Wang, C., and Guo, H. (2019). A Novel Autonomous Current-Sharing Control Strategy for Multiple Paralleled DC\u2013DC Converters in Islanded DC Microgrid. Energies, 12.","DOI":"10.3390\/en12203951"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"12440","DOI":"10.1016\/j.ifacol.2017.08.1918","article-title":"Plug-and-play control and consensus algorithms for current sharing in DC microgrids","volume":"50","author":"Tucci","year":"2017","journal-title":"IFAC-PapersOnLine"},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Mesbah, M.A., Sayed, K., Ahmed, A., Aref, M., Elbarbary, Z.M.S., Almuflih, A.S., and Mossa, M.A. (2024). Adaptive Control Approach for Accurate Current Sharing and Voltage Regulation in DC Microgrid Applications. Energies, 17.","DOI":"10.3390\/en17020284"},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"124","DOI":"10.1016\/j.ifacol.2018.12.022","article-title":"Model predictive control of DC microgrids: Current sharing and voltage regulation","volume":"51","author":"Noroozi","year":"2018","journal-title":"IFAC-PapersOnLine"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"13018","DOI":"10.1016\/j.ifacol.2020.12.2166","article-title":"Voltage regulation and current sharing for multi-bus DC microgrids","volume":"53","author":"Bai","year":"2020","journal-title":"IFAC-PapersOnLine"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"1398","DOI":"10.1109\/TPEL.2022.3208890","article-title":"Sensorless Current-Sharing Scheme for Multiphase DC-DC Boost Converters","volume":"38","author":"Duan","year":"2023","journal-title":"IEEE Trans. Power Electron."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"836","DOI":"10.1109\/JESTPE.2022.3192540","article-title":"Current Sharing Strategy of Three-Phase Series Capacitor Buck Converter for Wide Output Voltage Range Application","volume":"11","author":"Chen","year":"2023","journal-title":"IEEE J. Emerg. Sel. Top. Power Electron."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Estrada, L., V\u00e1zquez, N., Vaquero, J., de Castro, \u00c1., and Arau, J. (2020). Real-Time Hardware in the Loop Simulation Methodology for Power Converters Using LabVIEW FPGA. Energies, 13.","DOI":"10.3390\/en13020373"},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"12383","DOI":"10.1109\/TPEL.2020.2984714","article-title":"A Review of Voltage\/Current Sharing Techniques for Series\u2013Parallel-Connected Modular Power Conversion Systems","volume":"35","author":"Ma","year":"2020","journal-title":"IEEE Trans. Power Electron."},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Samano-Ortega, V., Rodriguez-Estrada, H., Rodr\u00edguez-Segura, E., Padilla-Medina, J., Aguilera-Alvarez, J., and Martinez-Nolasco, J. (2021). Power Sharing Control in a Grid-Tied DC Microgrid: Controller Hardware in the Loop Validation. Appl. Sci., 11.","DOI":"10.3390\/app11199295"},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Pan, Y., Yang, Y., and Blaabjerg, F. (October, January 28). Distributed Control of Islanded Series PV-Battery-Hybrid Systems with Low Communication Burden. Proceedings of the 2020 IEEE 11th International Symposium on Power Electronics for Distributed Generation Systems (PEDG), Dubrovnik, Croatia.","DOI":"10.1109\/PEDG48541.2020.9244482"},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"9530","DOI":"10.1109\/TPEL.2020.2974207","article-title":"A Single-Switch High-Gain PV Microconverter with Low-Switch-Voltage-to-High-Voltage-Bus Ratio","volume":"35","author":"Kanathipan","year":"2020","journal-title":"IEEE Trans. Power Electron."},{"key":"ref_44","doi-asserted-by":"crossref","unstructured":"Pan, Y., Sangwongwanich, A., Yang, Y., and Blaabjerg, F. (2020, January 11\u201315). A Series Interharmonic Filter for Cascaded H-bridge PV Inverters. Proceedings of the 2020 IEEE Energy Conversion Congress and Exposition (ECCE), Detroit, MI, USA.","DOI":"10.1109\/ECCE44975.2020.9235745"},{"key":"ref_45","doi-asserted-by":"crossref","unstructured":"Lin, Z., Xie, W., Dong, M., and Lan, J. (2020, January 12\u201314). Research of S3MPR Engineering Application on Space Power Sources. Proceedings of the 2020 IEEE 4th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chongqing, China.","DOI":"10.1109\/ITNEC48623.2020.9084923"},{"key":"ref_46","unstructured":"Keysight Technologies, Inc. (2024, May 16). Keysight Technologies Series E4360 Modular Solar Array Simulator. Available online: http:\/\/literature.cdn.keysight.com\/litweb\/pdf\/E4360-90001.pdf."},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Shen, Y., Qin, Z., and Wang, H. (2018). Modeling and Control of DC-DC Converters. En Control of Power Electronic Converters and Systems, Academic Press.","DOI":"10.1016\/B978-0-12-805245-7.00003-2"},{"key":"ref_48","unstructured":"VictorSamano (2024, July 02). HiL_Current-Sharing, GitHub Repository. Available online: https:\/\/github.com\/VictorSamano\/HiL_Current-Sharing."},{"key":"ref_49","unstructured":"Photovoltaics, D.G., and Storage, E. (2018). IEEE Standard for Interconnection and Interoperability of Distributed Energy Resources with Associated Electric Power Systems Interfaces, IEEE. IEEE Std 1547-2018 (Revision of IEEE Std 1547-2003)."}],"container-title":["Energies"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1996-1073\/17\/15\/3803\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T15:28:50Z","timestamp":1760110130000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1996-1073\/17\/15\/3803"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,8,2]]},"references-count":49,"journal-issue":{"issue":"15","published-online":{"date-parts":[[2024,8]]}},"alternative-id":["en17153803"],"URL":"https:\/\/doi.org\/10.3390\/en17153803","relation":{},"ISSN":["1996-1073"],"issn-type":[{"value":"1996-1073","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,8,2]]}}}