Line 1171, U.S. units for mass flow should be "lbm/s" rather than "lb/s". This causes an error when trying to switch to U.S. units for a mass flow plot, because the pm_commensurate command does not recognize 'lb' as being commensurate with 'kg' or any other unit of mass.
Great tool, I use it all the time. This should be a part of the SimScape product!
Luca and Michael -- I think this example was created in a MATLAB release that is later than the one you're using. This submission contains a version compatible with R2012b and beyond, and a separate version compatible with R2013b and beyond. If you are using a MATLAB release *before* R2012b, neither will work ("Bad link" error). Please check your release and use the version compatible with your release.
The release that is compatible with this submission is indicated in the "File Information" field above.
It also doesn't work for me. I am using R2012, and when I run the code it generates an error. I run the startup file, and then the mdl file. The model loads, however the pump, hose, radiator, fluid properties, thermostat, and bypass hose all display "Bad link". Any suggestions?