From 4d5cc21797ba6f6016cd96bbae83ca8b55bc375c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:34:29 +0000 Subject: [PATCH 1/2] Initial plan From 6b524031af98881c3811544d781599d704f97e0d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:39:17 +0000 Subject: [PATCH 2/2] Fix Scilab 2025.1.0 compatibility: Update C headers from scicos_block4.h to scicos_block.h Co-authored-by: ierturk <1481831+ierturk@users.noreply.github.com> --- DESCRIPTION | 4 ++-- README.md | 4 ++-- changelog.txt | 5 +++++ src/c/xcpl_BLDC_comp.c | 2 +- src/c/xcpl_BLSC_comp.c | 2 +- src/c/xcpl_IMPU_comp.c | 2 +- src/c/xcpl_PMSC_comp.c | 2 +- src/c/xcpl_PMSM_comp.c | 2 +- src/c/xcpl_PSDINV_comp.c | 2 +- src/c/xcpl_SVPWM_comp.c | 2 +- 10 files changed, 16 insertions(+), 11 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7fe372a..c9f7a32 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -9,7 +9,7 @@ Title: ErturkMe - Power Electronics and Electrical Machines Summary: Xcos toolbox for Electrical Machines and Power Electronics -Version: 0.4 +Version: 0.5 Author: Ibrahim ERTURK @@ -27,7 +27,7 @@ ScilabVersion: >= 5.4 Depends: N/A -Date: 2024-04-27 +Date: 2024-09-08 Description: Xcos toolbox for Electrical Machines and Power Electronics diff --git a/README.md b/README.md index 3000348..904c7b2 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Scilab Power Electronics ToolBox >**Author** ierturk [me@erturk.me](mailto:me@erturk.me) @ [ErturkMe ](http://erturk.me) ->**Version** 0.3.0 ->**Date** 27-Apr-2022 +>**Version** 0.5.0 +>**Date** 08-Sep-2024 >**Brief** Scilab Power Electronics ToolBox > Module uses Scilab diff --git a/changelog.txt b/changelog.txt index eb840f6..91f9e1c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,11 @@ See license.txt changelog of the SciPowerLab Toolbox ErturkMe - Power Electronics and Electrical Machines +SciPowerLab (0.5) + * Fix compatibility with Scilab 2025.1.0 + * Update C header includes from scicos_block4.h to scicos_block.h + -- Ibrahim ERTURK Sun, 08 Sep 2024 + SciPowerLab (0.4) * Update blocks to comply Scilab 2023 API -- Ibrahim ERTURK Sat, 27 Apr 2024 diff --git a/src/c/xcpl_BLDC_comp.c b/src/c/xcpl_BLDC_comp.c index cc86f65..e6f3c1f 100644 --- a/src/c/xcpl_BLDC_comp.c +++ b/src/c/xcpl_BLDC_comp.c @@ -4,7 +4,7 @@ // See license.txt #include "api_scilab.h" -#include "scicos_block4.h" +#include "scicos_block.h" #define U ((SCSREAL_COP *)GetRealInPortPtrs(blk, 1)) #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) diff --git a/src/c/xcpl_BLSC_comp.c b/src/c/xcpl_BLSC_comp.c index 1c58e9d..bbd843b 100644 --- a/src/c/xcpl_BLSC_comp.c +++ b/src/c/xcpl_BLSC_comp.c @@ -4,7 +4,7 @@ // See license.txt #include "api_scilab.h" -#include "scicos_block4.h" +#include "scicos_block.h" #define U ((SCSREAL_COP *)GetRealInPortPtrs(blk, 1)) #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) diff --git a/src/c/xcpl_IMPU_comp.c b/src/c/xcpl_IMPU_comp.c index b3eb066..38dcd89 100644 --- a/src/c/xcpl_IMPU_comp.c +++ b/src/c/xcpl_IMPU_comp.c @@ -4,7 +4,7 @@ // See license.txt #include "api_scilab.h" -#include "scicos_block4.h" +#include "scicos_block.h" #define U ((SCSREAL_COP *)GetRealInPortPtrs(blk, 1)) #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) diff --git a/src/c/xcpl_PMSC_comp.c b/src/c/xcpl_PMSC_comp.c index 7806905..54faa39 100644 --- a/src/c/xcpl_PMSC_comp.c +++ b/src/c/xcpl_PMSC_comp.c @@ -4,7 +4,7 @@ // See license.txt #include "api_scilab.h" -#include "scicos_block4.h" +#include "scicos_block.h" #define U ((SCSREAL_COP *)GetRealInPortPtrs(blk, 1)) #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) diff --git a/src/c/xcpl_PMSM_comp.c b/src/c/xcpl_PMSM_comp.c index ba08e8c..e118109 100644 --- a/src/c/xcpl_PMSM_comp.c +++ b/src/c/xcpl_PMSM_comp.c @@ -4,7 +4,7 @@ // See license.txt #include "api_scilab.h" -#include "scicos_block4.h" +#include "scicos_block.h" #define U ((SCSREAL_COP *)GetRealInPortPtrs(blk, 1)) #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) diff --git a/src/c/xcpl_PSDINV_comp.c b/src/c/xcpl_PSDINV_comp.c index d9631c6..c869090 100644 --- a/src/c/xcpl_PSDINV_comp.c +++ b/src/c/xcpl_PSDINV_comp.c @@ -4,7 +4,7 @@ // See license.txt #include "api_scilab.h" -#include "scicos_block4.h" +#include "scicos_block.h" #define U ((SCSREAL_COP *)GetRealInPortPtrs(blk, 1)) #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) diff --git a/src/c/xcpl_SVPWM_comp.c b/src/c/xcpl_SVPWM_comp.c index ae35867..c4ac7f5 100644 --- a/src/c/xcpl_SVPWM_comp.c +++ b/src/c/xcpl_SVPWM_comp.c @@ -4,7 +4,7 @@ // See license.txt #include "api_scilab.h" -#include "scicos_block4.h" +#include "scicos_block.h" #define U ((SCSREAL_COP *)GetRealInPortPtrs(blk, 1)) #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1))