I have come across another interesting feature of the "simexe" process (matrixx 7.16 on Windows 2000).
While implementing a small SBA script I got confused between the
results/operation obtained when running pieces of the code (copy-paste)
to the xmath command line versus running the MSC.
When running the MSC, the debugger window would open at the point when a "sim" command was used: Error message:
Number of inputs specified: 2 Number of inputs required: 1 No input history installed.
My MSC runs an SBAdisplay {refresh} just prior to the "sim" and the
number of input required (and displayed) is "2" not 1 as per the
debugger.
I found that if I added a "pause 1" after my SBA code before running the "sim", all was happy.
It appears that SBA commands may "return" before actually being finished?
I have included 2 MSC (the original and #2 which has the "pause" statements).
I have also included the "log" of each. Note that with the "pause"
statement, you get the following prior to the "lin" or "sim" commands:
1 catalog object loaded.
Analyzing model
Library Loaded [1]: U:\tools\StdBlk\Blocks\StdBlk.cat
SuperBlock Reference Map : (Subsystem, SuperBlock, [LibraryNumber])
1 Testing
Analyze complete for SuperBlock Testing.
In the original, all that is displayed is: "simexe catalog uptodate."