I am getting error 1048 in labview MATLAB script. If I remove the "data_demodulation" indicator (see red circle in the figure) from the MATLAB script, I do not receive this error. But if I put "data_demodulation indicator on MATLAB script, I get this error. See attached image and vi.
I have seen several posts related to error 1048, but unable to find a solution.
Please guide me how can I fix it.
Solved! Go to Solution.
Move the bit where you define data_demodulate outside of the elseif statement. It looks like if the elseif statement doesn't run then data_demodulate is never defined.
Even if the elseif statement runs, the conditional creation of it might still be causing your issue.
I solve this problem my self by removing greater than operator from MATLAB script. And used labView greater than operator and now I am not getting any error.