LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse Width Measurement

Hello Friends,

 

I am new to Labview. And now I am working on a project where I have to measure the pulse width.

I have attached a pulse waveform and would like to measure the pulse width of the first rising the falling edge and log it , rest of the signal I am not interesed in.

I will have this signal 6 times on my digital/analog input. 

 

Can someone help me with the pulse width measurements.

 

Thank you.

Kind Regards,

0 Kudos
Message 1 of 17
(3,838 Views)

Hi sky,

 

what kind of hardware do you use? Does it support more than simple counter tasks?

 

Simple method:

- Acquire the signal with sufficient sample rate.

- Look for rising/falling edges in the signal.

- Get the distance between edges in number of samples.

- Multiply number of samples with sample rate…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 17
(3,828 Views)

Hi GerdW,

 

I use Data Acquistion Device (USB-6353).

 

Kind Regards,

0 Kudos
Message 3 of 17
(3,826 Views)

As written in the specs this device supports pulse-width measurements…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 17
(3,821 Views)

HI GerdW,

Can you help me in the VI, I am working on.

 

1) I get the pulse width of only 1st rising and falling edge

2) Able to log the information on pulse width of this 1 edge.

3) Get sigal from digital/analog inputs X 6 times, not the vi generated signal.

 

Thanks 

kind Regards,

0 Kudos
Message 5 of 17
(3,817 Views)

Hi GerdW,

 

Any Comments ?

 

Thanks

Kind Regards,

0 Kudos
Message 6 of 17
(3,767 Views)

Hi sky,

 

you know bumping after just one hour (or even less) is considered rude behaviour?

 

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 17
(3,762 Views)

hi GerdW,

 

I am sorry for that. Will keep in mind next time.

 

But still in this case 

1) I cant get the signal from outside to my hardware inputs. (on 6 different inputs) I want to measure the signal width which are coming from outside to my hardware input pins X 6.

2) I cant Log the pulse width.

 

KInd Regards,

Sorry again.

Thanks

0 Kudos
Message 8 of 17
(3,758 Views)
What input pins are you using and how did you wire them. For six signals and your existing code, you should be using the analog inputs. Do the signals appear in the MAX test panel?

How are you trying to log the measurement?
0 Kudos
Message 9 of 17
(3,742 Views)

I get this pulse ( as in picture attached), I want to get it on analog or digital pins in such a way in get the pulse width of only 1st edge.

And this 1st edge lenght is different then the rest that follows. I would like to have the pulse width for only the 1st edge and log the width.

 

And similarly this signal will come from 5 more different sources. So each signal is different.

For now i connected it to AI0 and I can see the signal.

 

1) next step measure only the first edge.

2) 6X input channel 

2) log it.

 

0 Kudos
Message 10 of 17
(3,737 Views)