08-14-2018 12:14 AM
hi guys,
i've been working on a project for NDB purposed. so this is basically a software project to simulate how an NDB works. image below explains how NDB system basically works.
08-14-2018 12:31 AM
Hi aas,
but i got a problem to differentiate this pwm signal into 4 different bites, such as a a! b b! , which a! is pwm signal in the phase between 0-pi , b is in the phase of pi-2pi , a! is value 0 on pi, b! is value 0 on 0 or 2pi.
You really need to explain those "bites" and all that about 0, pi, and 2pi. What is the significance of the exclamation mark after a and b?
08-14-2018 01:14 AM
@GerdW wrote:
Hi aas,
but i got a problem to differentiate this pwm signal into 4 different bites, such as a a! b b! , which a! is pwm signal in the phase between 0-pi , b is in the phase of pi-2pi , a! is value 0 on pi, b! is value 0 on 0 or 2pi.
You really need to explain those "bites" and all that about 0, pi, and 2pi. What is the significance of the exclamation mark after a and b?
i wanted to make the generated PWM differentiated into 4 different array
array a for all of the bit in between phase 0 and pi ( 0 - 180 )
array a! ( a not ) for all bit exactly on phase pi
array b for all the bit in between phase pi and 2pi ( 180 - 360 )
array b!( b not ) for all bit exactly phase 0 or 2pi ( 0 , 360 )
more or less like image above
thank you in advance
effen
08-14-2018 01:29 AM
Hi effen,
how do you know just from your PWM signal which phase of the underlying sine wave corresponds to which sample in the waveform?
Also keep in mind: comparing float for equality is "not recommended"! Its hard enough to find the exact 0 spot, but comparing with multiples of pi might be even harder…
08-14-2018 01:41 AM
@GerdW wrote:
Hi effen,
how do you know just from your PWM signal which phase of the underlying sine wave corresponds to which sample in the waveform?
Also keep in mind: comparing float for equality is "not recommended"! Its hard enough to find the exact 0 spot, but comparing with multiples of pi might be even harder…
thats why im confused here, i wanted all the bit from positive value of sine wave are stored in array a and all the bit from negative value of the sine wave are stored in array b
08-14-2018 01:50 AM
08-14-2018 01:58 AM
@GerdW wrote:
Hi effen,
so you need a subVI with two inputs: sine wave and PWM signal.
The output would be two arrays with "bits"…
(I still don't get the sense behind all this.)
yeah, i need all of the generated PWM signal stored as array of bits , but differentiated into 2 different arrays as i explained before. if only stored in one array as all the pwm ( generated from positive and also negative values of sinewave ) , I already did that.
08-14-2018 03:15 AM
08-14-2018 10:26 PM
@GerdW wrote:
Hi effen,
you could something similar to this:
hi, could you upload the labview.vi file ?
thank you in advance
effen
08-15-2018 01:03 AM
Hi effen,
I didn't save that VI, I just created it from scratch in 3mins…
You need:
- GetWaveformTimeArray
- GetWaveformComponents
- Index&BundleClusterarray
- Threshold1DArray in a FOR loop
The other stuff should be no problem at all! (You did the basics courses offered in the training section in the header of the LabVIEW board, did you?)