LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pwm synchronous sampling with Labview

Hello!

 

I want to use synchronous sampling on a PWM-signal.

 

That means sampling with the same frequency as the PWM-signal. 

Even if the frequency is unknown it´s not difficult to calculate. The big problem is to know where to sample every period since the duty cycle changes all the time. To minimize the influence from the step response, it´s desirable to sample in the middle of the high duration.

 

So what needs to be done is:

 

1. analyse the first period, determine the duration

2. to sample as close to the middle as possible in the next period, without knowing if the duty cycle is going up or down, sample after the half duration of the first period.

3.analyse the second period to determine where to sample in the third period.

 

 

I hope you understand the theory, sample in one period and at the same time analyse the duration length to determine where to sample in the next period.

 

The problem is how to make Labview to perform the calculations.

 

I appreciate all help I can get.

 

 

 

 

0 Kudos
Message 1 of 1
(2,162 Views)