Jump to content

measuring 50 ms pulse amplitude


Recommended Posts

I can give you two ideas:

1. If you just want ot catch te max reading, you ccan perform simple logic, as follow:

Each scan of the controller you will compare the reading (in your case MI1) to a "buffer" - let's say MI2 (any other MI can be used too). If MI1 > MI2 (curent value greater than buffer), Store MI1 to MI2.

This way in the buffer (MI2 in our example) you will have the max value.

2. Make DT and store MI1 on it each scan. In some cases yu can fil lMI1 in vector (Vector Fill) instead in DT.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.