11,720,785 members (64,124 online)

Simulating Signal recovery

, 11 Jun 2008 CPOL 13.3K 312 9
 Rate this:
NRZ, Bipolar AMI, M Level, PSK, FSK, ASK

Introduction

this application needs input a bit string, deltha and sample to get the recovered signal.

Using the code

class classGrafica has 19 methods NRZ, BIPOLAR, ASK, PSK...

NRZ method

```public PointPairList NRZ()
{
PointPairList ptosnrz = new PointPairList();
int i;
int j;
int val;
double[] punto = new double[lenght];
for (i = 0; i < lenght; i++)
{
punto[i] = Convert.ToInt32(bits[i].ToString());
}
double y;
val = 0;
for (j = 0; j < lenght; j++)
{
y = (double)punto[j] * 5;
for (i = 0; i < muestra; i++)
{
val++;
}
}
return ptosnrz;
}```

Bipolar Method

```public PointPairList BIPOLAR()
{
PointPairList ptosbipolar = new PointPairList();
int i;
int j;
int val;
double[] punto = new double[lenght];
for (i = 0; i < lenght; i++)
{
punto[i] = Convert.ToInt32(bits[i].ToString());
}
double y;
int p;
val = 0;
p = 2;
for (j = 0; j < lenght; j++)
{
y = (double)punto[j];
if (y == 1)
{
y = Math.Pow(-y, p);
p++;
}
y = y * 5;
for (i = 0; i < muestra; i++)
{
val++;
}
}
return ptosbipolar;
}
```

In the source code are everything to make it works...

Share

No Biography provided

You may also be interested in...

 First Prev Next
 My vote of 1 Luc Pattyn28-Jan-10 13:44 Luc Pattyn 28-Jan-10 13:44
 Tengo unas preguntas sobre esto... je_gonzalez11-Jun-08 15:11 je_gonzalez 11-Jun-08 15:11
 Re: Tengo unas preguntas sobre esto... pechan0000011-Jun-08 15:49 pechan00000 11-Jun-08 15:49
 ??? Joel@Novaspect11-Jun-08 10:34 Joel@Novaspect 11-Jun-08 10:34
 Re: ??? pechan0000011-Jun-08 12:04 pechan00000 11-Jun-08 12:04
 Last Visit: 31-Dec-99 18:00     Last Update: 4-Sep-15 17:13 Refresh 1