🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

C Code block DLL error while running MPC algorithim

User: "Abdelrahman Ali"
Altair Community Member
Updated by Abdelrahman Ali

Hello, I am getting a DLL error while running model predictive control algorithim on a buck converter, will post a screenshot to the code here, thanks.

 

image

Find more posts tagged with

Sort by:
1 - 6 of 61
    User: "AltairLiz"
    Altair Employee
    Updated by AltairLiz

    What Altair product are you using?  I can direct your question to the correct forum if you provide this information.

    User: "Albert_Dunford"
    Altair Employee
    Updated by Albert_Dunford

    What Altair product are you using?  I can direct your question to the correct forum if you provide this information.

    this is PSIM

    User: "Albert_Dunford"
    Altair Employee
    Updated by Albert_Dunford

    Hi Ali it is warning you that you have implemented digital control but you do not have the digital delay impact modelled you need a 1/z for the full digitization of your control. a ZOH does not introduce delay. Please see this tutorial video: 

    User: "Mohamed lamine Touré"
    Altair Community Member
    Updated by Mohamed lamine Touré

    Hello,
    Hi, I'm getting a DLL error when running model predictive control algorithms on a Boost converter. Can anyone help me? Here's my code image. image

    User: "Albert_Dunford"
    Altair Employee
    Updated by Albert_Dunford

    Hello,
    Hi, I'm getting a DLL error when running model predictive control algorithms on a Boost converter. Can anyone help me? Here's my code image. image

    this does not look like valid c code if you have not declared your variable data types.

    double iL = 0;

    double Vin = 0;

    double iL_ref = 0;

    int, float, etc. must be used to declare variables in c. you must declare them before you use them. you could also declare these as global variables outside of this function.

    the code in this function is re-intialized each time step i see a counter in your code if you want to store a value you must declare a static variable

    "static int count" will be a counter that actually counts

    here is a tutorial video for reference

    https://youtu.be/HreH4Cx-a94?si=GwHjAJh6phkvpeXz

    Hello,

    I'm a PhD student at the GREAH Laboratory at the University of Le Havre Normandie in France, where I'm working on energy management with PSIM. My subsystem is PV+Battery+Charge but I can't control the voltage of my DC bus through my BUCK-BOOST chopper. If anyone has an idea or similar work, please share it with me to continue my work.

    Thanks in advance.

    image.png