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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...