LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programmatically detect transition times in a digital waveform

Hi, I have a digital waveform and at certain times I have transistions and glinches , how can I programmatically detect and record the time stamps of the transitions

 

Thanks  

0 Kudos
Message 1 of 6
(3,030 Views)

It depends, how are you acquiring the digital waveform?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(3,024 Views)

I use DAQ 6363 OEM and use of one the digital channels to acquire the signal. So as I mentioend my input is a digital waveform and I should monitor bit n. What I would like to do is monitor this bit and when a transition happens I record the timestamp.

0 Kudos
Message 3 of 6
(3,010 Views)

If the period is short, you can tie the digital input to a counter channel and the counter will return an array of counts between transitions. If the time between edges is long, you can create a DAQ event that will trigger an event structure with each transition. You can use the time between events to measure the period.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 6
(2,999 Views)

I forgot to mentioen that , when I acquire the data I do some processing and then I monitor the processed signal in my consumer loop. I would like to monitor bit n transition time of that digital waveform.

 

Let me make it simpler. I have a digital waveform which continously read 14 bits. I would like to detect the transition times in bit 11( when 0 become 1 and when 1 become 0)

 

Thank you for your help

0 Kudos
Message 5 of 6
(2,994 Views)

Let me see if I understand you. You are reading 14 bits in parallel and you want to know how long between transitions of just one of those bits - say bit 11. Is this bit number constant or can the number of the bit in which you are interested change?

 

Well, you could XOR the value from each read of the digital bits with the 14 bits you got from the previous read. If the resulting value of bit 11 is true, the state of bit 11 has changed. Use that flag to read/restart an interval timer. Of course the resolution of your measurement will be dependent upon the rate at which you are reading the 14 bit input. If you are only sampling the 14 bits every 500 msec, you obviously won't be able to measure intervals of less than 1/2 sec.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 6
(2,978 Views)