LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building a waveform from a binary array and and sometida noise

Solved!
Go to solution
Hi everybody

I've got a binary array 1&0 and I want to build a waveform from it, each pulse with a 500 ms interval adding some noise, how can i get it?

Labview version 2010


Thanks
0 Kudos
Message 1 of 14
(5,619 Views)

What is the actual format of your "binary" array?  In LabVIEW binary data has values of True and False. If you have 1 and 0, then you either have numeric data of some type or strings.  The conversion to wavefroms will differ depending on the starting datatype.

 

How much noise, relative to the 1 & 0 amplitude, do you want? Do you want the amplitude to be constant for the 500 ms interval but have a random variation from one period to the next or do you want the amplitude to change randomly at a higher rate, such as once per millisecond? Again, the details make a significant difference in how the waveform is constructed.

 

Lynn

0 Kudos
Message 2 of 14
(5,595 Views)

Hi,

 

 

Thank you for your answer, yes, my array is a sequence of numeric data of 1 and 0, each transition must be 500 ms creating a square signal.

Well about noise, I need some periodic noise similar to white noise, enough to deform this signal, at the end of my VI i want to filtrate that noisy signal and I can recover the original sequence of 1 and 0.

 

Thank you.

 

Labview Ver 2010.

0 Kudos
Message 3 of 14
(5,569 Views)

Following up on Lynn's questions, I can think of (at least) three ways to "add noise".  Let's assume that the "ideal" waveform is 0 for 0.5 second, 5 for 0.5 second, 0 for 0.5 second, 5 for 0.5 second, etc. (a 1Hz square wave of amplitude 5).  

  • Keep the waves "square" (i.e. constant over 0.5 sec), but have the amplitude be normally distributed, mean 5, standard deviation 1.
  • Make the top (5) level non-constant, say normally distributed, mean 5, SD 1 (need to specify the timing of the non-constant phase).
  • Also allow the 0 level vary, either as a constant or as a time-varying
  • Make the timing variable (i.e. the duration of the High and Low periods are normally distributed at 0.5 sec, SD 0.1 sec).
  • Some combination of the above.

Can you be (much) more specific about the type of waveform you wish?  How are you planning to produce this waveform?  [Note that if you plan to use a Digital Output device, the only reasonable "variability" is in the timing, the fourth option above].

 

Bob Schor 

0 Kudos
Message 4 of 14
(5,543 Views)

Hi,

 

I've got an array of pulses (numeric constant of 1 y 0) [150 in total], if I connect a waveform chart I can see something like a triangle signal, the issue is, i neeed to create a square signal with this values (500ms), and after, add some noiseto this square signal, at the end of my VI I want to test a filter and an algorithm of signal recovery, to get the original 1 and 0 numeric pulse array.

 

 

Thanks.

0 Kudos
Message 5 of 14
(5,501 Views)

Search the palettes for Build Digital Waveform

0 Kudos
Message 6 of 14
(5,484 Views)
Our just change the interpolation of your chat to see it as a square wave.
0 Kudos
Message 7 of 14
(5,406 Views)

Which type of signal do you want?

 

Lynn

 

Noisy Square waves.png

0 Kudos
Message 8 of 14
(5,240 Views)
Or for digital signal recovery, do you want to randomly add our drop a bit?
0 Kudos
Message 9 of 14
(5,227 Views)
Hi,

I want first one, I need that kind of noise to my pulse of 1s and 0s signal,

Thank you
0 Kudos
Message 10 of 14
(5,116 Views)