12-10-2015 01:04 PM
FYI...
LabVIEW's Mathscript matrix null function produces the wrong values when executed on an RT system. It's correct when run on a Windows desktop but not when downloaded to my cRIO-9068. I'm running LV 2014sp1.
The following code illustrates the problem:
>> b = [0; 1];
>> nullB = null(b')
nullB =
-1
0
on Windows the solution is correct but on RT you'll get:
nullB =
1
0
As a work around the following is a functioning workaround,
>> b = [0; 1];
>> [q r] = qr(b); >> nullB = q(:, rank(b)+1:end);
Hope this helps others avoid lost time debugging...
12-15-2015 07:22 AM
Hi there,
Thank you very much for this information. I was able to reproduce your error and it seems that Null function is not working as expected in RT. For that reason a CAR has been created. Its number is 562480
Thank you very much for your feedback, we really appreciate it!
Regards