OneStopGate.Com
OnestopGate   OnestopGate
   Friday, May 17, 2024 Login  
OnestopGate
Home | Overview | Syllabus | Tutorials | FAQs | Downloads | Recommended Websites | Advertise | Payments | Contact Us | Forum
OneStopGate

GATE Resources
Gate Articles
Gate Books
Gate Colleges 
Gate Downloads 
Gate Faqs
Gate Jobs
Gate News 
Gate Sample Papers
Training Institutes

GATE Overview
Overview
GATE Eligibility
Structure Of GATE
GATE Coaching Centers
Colleges Providing M.Tech/M.E.
GATE Score
GATE Results
PG with Scholarships
Article On GATE
Admission Process For M.Tech/ MCP-PhD
GATE Topper 2012-13
GATE Forum




GATE 2025 Exclusive
Organizing Institute
Important Dates
How to Apply
Discipline Codes
GATE 2025 Exam Structure

GATE 2025 Syllabus
Aerospace Engg..
Agricultural Engg..
Architecture and Planning
Chemical Engg..
Chemistry
Civil Engg..
Computer Science / IT
Electronics & Communication Engg..
Electrical Engg..
Engineering Sciences
Geology and Geophysics
Instrumentation Engineering
Life Sciences
Mathematics
Mechanical Engg..
Metallurgical Engg..
Mining Engg..
Physics
Production & Industrial Engg..
Pharmaceutical Sciences
Textile Engineering and Fibre Science

GATE Study Material
Aerospace Engg..
Agricultural Engg..
Chemical Engg..
Chemistry
Civil Engg..
Computer Science / IT
Electronics & Communication Engg..
Electrical Engg..
Engineering Sciences
Instrumentation Engg..
Life Sciences
Mathematics
Mechanical Engg..
Physics
Pharmaceutical Sciences
Textile Engineering  and Fibre Science

GATE Preparation
GATE Pattern
GATE Tips N Tricks
Compare Evaluation
Sample Papers 
Gate Downloads 
Experts View

CEED 2013
CEED Exams
Eligibility
Application Forms
Important Dates
Contact Address
Examination Centres
CEED Sample Papers

Discuss GATE
GATE Forum
Exam Cities
Contact Details
Bank Details

Miscellaneous
Advertisment
Contact Us


Home » GATE Study Material » Electrical Engineering » Digital Signals and Data Representation » An Introduction to Data Servers

An Introduction to Data Servers

Looking for GATE Preparation Material? Join & Get here now!

** Gate 2013 Question Papers.. ** CEED 2013 Results.. ** Gate 2013 Question Papers With Solutions.. ** GATE 2013 CUT-OFFs.. ** GATE 2013 Results.. **

<<Previous
An Introduction to Data Servers

Now, let's look at the steps in the conversation between the server and the client.

  • The server runs two loops. In the outer loop, the following is taken care of:

    • The measurement system is initialized. In the GPIB system that means you reset the instruments. That is handled in the sub-vi discussed above.

    • There is a TCP/IP listener. That listener waits for a message from a remote computer indicating that the remote computer wants data. In essence, the program is "hung" until that request arrives, and the second loop doesn't start operating until a request message arrives. What actually happens is that the outer loop keeps running (as quickly as possible) checking to see if a request has arrived.

    • When a request arrives:

      • The request from the client must be directed to the correct IP address of the server (the "phone number") and the correct port (the "extension at that phone number").

      • The request must contain the IP address of the client so that the server can send the data to the correct IP address.

  • When a request has been received and a connection established, then - and only then - does the inner loop begin to operate.

  • To service the request, the server must take a measurement - in the inner loop - and send the results. The inner loop operates repeatedly at a specified time interval.

    • Since measurement string length might be variable, the first thing that the server has to do is examine the string length and transmit a value for the string length. If the string could be 9, 10, 11 or 12 characters long, it would be wise to send two bytes for the string length, i.e. "09", "10", "11", etc.

      • In the diagram above, after doing the string length computation - which results in an integer number (the blue line) - the number is converted to a string, and the string is padded (with a space, if necessary) to a length of two.

      • If the actual data string had 100 or more characters, then this would cause an error at the client because the conversion to an integer would expand to whatever length necessary, and the client would be expecting only two characters and would assume that the extra character was part of the data string - sent after the length is sent.

    • After sending the string length - so that the client knows how much data to expect - the server needs to send the data string.

  • The data manipulation for the above implies that the following happens in the server.

    • The measurement yields a string.

    • The length of the measurement string is computed - as a number.

    • The length of the measurement string is changed to a string, padded as necessary, and sent as a two byte string to the client so that the client knows how much data to expect.

    • The measurement string is sent by the server.

  • The data manipulation for the above implies that the following happens in the client.

    • The client - after initiating a "conversation" waits to receive two bytes (using a TCP/IP Read) that will tell the client how long the data string will be.

    • The client gets a two-byte string and converts that to an integer.

    • The integer is used to set a TCP/IP Read that will receive the number of bytes specified as a string.

    • The data string received is converted to whatever format is appropriate. For example, it might be converted to a numerical format to display on a thermometer gage.


