MATLAB: Can’t I use the parameter file that I created on a Windows NT machine using RSIM and the RSIMGETRTP option, on an UNIX SGI, SUN or LINUX machine

linuxntrsimrsimgetrtprtwsgisimulink codersun

I have built a Windows NT and SGI stand-alone executable from the same Simulink model through the Rapid Simulation Target option of the Real Time Workshop. I need the ability to call the RSIMGETRTP function on the Windows NT machine and be able to use this file on the SGI by executing a statement such as the following:
!rsimtfdemo -p myparamfile.mat
I receive a checksum error when doing this.The error is below:
error:model checksum mismatch-incorrect parameter data specified
I also tried this out on SUN and LINUX machines and got the same error.

Best Answer

Our parameters' checksums do not match across platforms.
To work around this issue, comment out the follwing lines in $MATLAB/rtw/c/rsim/rsim_sup.c (where $MATLAB is the MATLAB root directory on your machine), or in $MATLAB/rtw/c/rsim/rsim_main.c for MATLAB 6.1 (R12.1) and earlier.
/* be sure checksums all match */
if (paramStructure->checksum[0] != ssGetChecksum0(S) ||
paramStructure->checksum[1] != ssGetChecksum1(S) ||
paramStructure->checksum[2] != ssGetChecksum2(S) ||
paramStructure->checksum[3] != ssGetChecksum3(S) ) {
result = "model checksum mismatch - incorrect parameter data "
"specified";
goto EXIT_POINT;
}
This is what checks for parameter checksum match. Rebuild the RSIM executable, and this time it will not error out when the parameter file's checksum does not match.