From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse counting - waveform construction

Hi everyone, 
I have a signal from an interferometer, this signal is almost like a sawtooth(who changes form positive ramp to negative ramp)
I need to generate a wavefrom from this signal, every time that a positive ramp is counted the waveform needs to be incremented 0,01 and each time that a negative ramp is counted the waveform needs to be decremented 0,01.

to simplify the signal i was thinking in derivate the sawtooth in order to have pulses and make more easy the proccessing, so in this case a positive pulse means an increment, and a negative one a decrement.

How could i make the pulse counting and waveform construction?

0 Kudos
Message 1 of 4
(1,896 Views)

Still you can use your previous Logic of Incrementing for both positive and negative ramp.

You need to maintain two different data variable which will hold two different ramp data's(Postive and Negative)

 

My Suggestion "To Provide Better suggestion its always better to share the developed code snippet and related data."

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 4
(1,840 Views)

Hi Palanivel, thanks for your time.
please find attached the signal, as the signal sometimes gets noisy and also the ramp time is changes according an external signal i thinking in apply a low pass filter and then derivate the signal, that could be a good way to become independent of external variations

0 Kudos
Message 3 of 4
(1,814 Views)

May I ask what you want to measure, and how you do it?

Your signal looks a bit like classial Michelson setup with a single PD (photodiode)..

But reminds me more to a phase wrapped signal...

 

Classical approaches would be a homodyne IF (Wollaston prism, 2 PD)

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 4
(1,786 Views)