Error 1046 When Using a MathScript Node or MATLAB Script in LabVIEW

Updated Apr 8, 2021

Reported In


  • LabVIEW Full
  • LabVIEW MathScript Module

Issue Details

When I try to run a VI with a MathScript Node or a MATLAB script, LabVIEW displays the following error:
Error 1046 occurred at an unidentified location

Possible reasons(s):

LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed in concerned VI.


Licensing/Installation Error of MathScript Node

The error above may come from an improper install of the LabVIEW MathScript Module or by not having the software activated.

  • Check that the LabVIEW MathScript Module is activated in NI License Manager.
  • Repair the LabVIEW MathScript Module with the NI Package Manager.

Use of MATLAB script without MATLAB

Another reason for this error is if the LabVIEW VI calls the MATLAB script node without having MATLAB 6.5 or later being installed or properly activated on the computer. This is because the MATLAB script nodes invoke the MATLAB software script server to execute scripts written in the MATLAB syntax.

Note: Ensure that MATLAB is installed in the same local disk where LabVIEW is installed.