Understanding Task Instances

This article discusses task instantiation and task instance data. Consider a system with 3 analog channels that must be managed and controlled. Specifically, the following functions must be performed on each channel:

  • Set gain at initialization time
  • Sample (read) the channel every "n" milliseconds
  • Display channel reading
  • Report an error if the reading is out of range

As indicated above, the actions to be performed on each of the 3 channels is the same; however, the data associated with each channel is unique. The data required for each channel is listed below:

  • Channel address
  • Channel gain
  • Channel sample rate in milliseconds
  • Min and max values used to determine when reading is out of range

View Entire Paper | Previous Page | White Papers Search

If you found this page useful, bookmark and share it on:

 
Embedded Star Newsletter
Don't have time to visit Embedded Star everyday? Then sign up for our free newsletter. We'll send you an email when we have something to share with you. Your email address will be kept confidential and we will not share, sell, or rent it to anyone. You can unsubscribe at any time by clicking a link in the email.

Enter your email address to sign up for our free newsletter:   

If you are familiar with RSS feeds, you can also sign up for our free blog feed. Our RSS feed is updated in real-time while our newsletter is updated daily.