Error 1047 with MATLAB® Script Node

Updated Oct 22, 2018

Reported In


  • LabVIEW Full

Issue Details

I am passing data into a  MATLAB® script node in LabVIEW 2012, but I receive Error 1047: Labview failed to send variable to the script server.


This is a known issue in LabVIEW 2012, related to the way string and array data is passed into the MATLAB® script node from a control which is connected to the connector pane.

The easiest workaround is to perform some operation which forces LabVIEW to make a copy of the data before passing it into the MATLAB® script node.

Here are some suggestions for null operations which will fulfil this:
  • String data: Trim Whitespace function
  • Array of numeric data: Add 0
  • Array of boolean data: AND with True Constant
Using a local variable will also work, but this is not recommended programming practice, it is better to pass the data using wires.


Not Helpful