LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fpga

Dear all,

 

I'm using cRIO-9024 & LV 2012 and have some trouble in FPGA.

 

I'm trying to calculate sine & cosine values in FPGA so I have used "High Throughput Sine&Cosine" in FPGA.

However, the function returns wrong value.

 

For example, If I give "6.2832" (2*pi) as an input it returns "0.63" (cos x)
Also, If I give "3.1416" (pi) as an input it returns "-0.9" (cos x)

 

I am able to receive right values in RT level from VIs in RT but I am having the wrong values in FPGA from "High Throughput Sine&Cosine".

 

Does anybody know how to resolve the problem?

 

Thank you for your help!!!

 

-Kim

 

 

 

0 Kudos
Message 1 of 5
(2,810 Views)

Hello,

 

We do have an Example using the High Throughput Sine&Cosine Function.

 

In LabVIEW go to Help >> Find Examples >> Hardware Input and output >> CompactRIO >> FPGA Fundamentals >> High-throughput Math >> Generate Sine Wave

 

Are you able to run the example properly?

Regards,

M. Whitaker
ni.com/support
0 Kudos
Message 2 of 5
(2,766 Views)

Hi,

 

the problem is resolved.

 

input unit of the function in Real-Time is rad.

however, input unit of the function in FPGA is pi rad.

 

I didn't notice the difference.

 

Thank you

0 Kudos
Message 3 of 5
(2,746 Views)

Hello,

I am using LabVIEW 2013, and i cannot found highthrough under FPGA fundamentals in compact rio examples.

I would be grateful if yo could screenshot the example or post it. 

Thank you very much

0 Kudos
Message 4 of 5
(2,679 Views)
Try the following path in the Example Finder:
 
Hardware Input and Output >> CompactRIO >> Math and Analysis >> High-Throughput functions >> Sine Wave Generation
 
Hope this helps!
0 Kudos
Message 5 of 5
(2,642 Views)