Hi,
It measures one pulse only. Once it sees the "end" of that pulse the code continues on the line following the PULSIN statement.

/Henrik.