Hello Ian,
Unfortunately, the MathScript Node was not available in LabVIEW 7.1 (It was introduced in LabVIEW 8.0). I think what you mean is the MATLAB® script node. However, I do not see the problem you describe. I can open the VI, set the a and b controls to 1 and 4, respectively, and run the VI. The c and d outputs produce the same results as g and h. The problem you see may result from the default values of controls.
You can set the value of a and b to be whatever you want. Running the VI will produce the correct results. However, if you close the VI and reopen it, the controls will lose their values -- they will be set to 0. Running the VI now will produce 0 for the outputs. In order to set default values, change the values of a and b to be the correct values. Then select Edit >> Make Current Values Default. Now save the VI and when you reopen it, it will run correctly. If you use this VI as a subVI and always wire the a and b inputs, then the default values will not matter as the values on the wires will always be used. If you are using the VI in this latter case, can you also post the caller VI?
MATLAB® is a registered trademark of The MathWorks, Inc.
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments