Saturday, April 30, 2016

Creating a UDP Object

UDP Object

You create a UDP object with the udp function. udp does not require the name of the remote host as an input argument. However, if you are using the object to communicate with a specific instrument, you should specify the remote host and the port number.
    Note:   Although UDP is a stateless connection, opening a UDP object with an invalid host name will generate an error.
As described in Configuring Properties During Object Creation, you can also configure property values during object creation, such as the LocalPort property if you will use the object to read data from the instrument.
For example, to create a UDP object associated with the remote host 127.0.0.1, remote port 4012, and local port 3533,
u = udp('127.0.0.1', 4012, 'LocalPort', 3533);
The UDP object u now exists in the MATLAB® workspace. You can display the class of u with the whos command.
whos u
  Name      Size                   Bytes  Class

  u         1x1                      632  udp object

Grand total is 12 elements using 632 bytes
When the UDP object is created, the following properties are assigned values based on the values provided to the upd function. These general purpose properties provide information about the UDP object.

UDP Descriptive Properties
Property NameDescription
NameSpecify a descriptive name for the UDP object.
RemoteHostSpecify the remote host.
RemotePortSpecify the remote host port for the connection.
TypeIndicate the object type.
LocalPortSpecify the local host port, if you are expecting to receive data from the instrument.
You can display the values of these properties for u with the get function.
u.Name
ans = 
    UDP-127.0.0.1
u.RemoteHost
ans = 
    127.0.0.1
u.RemotePort
ans = 
    4012
u.Type
ans = 
    udp
u.LocalPort'
ans = 
    3533

The UDP Object Display

The UDP object provides you with a convenient display that summarizes important configuration and state information. You can invoke the display summary these three ways:
  • Type the UDP object variable name at the command line.
  • Exclude the semicolon when creating a UDP object.
  • Exclude the semicolon when configuring properties using the dot notation.
You can also display summary information via the Workspace browser by right-clicking an instrument object and selecting Display Summary from the context menu.
The display summary for the UDP object u is given below.
UDP Object : UDP-127.0.0.1

Communication Settings 
   RemotePort:         4012
   RemoteHost:         127.0.0.1
   Terminator:         'LF'

Communication State 
   Status:             closed
   RecordStatus:       off

Read/Write State  
   TransferStatus:     idle
   BytesAvailable:     0
   ValuesReceived:     0
   ValuesSent:         0

Communicating Between Two Hosts

This example illustrates how you can use UDP objects to communicate between two dedicated hosts. In this example, you know the names of both hosts and the ports they use for communication with each other. One host has the name doejohn.dhpc, using local port 8844; and the other host is doetom.dhpc, using local port 8866. Note that each host regards the other host's port as the RemotePort:

  1. Create interface objects — Create a UDP object on each host, referencing the other as the remote host.
    On host doejohn.dhpc, create u1. The object constructor specifies the name of the remote host, the remote port on that other host, and the local port to use on the machine where this object is created:
    u1 = udp('doetom.dhpc', 'RemotePort', 8866, 'LocalPort', 8844)
    On host doetom.dhpc, create u2:
    u2 = udp('doejohn.dhpc', 'RemotePort', 8844, 'LocalPort', 8866)
  2. Connect the objects — Open both UDP objects, so that each can communicate with the other host.
    On host doejohn.dhpc, open u1:
    fopen(u1)
    On host doetom.dhpc, open u2:
    fopen(u2)
  3. Write and read data — Communication between the two hosts is now a matter of sending and receiving data. Write a message from doejohn.dhpc to doetom.dhpc.
    On host doejohn.dhpc, write data to the remote host via u1:
    fprintf(u1, 'Ready for data transfer.')
    On host doetom.dhpc, read data coming in from the remote host via u2:
    fscanf(u2)
    ans =
    Ready for data transfer.
  4. Disconnect and clean up — When you no longer need u1 on host doejohn.dhpc, you should disconnect it and remove it from memory and from the MATLAB workspace.
    fclose(u1)
    delete(u1)
    clear u1
    When you no longer need u2, perform a similar cleanup on the host doetom.dhpc.
    fclose(u2)
    delete(u2)
    clear u2
     
     
    reference: mathworks.com
     

Thursday, April 21, 2016

20 History Questions They Refuse To Answer In School

     Traditional educational systems basically teach us that the history of man only dates back to about 8,000 years ago while religious texts date mankind to approximately 6,000 years ago.  It is more than obvious that there a massive push to occlude our true history and origins.

     While you may not agree with some of the questions, please try to view them with an open mind.  As you’ll see, the history we have been taught has been manipulated and obscured from us.

Ask yourself (or others) the following questions and feel free to comment at the end of the article!

     A map drawn on a gazelle skin of an unfrozen Antarctica was found in 1929.  The map was drawn in 1513 by Piri Reis, who had privileged access to the Imperial Library of Constantinople.  Contained within the notes found on the map, Reis stated that he compiled and copied the data from a large number of source maps, some of which dated back to the 4 BC or earlier.  Our history books tell us that Antarctica was discovered by Captain James Cook while crossing the Antarctic Circle on January 17, 1773 with the ships HMS Resolution and Adventure.

     1. How did Reis know of Antarctica several hundred years before Captain James Cook ‘discovered’ it?
