07-21-2015 11:23 PM
Hello Gerd
Good Morning to you !
I need a support in measuring timing between finite pulses .
Please find snapshot for the waveform , i want to measure time between "yellow and red " , "Yellow and blue ".
Can you provide me some hint to implement this thing ?
Regards
Nitin
Solved! Go to Solution.
07-22-2015 01:43 AM - edited 07-22-2015 01:43 AM
Hi Nitin,
you shouldn't start a new thread with asking for help from a specific person…
i want to measure time between "yellow and red " , "Yellow and blue ".
Yellow/red: read your signals with sufficient high sample rate and count the samples between both signal edges
Yellow/blue: read your signal with sufficient high sample rate and count the samples between both edges…
07-22-2015 01:57 AM
Thank you very much Gerd
Next time i willl take care not to addresss a particular person .
I have question Regarding this
"Yellow/red: read your signals with sufficient high sample rate and count the samples between both signal edges
Yellow/blue: read your signal with sufficient high sample rate and count the samples between both edges…"
Counting the sample between both edges means to count transition only or something else?
And how it will result in time from the first pulse to last pulse .
Thanks & regards
Nitin
07-22-2015 02:00 AM
Hi Nitin,
the sample rate is your factor between number of samples and time: time = #samples / samplerate…
There are probably more sophisticated measurements techniques available (using the advanced counter capabilities of NI DAQ hardware), but a brute force signal reading will help to understand the relation between sample rate and time… 😄
07-22-2015 02:55 AM
Oops Basics issue ,
I will implement the same and let you know if i will find any difficulty .
Thanks Man .
07-31-2015 03:08 AM
Hi Gerd,
I tried with the same to get the time like no of samples/sample rate . But its no way near to the actual value .
Regards
Nitin
07-31-2015 04:26 AM
Hi Nitin,
its no way near to the actual value .
As usual: attach a VI with some default sample data and your way of calculating time between pulses.
Btw. what's the reason to mark your message as solution? What kind of solution is "I will try to implement it"???
07-31-2015 07:05 AM
Hi Gerd
Here are the files for your refernce
CRO snapshot , VI & Vi snapshot .
Thanks for too much effort .
Hope you will help me .
Regards
nitin
07-31-2015 07:27 AM
Hi Nitin,
what should your VI do?
Right now you count rising and falling edges, add them up and divide by the sample rate. What do you expect as result?
Even more worse: you set a sample rate of 25kHz and then start to read the samples one by one. This is a no-go!
You need to count the samples between two pulses!
Get the signals as arrays of samples. Search for the first rising edge and get it's position. Search for the next rising edge and get it's position. The difference between the positions is your delay!
08-05-2015 12:43 AM
Hello Gerd
i tried to grab signal as an array , i am able to see signal on scope , why i am not able to see on digital indictaor ?
Attachment :- Vi & Snapshot.
Regards
Nitin