Science Fair Projects Ideas - HPGL

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

HPGL

HPGL, sometimes hyphenated as HP-GL, is the primary printer control language used by Hewlett-Packard plotters. The name is an acronym for Hewlett-Packard Graphics Language. It later became a standard for almost all plotters.

The language is formed from a series of two letter codes, followed by optional parameters. For instance an arc can be drawn on a page by sending the string:

AA100,100,50;

This means Arc Absolute, and the parameters place the center of the arc at 100,100 on the page, with a starting angle of 50 degrees measured counter-clockwise. A fourth optional parameter (not used here) specifies how far the arc continues, and defaults to 5 degrees.

Typical HPGL files started with a few setup commands, followed by a long string of graphics commands. For instance:

An example HPGL file
CommandMeaning
IN;initialize, start a plotting job
IP;set the initial point (origin), in this case the default 0,0
SC0,100,0,100;set the scale so the page is 0 to 100 in both X and Y directions
SP1;select pen 1
PD100,0,100,100,0,100,0,0;put down the pen and move to the following locations (draw a box around the page)
PU50,50;lift the pen and move to 50,50
CI25;draw a circle with radius 25
SS;select the standard font
DT*,1;set the text delimiter to the asterisk, and don't print them (the 1, meaning "true")
PU20,80;lift the pen and move to 20,80
LBHello World*;draw a label

The coordinate system was based on the smallest units one of their plotters could support, and was set to 0.025mm. The coordinate space was positive or negative floating point numbers, specifically + or - 230.

Links:

Hewlett Packard Graphics Language Commands
Last updated: 08-08-2005 09:58:00
10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice