A way to sample outputs in every 1 us (micro second)

2 visualizaciones (últimos 30 días)
Jaeyoung
Jaeyoung el 2 de Oct. de 2014
Comentada: Jaeyoung el 2 de Oct. de 2014
Hi all,
I have measurement data form Logic Analyzer. I measured my chip using 1 Mhz clock, and saved data to a csv file. I want to have one output in every 1us since my clock is 1Mhz. However, the data was not measured in every 1ns. I do understand a Logic Analyzer is smart so it reduces a step size in a transition, and the logic analyzer increase a step size when outputs do not change in long time. However, it makes me crazy to collect and analyze data. How do I solve this issue?
The first column shows time, and the second column shows value. When it transits from 0 to 1. Time step is smaller than 1us since a logic analyzer tried to measure it precisely. When there are sequential ones, it increases a step size to 2us or more. I just want to sample one data in every 1us. I would appreciate you help me. Thank you in advance.
Time (sec) Value Time step (sec)
-1.048596968 0
-1.048596072 1 0.000000896
-1.048595072 1 0.000001
-1.048594072 1 0.000001
-1.048592072 0 0.000002
-1.048588072 1 0.000004
-1.048587072 1 0.000001
-1.048586072 1 0.000001
-1.048585072 1 0.000001
-1.048584072 1 0.000001
-1.048583072 1 0.000001
-1.048580586 1 0.000002486
-1.048580072 1 0.000000514
-1.048577072 1 0.000003
-1.048576072 1 0.000001
-1.048575072 0 0.000001
-1.048565072 1 0.00001
-1.048564072 0 0.000001
-1.048563072 0 0.000001
Best,
Jaeyoung

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Oct. de 2014
You can use interp1 function
  1 comentario
Jaeyoung
Jaeyoung el 2 de Oct. de 2014
I've tried to do interpolation using interp1, but I couldn't get what I want to do. Could you please explain more?

Iniciar sesión para comentar.

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by