11-09-2012 05:49 AM
I'm using crio 9022 to measure analog input acceleration through FPGA module.
Actually I need the velocity rather than acceleration.
I'll use velocity in a controller based to generate analog output to control a device ( MR damper).
How can I integrate the acceleration to obtain the velocity online
Thanks for all
11-12-2012 10:02 AM
Hi wgkotb,
I hope you are well.
I have been looking at your request. I wanted to ask you the following:
- When you asked if it is possible to perform integration on your acceleration 'online', did you mean within FPGA?
If this is the case, you can the use the Point-by-point mathematic functions.
FPGA mathematics is point-by-point.
You access various point-by-point functions by going into the following function palette (on the block diagram of your 'Host.vi' in the FPGA project):
- Signal Processing>>Point-by-point>>Integral and Differential Ptbypt>>Integral x(t) Ptbypt.vi
Therefore you would simply need to pass your acceleration input into this VI along with the value of dt over which you are performing the definite integral and you will get a value for the velocity as an output.
If this is not what you were after, would you be able to clarify your application requirements and then I can try to help you further.
Kind Regards,
11-13-2012 06:06 AM
Hi Dominic,
Thanks a lot for your reply
I'll try to follow your solution and see what gona happen
regards
wgkotb