Signal Conditioning

Showing results for 
Search instead for 
Did you mean: 
Reply

How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

Solved!
Go to Solution

How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance, As it is shown in the figure below. and enter this signal in a daq.

 

Signal of the input22.jpg

0 Kudos
Message 1 of 3 (2,740 Views)
Reply
0 Kudos
Solution
Accepted by topic author Firas3001
‎08-27-2015 06:09 PM

Re: How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

[ Edited ]

By the time you spend for the nice diadram you might have done the vi Smiley Wink

Your DAQ like to have a waveform (array of values and dt ak 1/samplerate)

If you set the samplerate you know the array length , create a array of zeros, and set the values of both amplitudes ... 

Since I don't want to wire others homework Smiley Wink here are some pictures

And there are some drawbacks is room for improvement in my solution, just think of rounding errors ... and what might happen if the arrays get bigger ....

pulse front.png

Spoiler
pulser BLOCK.png

 

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 2 of 3 (2,724 Views)
Reply
0 Kudos
Highlighted

Re: How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

Thank you very much Henrik Volkers...I appreciate you help...

0 Kudos
Message 3 of 3 (2,720 Views)
Reply
0 Kudos