Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating a signal acquired on analog input in myRIO (FPGA or RT Target)?

Hello. I am working on a project on myRIO in which I want to integrate a waveform aquired on analog input. I have successfully aquired a current waveform (sine wave) on the analog input. Now I want to integrate this waveform to calcutate some other quantity. Theoratically I will get a sine wave shifted by 90 degrees (-cos wave) as a result. I am unable to use any of built in function of integration or accumulation for carrying out integration. I have tried to make my own algorithms but they are not generating required results.

 

Kindly help me out in this problem. I am looking forward for your help. 

0 Kudos
Message 1 of 2
(4,019 Views)

moizW,

 

It seems FPGA has limited mathemathic functions.  Some Euler integration for discrete inputs are available (Func Pallette -->FPGA Math & Analysis-->Control-->Linear Systems).  If you need sophisticated integrators, I guess it's better to tranfer your data from FPGA to PC thorugh FIFO buffers and do the processing in your PC.

 

Discrete Normalized IntegratorIntegrates a discrete input signal using forward Euler integration. The VI assumes that the integration interval (dt) is normalized to 1. The data type you wire to input determines output data type, where output word length is equal to input word length + 16 bits.

 

Thanks,
Ajay.

--
Ajay MV


0 Kudos
Message 2 of 2
(3,997 Views)