The last time Antarctica was not frozen was at least 4,000 BC, so…

     2. Where did the Imperial Library of Constantinople get THEIR information and who is responsible for the initial drawing of that map?
A tiny figurine made of baked-clay was brought up in amongst the debris churned out by a huge drill bit during the drilling of a well in Nampa Idaho in 1889. The object is a one inch long figure with one leg broken off at the knee.

     3. Is it possible that mankind has been here many times LONG BEFORE our recorded past?

     4. How many millennia would it take for an object like this to be buried 300 feet into the ground?
According to darwinism, man evolved from ape.

     5. If man evolved from ape, then where are the missing link(s)?
There are approximately 100 pyramids in China, Indonesia, moslty Asia, Europe and many other which remain hidden under grass and forestry.

     6. There are pyramids on every continent of the world.  Who built them and why were they built?
In Ecuador, one large Jade cup and 12 smaller Jade cups were found. Each of the smaller cups are a little bit different in size, but if you were to fill each one and pour them into the larger one, the contents would exactly fill the larger cup. The large cup has a perfect inlaid star constellation, showing Orion and other stars.
Klaus Dona stated, “inside the big cup it is very, very magnetic and outside the cup nearly nothing. Professional geologists are saying this is impossible because if a stone has metal particles inside the stone, it must be same magnetic from both sides.”

     7. If scientists say that it is impossible to have a very magnetic inside of a jade cup with a non-magnetic outside of the same cup, then who created these vessels and where are they from?
In Illinois a well bit brought up a 200,000 year old bronze coin from a depth of 114 feet just outside Chillicothe, Illinois. According to the Illinois State Geological Survey, the deposits containing the coin are between 200,000 and 400,000 years old.

     8. Long before our state-sponsored recorded history will admit that civilized man was on Earth, what culture made this coin?
More than 350 artifacts were found in Ecuador in an old tunnel system.  One artifact in particular shows the same pyramid with an all-seeing eye at the top of it.  Under a black light, the eye takes on an interesting hue while on the bottom of this artifact, you can see a star map of Orion’s Belt along with writing that is older than any known writing on this planet. According to the research of Klaus Dona, the same writing has been found all over the world, proving that there was a pre-existing GLOBAL civilization that is much older than any Sanskrit writings.

     9. Why do all history classes exclude this information?
We are seeing a continuing theme involving Orion’s Belt.  The pyramids on the Giza Plateau also reflect the exact same alignment as the “3 Kings” of Orion’s Belt.

     10. What visitors came to this planet from Orion’s Belt?

     11. What is the significance of the Orion’s Belt constellation?
Professor Kurt Schildmann, former President of the German Linguistic Association, called this writing “pre-Sanskit” (older than 6,000 years old) and was able to translate the writing as follows:
“The son of the creator comes.”

     12. What is the true meaning of this pyramid and why is this symbol still being used?
In the pre-religious Anunnaki creation myth, Anu had 2 sons, Enki and Enlil.  Enki, also known as Ea (as inEArth) in Sumerian texts, was loving and kind to the genetically modified humans who mined gold for the Anunnaki.

     13. Does “The son of the creator comes” refer to Enki?
The Old and New Testament of the Christian bible clearly shows one vengeful god who kills millions of people while an apparently different god who is all loving.

     14. Does the bible reflect the story of Enlil (Old Testament, malevolent towards humans) and Enki (New Testament, all-loving toward humans)?
In the Old Testament, Genesis 1:26, it states, “Let us make man in our image, after our likeness.”

     15. Who is “us” and “our”?
In 1851 in Dorchester, Massachusetts, a 4-1/2 inch high zinc and silver alloy vase was dynamited out of solid rock 15 feet below the surface.  On the sides were figures of flowers in bouquet arrangements, inlaid with pure silver. The rock out of which it came is estimated to be 100,000 years old.

     16. According to academia, what civilization was capable of this type of art 100,000 years ago?
Over 200 metallic spheres have been found in South Africa and are estimated to be 4,500 million years old.  There are two types of spheres: “one of solid bluish metal with white flecks, and another which is a hollow ball filled with a white spongy center” (Jimison, 1982).

     17. Our recorded history tells us that civilized man has only been here anywhere between 6-8,000 years, so who made these spheres millions of years beforehand?
With the exception of stone and precious metals, virtually everything we own right now would eventually turn to dirt throughout the millennia, including all of our TV’s, cellphones, cars, planes and everything made of plastic.  If by chance, some major catastrophe were to hit our planet, within 100,000 years, just about every hint of civilization would be buried under years of decay.

     18. Is it possible that there are malevolent rulers who have kept us in economic subservience for literally hundreds of thousands of years, if not millions of years?
All religions seem to share similar stories.

     19. Is it possible that this template has been used since the earliest incarnations came to this planet, perhaps billions of years ago?

     20. When will we finally learn to live without being economic slaves to the same system of domination and control?

3 bonus questions for YOU to answer:
Why has our true history been hidden from us? What is the purpose of suppressing such information? How many times have civilizations come and gone from this planet? Leave your comments below!

Credits: Written by Gregg Prescott, M.S., In5D Guest.