Click here to Skip to main content
Click here to Skip to main content
Go to top

Simulating Signal recovery

, 11 Jun 2008
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

Comments and Discussions

 
GeneralMy vote of 1 PinmvpLuc Pattyn28-Jan-10 13:44 
QuestionTengo unas preguntas sobre esto... Pinmemberje_gonzalez11-Jun-08 15:11 
AnswerRe: Tengo unas preguntas sobre esto... Pinmemberpechan0000011-Jun-08 15:49 
Question??? PinmemberJoel@Novaspect11-Jun-08 10:34 
AnswerRe: ??? Pinmemberpechan0000011-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 | Mobile
Web03 | 2.8.140916.1 | Last Updated 11 Jun 2008
Article Copyright 2008 by pechan00000
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid