Click here to Skip to main content
11,720,785 members (64,124 online)
Click here to Skip to main content

Simulating Signal recovery

, 11 Jun 2008 CPOL 13.3K 312 9
Rate this:
Please Sign up or sign in to vote.
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++)
{
ptosnrz.Add(val, y);
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++)
{
ptosbipolar.Add(val, y);
val++;
}
}
return ptosbipolar;
}

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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

pechan00000
Systems / Hardware Administrator
Mexico Mexico
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 1 Pin
Luc Pattyn28-Jan-10 13:44
mvpLuc Pattyn28-Jan-10 13:44 
QuestionTengo unas preguntas sobre esto... Pin
je_gonzalez11-Jun-08 15:11
memberje_gonzalez11-Jun-08 15:11 
AnswerRe: Tengo unas preguntas sobre esto... Pin
pechan0000011-Jun-08 15:49
memberpechan0000011-Jun-08 15:49 
Question??? Pin
Joel@Novaspect11-Jun-08 10:34
memberJoel@Novaspect11-Jun-08 10:34 
AnswerRe: ??? Pin
pechan0000011-Jun-08 12:04
memberpechan0000011-Jun-08 12:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150901.1 | Last Updated 11 Jun 2008
Article Copyright 2008 by pechan00000
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid