Reference of all functions of Siglab - panel B functions.
These functions are generation, buffer related and complex functions.
The buffer is a memory place where you can store values for further use.
| Buttons | Shortcut | Result and Explanation |
|
|
copy a signal part to the buffer. When clicking on this button, the following dialog appears :
|
|
|
|
Create a new signal with the content of the buffer. | |
|
|
This one is funny. %a is the abscisse. Here y=x. You may think that it has no use, but you are wrong. Each time, you wish to generate a signal, it is very useful. You want to create a sinusoide : sin ( 2 * %pi * %a / 100 ) (period of one hundred point). All generated signals make an extensive use of %a. They are poor formulas around this animal. |
1. Generation button


Square signals

if modulo(x+phase,period) < (period*cyclique) y=max else y=minIn other terms, if you need something precise, try. It allows also to have dirac series (we speak of "peigne de Dirac" in french, but I am sure that Dirac had not a single remaining hair).
Triangle signal

if (modulo(x+phase,period))<(period*cyclique) y=(modulo(x+phase,period)/period/cyclique-0.5)*amplitude+mean_value else y=mean_value-amplitude*((modulo(x+phase,period)/period-cyclique)/(1-cyclique)-0.5)Sinusoidal signal

y=mean_value+amplitude*sin(2*%pi*x/period+phase)
Complex sinusoide

y=mean_value+amplitude*exp(%i*2*%pi*x/period+phase);Ramp

y=a*x+bBasically, it is the graphical interface above something trivial to do directly with siglab. Really a function for lazy boys (mail to me, we will create a club).
Dirac

Sery of Dirac

Constant signal

IMPORTANT REMARKS :
- these functions are formulas over the abscisse value. The generated functions are then available anywhere. If you generated a sinusoide and place your cursor at the point 10000000, you will have a signal.
- However, I needed to give a length to these values for a reason or another. Then, normally it is the length of the first signal. It does not matter, as you may go after the length of the signal. If this is the first signal used, I force a length of 10000.
2. The window button


Rectangle, triangle, Hamming and Hanning window have the same parameters :
- the abscisse of the first point,
- the width of the window.

Kaiser window has a parameter : beta. I suppose it means something for those who know. You may find information in the window command documentation of scilab.

Chebichev window has 2 parameters : main lobe width and side lobe height. There are restrictions on the values ( main > 0, and 0< lobe < 0.5). I never succeeded to generate any signal with chebichev. You are warned.

3. The noise button

Uniform noise

- first point : the abscisse of the first point of the noise,
- width : the nber of samples that is generated,
- amplitude : the amplitude of the noise,
- mean : the average value of the noise.
Gaussian noise

- first point : look at uniform noise above,
- width : look at uniform noise above,
- variance : the variance,
- mean : the average value.
I used the following formula :
y = mean + variance * gaussian random signal(with 0 mean, and variance 1)
Complex uniform noise

Complex gaussian noise

In fact 2 noises are generated one for the real and one for the imaginary part, and then both are added. The variance is treated as being the amplitude, and is then stored in the 2 signals.
Random bits

- first point : look at uniform noise above,
- width : look at uniform noise above,
- bit width : the nber of samples used for representing a bit.
- proba of 0 : the probability of having 0
Values of bits will be 0, 1. If you wish to have other values for 1 and 0 just do operations on this signal.
4. Filtering of a signal
4.1. Filter coefficients from the buffer memory


- Abs or Rel : the first point in the buffer was taken at a given abscisse (for example 1000). Abs means that the coordinates that are provided under are related to the real abscisse of the point. Rel, means the first point value will be related to the buffer. So 1 will mean the first point of the buffer, whatever is its real abscisse. In 99% of the cases, you will choose relative. (I wonder if I should not remove the abs option).
- first point : the first point of the buffer (please look on abs or rel explanation to know what that means) that will be used as the first filter point.
- width : the width of the filter.
- Signal 2 : the signal on which the filter will be aplied.
4.2. Filter coefficients taken from another signal


- Filter : the signal to be used as a filter,
- First point : the abscisse of the first filter point,
- Width : the width of the filter,
- Signal 2 : the signal on which the filtering will be applied.
5. FFT


6. Inverse FFT

As with fft, a window may be applied to the signal.
7. Correlation


- Signal 1 : first signal,
- First point : abscisse start of the correlation,
- Width : width of the correlation,
- Signal 2 : second signal,
- Correlation coefficients nber : nber of correlation coefficient that will be put in the result signals.
Please refer to the correlation man page of scilab to learn more.
8. Convolution









