About Me (TS Pradeep Kumar)

Working at VIT University and having great interest towards embedded wireless systems and e-learning. This site caters to most of the Indian Engineering/technology students to know about embedded systems, network simulator, e learning tools/techniques, etc. If you are a student or a learner, you can always request a title or post..

Subscribe by Email

Enter your email address:

Delivered by FeedBurner

How to install Tracegraph in Linux (Fedora 9)

To Install Tracegraph in Fedora Linux (I used Fedora Core 9)

Step download the Tracegraph software from this link
Select Linux Version and download two files, mglinstaller.gz and tracegraph202.tar.gz
copy the files under /home/pradeep/ (in my case it is /home/pradeep/)
Untar the tracegraph202.tar.gz using the command tar zxvf tracegraph202.tar.gz
A Folder tracegraph202/ will be created and go to the folder [...]

Continue reading How to install Tracegraph in Linux (Fedora 9)

  • Share/Bookmark

Runtime Error (Exception) Handling

ADA handles programmer defined exceptions and system defined exceptions
Some of the system defined exceptions are like 

NUMERIC_ERROR – raised whenever the abnormal precision in the program like divide by zero 
STORAGE-ERROR – raised whenever the program runs out of memory space
CONSTRAINT_ERROR – asserts when a variable goes out of its bound
TASKING_ERROR – raised during the incorrect use [...]

Continue reading Runtime Error (Exception) Handling

  • Share/Bookmark

Packages in ADA

Benefits of Packages

Packages can be compiled, debugged independently
software maintenance is very easier
Once package is developed, they can be made accessible to everyone who has access to it.
packages provide more security                                                   [...]

Continue reading Packages in ADA

  • Share/Bookmark

Blocks and Procedures in ADA

Blocks
A Block in ADA contains two parts specification and a body. The specification specifies the variable used inside the block and the body executes the statement for the block

syntax
block
begin


end

The main purpose of blocks are information hiding.
A Variable declared inside a block is accessible only within the block and nowhere outside the block.

Example
var x,y:integer
begin 
  y:=0;
 for x in 1..10 loop
  block
   [...]

Continue reading Blocks and Procedures in ADA

  • Share/Bookmark

SunSPOT(Sun Small Programmable Object Technology)

SunSPOTs are embedded hardware modules that are equipped with a 180 MHz CPU, 512 KB RAM, 4MB flash memory, three on-board sensors (temperature, light and three-axis accelerometer), hardware interfaces for the integration of arbitrary external sensors, and the IEEE 802.15.4 wireless transmission technology, which is enabled for mesh networking. SunSPOTs are entirely programmable in the [...]

Continue reading SunSPOT(Sun Small Programmable Object Technology)

  • Share/Bookmark

ADA – Control Structures

if-then-else
if yx:=4;elseif a=0 thenx:=6;elsed:=9;end if
for …. do
for i in 0..10 loopx(i) := i * j;end loop;
while
while x x:=x+i;end loop;case
case x is when 1 => y:=x;when 2 => y:=0;when others => y:=-1;end case

Continue reading ADA – Control Structures

  • Share/Bookmark

ADA – Data types

Simple Data types//creates three variables for TEMPERATURE which is of type floattype TEMPERATURE is new float; ta, tb, tc: TEMPERATURE;
//creates three variables for PRESSURE which is of type floattype PRESSURE is new float; pa, pb, pc: PRESSURE;ta=pa is illegal as it is implicit type conversionta= TEMPERATURE(pa); is legal
//creates range between o to 10000type HEIGHT [...]

Continue reading ADA – Data types

  • Share/Bookmark

ADA – programming language Features

Object oriented programming
Strong typing
Generic programming/templates
Exception handling
Facilities for modular organization of code
Standard libraries for I/O, string handling, numeric computing
Systems programming
Concurrent programming
Real-time programming

Helps for periodic and event driven tasks
Avoids unbounded priority inversion
Efficient implementation of Priority ceiling in ADA

Distributed systems programming

Interfaces to other languages (C, COBOL, Fortran)

Continue reading ADA – programming language Features

  • Share/Bookmark

Strongly Typed Language

What is a strongly typed language?

Each variable must be declared with its own data type
each data type should be associated with a value and operation (which operates on those values)
implicit type conversions are not allowed
explicit type conversions are legal. for example, if i is integer and a is float,then i=a; says it is implicit which [...]

Continue reading Strongly Typed Language

  • Share/Bookmark

Myopic Offline Scheduling Algorithm

Myopic Offline Scheduling is a multiprocessor Scheduling Algorithm

This algorithm is meant for non preemptive tasks
Since it is an offline scheduling algorithm, release time, deadline and execution time are known apriori.
It proceeds like building up a schedule tree
Every level should be checked for feasibility. If not strongly feasible, then backtrack. If strongly feasible, then proceeds the [...]

Continue reading Myopic Offline Scheduling Algorithm

  • Share/Bookmark