Skip to content

Comments

Fix Scilab 2025.1.0 compatibility: Update deprecated scicos_block4.h header#2

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-1
Draft

Fix Scilab 2025.1.0 compatibility: Update deprecated scicos_block4.h header#2
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-1

Conversation

Copy link

Copilot AI commented Sep 8, 2025

This PR fixes the compatibility issue with Scilab 2025.1.0 where the SciPowerLab toolbox would crash when running demos. The root cause was the use of the deprecated scicos_block4.h header file, which was replaced with scicos_block.h in newer Scilab versions.

Changes Made

Updated C computational functions:

  • Replaced #include "scicos_block4.h" with #include "scicos_block.h" in all 7 computational function files:
    • xcpl_BLDC_comp.c - Brushless DC Machine
    • xcpl_BLSC_comp.c - Brushless DC Machine Controller
    • xcpl_PMSM_comp.c - Permanent Magnet Synchronous Machine
    • xcpl_PMSC_comp.c - PMSM FOC Controller
    • xcpl_IMPU_comp.c - Induction Machine Per-Unit Model
    • xcpl_SVPWM_comp.c - Space Vector PWM Generator
    • xcpl_PSDINV_comp.c - Pseudo Inverter

Version and documentation updates:

  • Bumped version from 0.4 to 0.5 in DESCRIPTION and README.md
  • Added changelog entry documenting the Scilab 2025.1.0 compatibility fix
  • Updated release date to reflect the current fix

Testing

The toolbox should now work correctly with Scilab 2025.1.0. Users can verify the fix by:

  1. Running exec builder.sce to build the toolbox
  2. Running exec loader.sce to load the toolbox
  3. Testing with the PMSM FOC demo: exec demos/demPMSM.dem.sce

The fix maintains backward compatibility with earlier Scilab versions while resolving the crash issue in 2025.1.0.

Fixes #1.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copy link
Author

Copilot AI commented Sep 8, 2025

@ierturk 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

…4.h to scicos_block.h

Co-authored-by: ierturk <1481831+ierturk@users.noreply.github.com>
Copilot AI changed the title [WIP] The SciPowerLab can't work in the 2025.1.0 Fix Scilab 2025.1.0 compatibility: Update deprecated scicos_block4.h header Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The SciPowerLab can't work in the 2025.1.0

2 participants