Compilation crash due to an S-function of SPS missing
Typical Error:
During compilation of a SimPowerSystems model with ARTEMIS in it (MATLAB7.0.1 and Artemis 4.x), at the link stage, we have an error stating that one of the s-funcions of SPS is not found (sfun_psbdisc.o or other).
Explainations:
It seems that the source of this error is that ARTEMIS doesn't seem to be taken to solve your SPS model during simulation & compilation, even though you have the ARTEMIS Guide block in the model.
(it seems that this is due to a bug in MATLAB 7.0.1 concerning the "rehash toolboxreset ")
Recommended procedure to solve it:
A- Find $MATLAB/toolbox/physmod/powersys/powersys
B- Rename this directory to powersysORIGINAL (important)
C- Remove the original name (powersys) from MATLAB path
D- Verify that:
- $MATLAB /toolbox/physmod/powersys/powersys_artemis_4.xxx/private2
- $MATLAB /toolbox/physmod/powersys/powersys_artemis_4.xxx
are in MATLAB path
E- Exit MATLAB
F- If it doesn't solve the problem, you need to re-install ARTEMIS & redo the steps A,B,C,D
Note you may still need, after those steps, to open the model, delete the ARTEMIS Guide block, then drag-and-drop a new one.




