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 » Data Files

Digital Signals and Data Representation

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
Data Files
  • Given a situation in which you need to measure data and store the measurement data in a computer file, you should be able to:
    • Be able to convert data from a character format to a numerical format within a program and to realize when that occurs in a data gathering operation.
    • Be able to convert data from a numerical format to a character format within a program and to realize when that occurs in a data gathering operation.
    • Be able to write data to a file in either format.
    • Be able to predict the size of the file.
We are going to start by looking at the first step in the process - the measurement of data with an instrument. Even if you do not run the data through a spreadsheet - or any other analysis program - the first step is to measure things and convert the initial measurement to a digital format. We will begin by looking at what happens as you use an A/D to convert a measurement into a digital format.

Instrument Data - Background

Let's look at what happens when you use an A/D.

  • Let's say you wanted to build an A/D that measured voltage from zero (0) to ten (10) volts and you wanted it to have increments of a hundredth (0.01) of a volt.
  • That would require you to be able to distinguish 1000 different voltage steps.
  • That situation almost always means that you will need to have 10 bits in the A/D converter.
    • to review A/D converters.
  • Ten bits will give 1024 steps, so you could represent voltages like 0.00, 0.01, 0.02 . . . 10.23. (Remember that is 1024 steps. Count the zero!) Remember, N bits can represent numbers from 0 to 2N-1, and 210-1 = 1023.
There are also relations between the accuracy of an A/D and the accuracy of a DVM. There are many other questions that arise when you start using digital voltmeters. The answers to questions about meters can be found in the lesson on DVMs.
What If You Read Measurements And Store The Results In Data Files?

Let's assume that you're measuring a DC voltage. You've written a C function called "MeasureDCVolts", and you use it in this program segment.

float Volts;

Volts = MeasureDCVolts (instrumentHandle);
printf ("The measured voltage is %f volts DC.", Volts);

What happens in this program segment?

Let's go through this one line at a time. The first program line measures a voltage and stores the result in a floating point variable "Volts".

Volts = MeasureDCVolts (instrumentHandle);
If the instrument is a 4-1/2 digit meter, using a 30 volt scale, then the result takes at least 15 bits. That physical measurement determines how well you know the voltage. No matter how you manipulate it after that it won't get any more accurate. A 4-1/2 digit meter on a 30 volt scale will measure to within .001 volt, or 1 millivolt.

Now, when you take that result and store it in a floating point variable, your're probably putting it into 4 bytes, or 32 bits. That's a common way to represent a float variable. You don't gain any precision when you do that. Sometimes the conversion will give you trailing "9s" or a "1" after a string of zeroes when you print it. That's irrelevant, but we do need to talk about what happens when you print things.

You need to consider what happens in a printf statement. Here's the code from the program segment.

printf ("The measured voltage is %f volts DC.", Volts);
This line uses the value of the float variable "Volts", and converts the numerical value it finds in "Volts" to a string of characters. Then it puts those characters in the string surrounding the "%f" and then it prints the characters. (The "%f" string gives the rule for conversion.)
<<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