Click here to Skip to main content
Licence CPOL
First Posted 11 Jun 2008
Views 9,209
Downloads 148
Bookmarked 9 times

Simulating Signal recovery

By | 11 Jun 2008 | Article
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)

About the Author

pechan00000

Systems / Hardware Administrator

Mexico Mexico

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmvpLuc Pattyn13:44 28 Jan '10  
QuestionTengo unas preguntas sobre esto... Pinmemberje_gonzalez15:11 11 Jun '08  
AnswerRe: Tengo unas preguntas sobre esto... Pinmemberpechan0000015:49 11 Jun '08  
Question??? PinmemberJoel@Novaspect10:34 11 Jun '08  
AnswerRe: ??? Pinmemberpechan0000012:04 11 Jun '08  

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.

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