LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FYI: mathscript 'null(M)' is wrong on RT

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...

0 Kudos
Message 1 of 2
(2,641 Views)

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

 

0 Kudos
Message 2 of 2
(2,573 Views)