The Data Client

In the section above we considered what the data client would have to do. The next question is how that might be implemented in LabVIEW. The diagram below is a very simple client for the temperature data server.

Here is what happens in the data client.

  • In the first TCP block a connection is opened.

    • The connection is specified by the IP Address and the port number of the server.

    • Both the IP address and the port number must be known in order to get the data.

  • Once the connection is open, inside the loop a TCIP Read block waits for data.

    • The first data received should be the number of bytes in the data string.

    • The integer "2" at the input of the TCIP Read block indicates that the TCIP Read block waits for two bytes of data.

  • The data received - the number of bytes in the data string - is converted to an integer and forms an input to the next TCIP Read block. That particular input is the number of bytes that the second TCIP Read block should wait for in the data string.

<<Previous



Discussion Center

Discuss/
Query

Papers/
Syllabus

Feedback/
Suggestion

Yahoo
Groups

Sirfdosti
Groups

Contact
Us

MEMBERS LOGIN
  
Email ID:
Password:

  Forgot Password?
 New User? Register!

INTERVIEW EBOOK
Get 9,000+ Interview Questions & Answers in an eBook. Interview Question & Answer Guide
  • 9,000+ Interview Questions
  • All Questions Answered
  • 5 FREE Bonuses
  • Free Upgrades
GATE RESOURCES
 
  • Gate Books
  • Training Institutes
  • Gate FAQs
  • GATE BOOKS
     
  • Mechanical Engineeering Books
  • Robotics Automations Engineering Books
  • Civil Engineering Books
  • Chemical Engineering Books
  • Environmental Engineering Books
  • Electrical Engineering Books
  • Electronics Engineering Books
  • Information Technology Books
  • Software Engineering Books
  • GATE Preparation Books
  • Exciting Offers



    GATE Exam, Gate 2009, Gate Papers, Gate Preparation & Related Pages


    GATE Overview | GATE Eligibility | Structure Of GATE | GATE Training Institutes | Colleges Providing M.Tech/M.E. | GATE Score | GATE Results | PG with Scholarships | Article On GATE | GATE Forum | GATE 2009 Exclusive | GATE 2009 Syllabus | GATE Organizing Institute | Important Dates for GATE Exam | How to Apply for GATE | Discipline / Branch Codes | GATE Syllabus for Aerospace Engineering | GATE Syllabus for Agricultural Engineering | GATE Syllabus for Architecture and Planning | GATE Syllabus for Chemical Engineering | GATE Syllabus for Chemistry | GATE Syllabus for Civil Engineering | GATE Syllabus for Computer Science / IT | GATE Syllabus for Electronics and Communication Engineering | GATE Syllabus for Engineering Sciences | GATE Syllabus for Geology and Geophysics | GATE Syllabus for Instrumentation Engineering | GATE Syllabus for Life Sciences | GATE Syllabus for Mathematics | GATE Syllabus for Mechanical Engineering | GATE Syllabus for Metallurgical Engineering | GATE Syllabus for Mining Engineering | GATE Syllabus for Physics | GATE Syllabus for Production and Industrial Engineering | GATE Syllabus for Pharmaceutical Sciences | GATE Syllabus for Textile Engineering and Fibre Science | GATE Preparation | GATE Pattern | GATE Tips & Tricks | GATE Compare Evaluation | GATE Sample Papers | GATE Downloads | Experts View on GATE | CEED 2009 | CEED 2009 Exam | Eligibility for CEED Exam | Application forms of CEED Exam | Important Dates of CEED Exam | Contact Address for CEED Exam | CEED Examination Centres | CEED Sample Papers | Discuss GATE | GATE Forum of OneStopGATE.com | GATE Exam Cities | Contact Details for GATE | Bank Details for GATE | GATE Miscellaneous Info | GATE FAQs | Advertisement on GATE | Contact Us on OneStopGATE |
    Copyright © 2024. One Stop Gate.com. All rights reserved Testimonials |Link To Us |Sitemap |Privacy Policy | Terms and Conditions|About Us
    Our Portals : Academic Tutorials | Best eBooksworld | Beyond Stats | City Details | Interview Questions | India Job Forum | Excellent Mobiles | Free Bangalore | Give Me The Code | Gog Logo | Free Classifieds | Jobs Assist | Interview Questions | One Stop FAQs | One Stop GATE | One Stop GRE | One Stop IAS | One Stop MBA | One Stop SAP | One Stop Testing | Web Hosting | Quick Site Kit | Sirf Dosti | Source Codes World | Tasty Food | Tech Archive | Software Testing Interview Questions | Free Online Exams | The Galz | Top Masala | Vyom | Vyom eBooks | Vyom International | Vyom Links | Vyoms | Vyom World
    C Interview Questions | C++ Interview Questions | Send Free SMS | Placement Papers | SMS Jokes | Cool Forwards | Romantic Shayari