02-21-2016 12:17 AM
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.
02-22-2016 04:57 AM
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 Integrator | Integrates 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.