How to find the fall time of a voltage pulse.

5 views (last 30 days)
BP
BP on 27 Aug 2021
Answered: BP on 7 Sep 2021
I have a waveforn captured using an osciloscope and saved in a csv file. I am trying to find the 20% to 80% fall time value and plot the waveform with markers. Column 4 is the time (x axis) and column 5 is the voltage data (y axis) .

Accepted Answer

BP
BP on 27 Aug 2021
The csv file is attached.
  10 Comments
Star Strider
Star Strider on 2 Sep 2021
If it worked, please Accept my answer.
I made no changes in my code, and simply corrected your changed copy of it.
.

Sign in to comment.

More Answers (1)

BP
BP on 7 Sep 2021
It prints the correct data in the following form.
hafmax =
722.4474 180.6118
xm =
-2.2256e-06 9.72e-05
xm =
1.0e-04 *
-0.0223 0.9720
I think hefmax is the 20% and 80% points =180.61 volts and 722.45 volts.
I think 1.0e-4* is the time between the rising edge and fallowing edge which occures at t=-0.0223 and t=0.9720.
Is this correct?
--------------------
With the code as writen, is there any way to make it print out the values as shown below?
20% point= 180.61 volts
80% point =722.45 volts
FWHM time= 1.0e-04
X t1=-0.0223
X t2=0.9720
------------------------
So far, this is all i've been ably to get the data to displat which is not what I need it to look like. Please give me help and suggestions.
hafmax =
722.4474 180.6118
xm =
-2.2256e-06 9.72e-05
xm =
1.0e-04 *
-0.0223 0.9720
Full Width Half riseing edge/ falling edge) = -0.000002 u sec.
Full Width Half riseing edge/ falling edge) = 0.000097 u sec.
Hafmax points high/ low) = 722.447381 Volts.
Hafmax points high/ low) = 180.611845 Volts.

Categories

Find more on Function Creation in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!