I have written a MATLAB function, and created a simple LabVIEW program which I would like to interface with the MATLAB program.
My LabVIEW program generates a 1D array of numbers, which is then used as in input into the MATLAB script node.
However, when I try to run the program, I get the error;
"Error 1047 occurred at LabVIEW: LabVIEW failed to send variable to the script server. Server:"" in testing.vi
Possible reason(s):
LabVIEW: LabVIEW failed to send variable to the script server.
=========================
LabVIEW: LabVIEW failed to send variable to the script server."
The function runs as expected using only MATLAB.
I have tried to troubleshoot this error using the guidelines given here, https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Lk2SAE&l=en-GB, but this has not solved my problem.
I would really appreciate any guidance!
Both the LabVIEW and MATLAB programs are stored in the same folder.
VI is attached.
MATLAB Function code:
function [result] = testClassifier(trainedClassifier, testingData)
result = trainedClassifier.predictFcn(testingData)
end
Thank you