HOME  |  NEWS  |  BLOGS  |  MESSAGES  |  FEATURES  |  VIDEOS  |  WEBINARS  |  INDUSTRIES  |  FOCUS ON FUNDAMENTALS
  |  REGISTER  |  LOGIN  |  HELP
Comment
Jon Titus
User Rank
Blogger
Re: Part IV: Fundamentals of Digital Debugging
Jon Titus   1/19/2012 3:05:57 PM
NO RATINGS
Q: When writing pure software often stubs are used to return values to emulate an external environment, moreso for a program that must interact externally. How do you simulate the effect of interaction before commiting to the actual external environment at the testing stage? ( bottom-up vs top-down approach).

 

A:  Years ago I had to build an instrument to acquire data from chemical instruments.  I used a large EPROM to store a simulated waveform and then fed it to a DAC with an R/C filter to simulate the signal.  That gave me a "standard" to use for testing.  As an alternate, I could have saved this data in memory and written a routine to obtain it form that memory instead of using an ADC to digitize the DAC's output.  But, in those days, memory was expensive and processors couldn't address more than 64 Kbytes.  Is that what you're getting at?






Partner Zone
Latest Analysis
The term “range anxiety” began fading into the rear view mirror recently, as major automakers made announcements about longer-range, battery-powered cars.
George Leopold's talk at last week's Design & Manufacturing Minneapolis helped restore astronaut and engineer Gus Grissom's role in the beginnings of NASA, and outlined how Grissom played a pivotal role in winning the Space Race.
The Department of Energy has developed a new thermal-energy storage system for solar energy so it can be used at night.
Digital signal processors are gaining momentum in applications from voice activation to sports watches to holographic computing.
Your cat demands to be fed on time. With some technical know-how and a 3D printer you can build your own automated cat food dispenser.
More:Blogs|News
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
Sep 12 - 16, Analytics for the IoT: A Deep Dive into Algorithms
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7 | 8 | 9 | 10


Focus on Fundamentals consists of 45-minute on-line classes that cover a host of technologies. You learn without leaving the comfort of your desk. All classes are taught by subject-matter experts and all are archived. So if you can't attend live, attend at your convenience.
Next Course September 27-29:
Sponsored by Stratasys
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Technology Marketplace

Copyright © 2016 UBM Canon, A UBM company, All rights reserved. Privacy Policy | Terms of Service