C Code block DLL error while running MPC algorithim
Answers
-
What Altair product are you using? I can direct your question to the correct forum if you provide this information.
0 -
Elizabeth Bleicher_21930 said:
What Altair product are you using? I can direct your question to the correct forum if you provide this information.
this is PSIM
0 -
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:
0 -
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.0 -
Mohamed lamine Touré said:
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.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
0