LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscipt node issue

I did. They submitted to R&D and closed the case.

0 Kudos
Message 11 of 15
(1,450 Views)

@dungnnguyen wrote:

I did. They submitted to R&D and closed the case.


OK, there must be a CAR# in their system to track the bug. I guess you never got the number...

0 Kudos
Message 12 of 15
(1,440 Views)

OK, I wrote a pure g replacement and it seems more robust.

 

Here is some simple code to calculate N and D for any input X such that N/D ~= X. See if this works for you.

 

 

CArat2.png

 

(I also included a little tester to measure performance and failure count. Note that this is just a draft. Once polished up, I will probably post it in a dedicated place elsewhere. For typical tolerances of 1e-6, the computation takes about 500ns).

 

CAratTest.png

 

Message 13 of 15
(1,408 Views)

CAR 702329

Message 14 of 15
(1,380 Views)

Thanks, it's matched matlab in all the cases I tested. 

0 Kudos
Message 15 of 15
(1,361 Views)