Skip to content

MatlabModifications

jcchin edited this page Jul 16, 2014 · 2 revisions

Return to Wiki Home


#Running NPSS within Matlab

The following steps were taken to configure NPSS within Matlab:

  1. Build a custom output viewer so NPSS outputs matlab matrices directly (avoiding the need for text parsers and greatly improving debug-ability)
  2. Re-organize the NPSS model to expose variables (that are of interest in Matlab) in their own isolated files. This way Matlab can easily write out these files directly.
  3. Output/Save all NPSS independent variables at the end of a run, essentially capturing the state of the engine. This will allow the engine to be restarted from any saved point.
  4. Promote pertinent solver setup variables so that they are accessible and controllable by Matlab. This will allow Matlab or Simulink to run NPSS for a single timestep at a time without losing the state of the engine between steps.

Clone this wiki locally