Visual representencion of coding tecniques

Juan shared this question 2 years ago
Answered

Hi GeoGebra community... Does anyone know how to do visual representation of bits on the app???


To make myself clear what i need to do is Manchester coding, here is an example:


600px-Manchester_encoding_both_conventions

https://en.wikipedia.org/wi...


Here is the math theory behind it:


https://es.wikiversity.org/...


And i found some code in MathLab to do it, but as I said, was looking foward to do it on GeoGebra:


http://www.matpic.com/esp/m...


If anyone knows how to do it on GeoGebra with scripts or anything else... Let me know.


The thing is get a String of 1's and 0's and make the visual representacion...


Thaks

Comments (9)

photo
1

is this enough?

changing n

Files: foro.ggb
photo
1

Thanks for replying, now i got an idea on how to do it ty... Now to the other codes....

photo
photo
1

Hmm, another idea:

The Manchester Code (Thomas) has only four basic elements S00, S01, S10, S11 (see attached pictures), e.g. S01 gives the sequence 1-0 etc.

If you have a bit sequence like 1-0-1-0-1-1-1-0-0-1 you "only" have to "link" the suitable basic elements, here:

S10-S01-S10-S01-S11-S11-S10-S00-S01

I think an advantage of this idea is the fact, that you probably have a given bit sequence and get the Manchester Code "automatically", no matter how long your sequence is.

Problem:

I'm not sure how to link the basic elements (they are obvious polygons), but perhaps an expert like mathmagic has an idea how to implement it in GeoGebra. :-)

Kind regards

mire2

photo
1

Yes, the basic idea is that... Now on to the other types of coding tecniques...

photo
photo
1

Ok, I think I found a working solution.

Short explanation:

BinCode = Your wanted Bin-Sequenz

BinCodeBasis = Your Bin-Sequenz splitted into the four basic elements

ManchesterBasis = assign every element of BinCodeBasis the suitable basic element S00, S01, S10, S11

ManchesterSequenz = linked the elements of ManchesterBasis


With this method, you can get easily every given BinCode and you can it adapt to other wanted representations.

I have "manually" add the beginning and the end of the ManchesterSequenz.


Kind regards

mire2

photo
1

Another principle:

simulation of an oscilloscope

databit as random

photo
1

one more:

a static version with polyline

photo
1

Ok, here the version with both Manchester codings.

I like threads, where different people present (different) ideas. so I can learn from other ones.


@rami:

Fancy, but what's up with Manchester_04? - Don't ask what happened to mire1! :stuck_out_tongue_winking_eye:

photo
1

@mire2

I want work with polyline-pattern, was not a good idea (I think)

Instead, here is version05 + 1, is like 05 but with a little animation.

photo
© 2021 International GeoGebra Institute