Jump to content

measuring pule width


Moran

Recommended Posts

hellow,

i need to measure the width of 1 squre pulse . this pulse is 50ms and about 20V amplitude ( which i have to measure ).

i am using V570 and V200, i thought using the V200 digital input and start timer , and when the pulse is at low state stop the timer.

can i do that? how?

if someone has a better idea i will be happy to hear.

thanks,

Moran

Link to comment
Share on other sites

  • MVP 2023

If it's only one pulse you won't be able to measure the frequency - the HSC input averages the pulse counts over a period settable from 100 ms to 1s. As soon as your pulse is gone the frequency register will reset itself back to zero.

A timer won't work well for this; the best resolution you can get is +/- 10 ms plus the scan time which is typically 3 -10 milliseconds (depending on your program size).

Read the Help on the 1.25 ms interrupt routine and set it up to to use an immediate input to increment a counter as long as the pulse is high. The routine solves every 1.25 ms, so you move the count value to another MI when the input goes low. Then it's a matter of multiplying this count by 1.25 to get the pulse width in milliseconds.

Joe T.

  • Upvote 1
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.

Guest
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...