Hello Everyone,
I am trying to use LabVIEW and Matlab together to control a heater to ensure the mixed gas going into my compressors is single phase. I am using a simple PID control to set the heater temperature. Matlab is needed to call the program Refprop to get complex mixed gas properties.
When I copy the script code into Matlab and set the variables manually, the program works. However, I receive the following Error 1047 when running through LabVIEW.
Any suggestions would be greatly appreciated!
Error Message:

Code Section:

Labview Code below