COMPILED VERSION OF SOCPROG


Hal Whitehead

April 2007


The compiled version of SOCPROG allows users to use the programs without a version of MATLAB. This is obviously a benefit, but there are some costs. The flexibility of MATLAB is lost in the compiled version: you cannot change the code to do exactly what you want, or use results produced by SOCPROG for further analyses in MATLAB. For many users the biggest drawback may be that the figures and graphs produced cannot be modified easily (in the uncompiled version they can be altered quite easily in a huge range of ways). However, the figures can be exported (e.g. as .emf files) which can be edited by other programs.


This compiled version (like the uncompiled version) is designed to be used with Windows–it doesn’t work on other platforms.


Installing compiled version:

 

After clicking “Download Compiled SOCPROG2 for MATLAB7" you will receive a zipped folder (compile7.zip) with the following files:

 

MCRInstaller.exe (installs program to run compiled MATLAB code)

socprogmaster... (files with SOCPROG code)

sim...xls (test data sets: see section 1.4 of the manual)

MANUAL2.pdf (SOCPROG manual)

 

After the zipped file compile7.zip has been downloaded, extract the files. Then:

 

1. Install the MCR by running the MCR Installer in a directory. For example, runMCRInstaller.exe in C:\MCR. If updating from a previous compiled version of MATLAB, uninstall the previous version of MCR first. [If you receive the following message “The wizard was interrupted before MATLAB component Runtime 7.6 could be completely installed” or “Error 1304 writing to file MWArray.dll Verify that you have access to that directory and later an Internal Error 2350 popup” then install the Microsoft Visual C++ Redistributable Package. For 32-bit systems, download vcredist_x86.exe (available here). For 64-bit systems, download vcredist_x64.exe (available here). Install the package on the target computer by double-clicking on the file you downloaded.  Re-execute MCRInstaller.exe.]


2. Copy all socprogmaster.... files to your SOCPROG root directory, for example,C:\socprog.

 

3. To run

∙ Launch a DOS command window in Windows by selecting Start->Run and entering "command".

∙ Use the DOS "cd" command to change the directory to the directory containing your socprogmaster files (see step 2).

∙ Type “socprogmaster” and press return

[If you launch SOCPROG just by clicking on socprogmaster.exe, you may have problems in scrolling or copying results from the command window.]


Other Notes:

 

1. In the compiled version of SOCPROG, the MATLAB command window is replaced by a simple “DOS” screen in which results are reported. By clicking on the top left “C:\” symbol you can find options for selecting, and copying, text which can then be pasted into other applications (see above note if you have problems with this).

 

2. As noted above, the figures produced by the compiled version of SOCPROG have many less options than those using the uncompiled version. However, there are a few options (adding a legend for instance), and you can save the figure in various formats which can then be manipulated by other applications.

 

Please let me know of problems (hwhitehe@dal.ca) and I will try to rectify them in future versions.