Rebuilding the Model EXE Suppose you are working with a dynamic simulation (perhaps one you have loaded from a ZIP archive) and you want to change the theory of the model. Then you need to edit the TAB file and then rerun TABLO and LTG (that is, Compile and Link) to produce a new TABLO-generated EXE file for the model. Of course you need Source-Code GEMPACK in order to do this. Here we give some advice as to where you might work in order to build the new EXE and make it accessible to RunDynam. RunDynam allows you to work anywhere convenient for you. After you have built the new EXE, you can make it accessible to RunDynam by loading it via the Change Model button on the Model/Data page. If you have loaded the dynamic simulation from a ZIP archive, you will see that the model EXE has been put into the MODEL subdirectory of your Working Directory and that the TAB and TABLO STI files have been put into the TABETC subdirectory of your Working Directory. In order to work sensibly with these, it makes sense to have the TAB, TABLO STI and model EXE files all in the same directory. •One way to do this is to copy the TAB and TABLO STI files into the MODEL subdirectory. Then edit the TAB file there and, when complete, run TABLO and LTG to rebuild the model EXE in the MODEL subdirectory. •An alternative is to work in the TABETC subdirectory. There edit the TAB file and, when complete, run TABLO and LTG to rebuild the model EXE in the TABETC subdirectory. Then you need to load this EXE via the Change Model button on the Model/Data page. In this case, if you have a Dynamic Information (.DIN) file, you MUST copy this DIN file from the MODEL subdirectory into the TABETC subdirectory before you hit the button. •A third way is to work somewhere else on your hard disk to rebuild the model EXE and then copy it, and the related AXS, AXT and MIN files, into the MODEL subdirectory of your Working Directory. After you do the copy, you must inform RunDynam about the changed model EXE by loading it via the button on the Model/Data page. Of these three, I (Ken Pearson) recommend the first. The danger with the TABETC way is that you forget to copy the DIN file there. The danger with the third way is that you forget to copy the model EXE or one of the related files into the MODEL subdirectory. Whichever of these 3 alternatives you choose, please remember to hit the button on the Model/Data page whenever you change the model EXE. Then RunDynam will always have up-to-date information about your model. Fine print You may wonder why, when restoring from a ZIP archive, RunDynam does not copy the TAB and TABLO STI files to the MODEL subdirectory. We have chosen not to do that in case RunDynam inadvertently overwrites a version of the TAB file you have been working on but not yet properly saved. URL of this topic: www.copsmodels.com/webhelp/rundynam/hc_rebuildmodel.htm Link to full GEMPACK Manual Link to GEMPACK homepage |