Hello,
I try to plot the pressure from one cylinder of an engine vs the cranckshaft angle. And do this for each motor cycle.
I want to plot the pressure value each degree which mean that I have 720 value per cycle because one mototor cycle corresponding of two rotation of the cranckshaft.
( I join a graph representing what I want to plot to simplify "pressure vs CAD")
My problem :
I have a 3600 ppr quadratic encoder which mean a precision of 0.1° but I'm just interresting by the entire value of angle.
So I plot the value of pressure only if the angle is an integer, apparently I miss a lot of them that's why I have a graph with 6 cycles instead of just one.
(see in attachment "my results")
I think it's because of a problem of timing with my loops on FPGA or on RT or both of them...
I'm open for each advices, examples or anything else who can help me
Best regards,
Simon