Turing Teacher/Administrator Guide

This is the Turing Teacher/Administrator guide. It contains most of the information that you will need to administer the Turing 4.0 software. It should be read by those who are teaching courses using Turing 4.0 or are in charge of administering Turing 4.0

This guide provides information on the Turing environment (the editor, the run windows, etc.) It does not provide any information on the Turing programming language itself.

Note that there is some overlap with the Turing Teacher/Administrator Quick Start Guide.

Table of Contents

  1. Making Certain You Have the Lastest Version
  2. Mandatory Administration Issues
  3. Changing System Preferences
  4. Turing Preferences
  5. Parallel Port and Turing 4
  6. Missing Features from Turing 4
  7. The Turing Debugger
  8. Student Distribution
  9. Technical Support

1. Making Certain You Have the Lastest Version

Turing 4.0 is updated regularly. To find out what version you are currently running, click the About Turing menu item in the Help menu. To find out the current version of Turing, go to http://www.holtsoft.com/turing/support/#currentversion. This lists the current version of the software.

This page also lists which bugs have been fixed and when new features have been added. The page also contains a section ( http://www.holtsoft.com/turing/support/#turing4patches) where a file can be downloaded that will update most versions of Turing to the latest version.

If you are a teacher or an administrator at a school and require a complete installation file (as opposed to the publically available patch), contact Tom West at (416) 978-8363.

2. Mandatory Administration Issues

Turing 4.0 has been designed to run on either a network or installed on individual stand-alone machines. Running on a network is often preferred because of each of installation, however, Turing will load somewhat faster when it is launched if it is stored locally.

Turing 4.0 has been designed to run on either a network or installed on individual stand-alone machines. Running on a network is often preferred because of ease of administration. However, Turing, like any other application will load somewhat faster when it is launched if it is stored locally.

There are a few administration issues that must be addressed to configure Turing properly.

  1. Set the start-in (often called the "working") directory properly.

    It is important that the start-in directory for Turing be set to the student's home directory. This can be done in a variety of ways, from least to most complicated.

    1. Many schools have the student's home directory mapped to a drive (often H:\). If this is the case, then set the start-in (or working) directory of the shortcut or menu item used to launch Turing to the mapped drive.

      The shortcut's working directory can be modified by changing it's start-in or working directory property. (To display the Properties dialog box, right click on the shortcut or menu item and select Properties from the pop-up menu.)


      Properties for a Shortcut under Windows 2000

      This requires changing the shortcut's properties requires write access to the shortcut. Note that commercial menu front-ends have their own way of setting the start-in directory of applications.

    2. If the "My Documents" folder is mapped to the students home directory, you can set the preferences to make Turing use the "My Documents" folder as the start-in folder. Note that this option is the preferred option for home users, where the "My Documents" folder is the home directory.


      The Use "My Documents" Folder in the Admin Pane

      To change the preference, enter Administrator mode (see Changing System Preferences below) and set the Use "My Documents" Folder checkbox in the Admin pane of the Turing Preferences (see Turing Preferences below).

    3. If each student's home directory is specified differently (i.e. there is no mapping of the home directory to a drive), then you may need to use environment variables to create a useable path. For example, if students files are stored in g:\class108\[Student Name] and there is an environment variables USERNAME that contains the student's name, then the the start-in directory for the shortcut should be set to g:\class108\%USERNAME%.

    4. Occasionally users have reported situations like the previous case, except that Windows seems unable to set the start-in directory properly using environment variables.


      The Startup Directory Text Field in the Admin Pane

      To set the start-in directory, enter Administrator mode (see Changing System Preferences below) and set the Startup Directory text field in the Admin pane of the Turing Preferences appropriately (see Turing Preferences below) including specifying the directory using the environment variables.

  2. Set either Beginner or Regular Mode for Students.

    Turing can be set to Beginner mode, in which case only one file is open at a time. Opening up another file closes the first one. When the program is running, the Editor window minimizes. In this way, only one window is usually visible at a time. In this fashion, Beginner mode is similar to the old DOS Turing.

    In Regular mode, any number of files can be opened and each appears in its own editor window.

    In general, we suggest Beginner mode for grade 9 and 10 and Regular mode for all others. If you are using Beginner mode, we suggest that you point out to the students that they can use the Prefences to change to Regular mode when they feel comfortable with the environment.

    To change the preference, you will need to enter Administrator mode (see Changing System Preferences below) and change the Beginner Mode preference in the General pane appropriately (see Turing Preferences below).

  3. Windows 95 and the Turing Net module

    If you are using Windows 95 (not Windows 98/Me/NT/2000/XP) and you wish to use the Turing Net module in order to write programs that communicate with other computers, then you may need update the Window 95 networking code.

    This can be done by running the program located at:

    [Turing directory]\support\Microsoft\W95ws2setup.exe

    This program from Microsoft patches Windows 95 networking code. It must be run on every computer running Windows 95 unless the machines boot from a server.

  4. Parallel Port Usage If you are intend to use Turing to control devices attached to the parallel port (using the parallelput and parallelget, and are running under Windows NT/XP/2000, you will need to install a device driver. (Windows NT/XP/2000 do not allow direct access to the system hardware.). The device driver can be installed by running the program located at:

    [Turing directory]\support\dlportio_install.exe

    Further information can be found in Parallel Port and Turing 4.

3. Changing System Preferences

Turing uses a two level preference model. There is a central set of preferences that are kept in

    [Turing Directory]\Support\Ini\turing_admin.ini

These preferences are the same for all users and are called the System Preferences. A second set of preferences is stored in each student's home directory in a file called turing.ini. These preferences override the central preferences and allow students to individually modify the behaviour of Turing.

When a student modifies the preferences, the turing.ini file in the student's home directory is changed. To change the System preferences (i.e. the contents of the turing_admin.ini file), Turing must be started up with the command line

    turing  -admin

This can be done by starting up a DOS window, doing a cd to the directory in which turing.exe is stored and then typing turing  -admin. The user must have write access to the directory in which the turing_admin.ini file is stored.

When Turing is launched, it will display a message box on start-up indicating that it is in Administrator mode and where the preferences will be stored.


Administration Mode Notification

Selecting Preferences from the File menu will display a tabbed dialog box of all the Turing preferences. If you are in Administrator mode, then an extra tab labeled Admin will appear with extra preferences that can only be set by the Administrator. Note that individual students cannot override the preferences that appear on the Admin pane.


Preferences in Administrator Mode

Once the Preferences have been set, the Administrator can exit Turing.

4. Turing Preferences

This section lists all the preferences available in Turing sorted by the pane

"General" Pane


The "General" Pane

"Editor Window" Pane


The "Editor Window" Pane

"Run Window" Pane


The "Run Window" Pane

"Printing" Pane


The "Printing" Pane

Note that the options marked with an asterisk (*) can be set in the printing dialog.

"Admin" Pane


The "Admin" Pane

Note, the Admin pane is only available in administrator mode. Students starting Turing will not have access to this dialog box.

5. Using the Parallel Ports in Turing 4

Under Turing 4.0 and , it is possible to access the IBM PC's parallel port for reading and writing. This is normally done using the parallelput and parallelget commands. (In Turing 4.0, you can use PC.ParallelPut and PC.ParallelGet to access ports other than LPT1.)

Under Windows 95/98 and Me, the operating system allows direct access to the parallel port. Under Windows NT, 2000 and XP, access to the parallel port is restricted by the operating system. In order to access the port, under Windows NT, 2000 and XP, it is necessary to install a device driver on each machine that will be accessing the parallel port. The needed device driver installer is located at:

[Turing directory]\support\dlportio_install.exe

where [Turing directory] is the directory in which Turing was installed. Executing this program will install the device driver in the Windows System directory of the machine upon which it is executed.

Lastly, before accessing the parallel port, check that the parallel port is in normal mode and not in bi-directional, PS/2, EPP or ECP mode. You can determine which mode the parallel port is in using the Device Manager. In the list of devices in the Device Manager window, double click Ports (COM and LPT), and then the LPT (or PRN) port. This displays a property sheet about the parallel port. Take a look at what it says about it. If it is in a non-original mode (i.e. mentions bi-directional, PS/2, EPP or ECP mode), then you will probably need to adjust the systems BIOS settings.

(Under Windows 2000 the Device Manager can be displayed by selecting the System Control Panel from Settings in the Start menu. Select the Hardware tab and then click the Device Manager button.)

If the setting for the parallel port needs to be changed, restart the machine, and press the appropriate key to enter the BIOS Set Up Program (the key varies between machines, but is usually noted on the screen). Often the parallel port settings are found in Advanced Settings of the program. The parallel port should be set to Normal, Standard, AT or Unidirectional mode. (All four names are different descriptions of the same mode.) Once this is done and the new settings are saved, then start the machine into Windows. Once in Windows, select Shut Down and turn the machine completely off. Once the machine is off, wait at least 10 seconds in the powered-off state. Then restart the machine. (While shutting down the machine should not be necessary, we have had several cases where the change only took when the machine had been powered-down and restarted.)

6. Missing Features from Turing 4

Turing 4.0 does not yet incorporate all the features that currently exist in Object Oriented Turing 3.1.1 and are intended for future Turing releases. Over the next few months, new features will be added and updates to Turing will be made available on our web site. The features to be added are: If you have immediate need of any of these features, please continue to use the Object Oriented Turing 3.1.1 software. Ontario users can obtain the software through their OESS software representative.

To determine the current release of Turing, check the Turing web site at

http://www.holtsoft.com/turing/support

7. The Turing Debugger

The current version of Turing has a Debugger facilities that allow students to follow execution of a program either pausing after each line of execution or executing slowly while highlighting each line of execution. Because of the confusing nature of the debugger for many students, the default configuration of Turing does not display the debugger menu until the student requests it by selecting the Show Debugger Menu from the Run menu.


Always Show 'Debugger' Menu in the Editor Window Pane

If you wish students to have a more regular exposure to the Debugger, you can set a System preference to cause Turing to always display the Debugger menu. To set the this preference, enter Administrator mode (see Changing System Preferences below) and set the Always Show 'Debugger' Menu checkbox in the Editor Window pane of the Turing Preferences.

8. Student Distribution of Turing 4.0

The Ontario Ministry license does not include the right to redistribute the software to students. If you wish to give the software to students, a separate license must be obtained directly from Holt Software.

If your school does not have such a license, students can purchase the software for home use by printing and then mailing an order form found http://www.holtsoft.com/studentbuy. This order form can also be used to allow interested students to purchase textbooks.

If your school has purchased a redistribution license (almost 200 schools have done so), then you may redistribute the Turing software to your students. You can either burn copies of the CD to distribute to students or place the Turing installer file onto your school Internet server and give your students the URL.

If you place this file on your school internet server, you must not make any links from your web pages to the software.

This will prevent other users of the web from downloading your software. If you place links from your school's web site, then at some point a web search engine will find the software and post its location to the internet at large, allowing for large scale piracy (and a very overloaded school web server). If there are no links to the software, then only those who have been told the exact URL will be able to download the software.

Note that if you are copying a number of different programs onto a single CD for redistribution, you may rename the Turing installer program to something more descriptive.

Permanent student redistribution licenses can be purchased for $500-$750 for most schools. If you are interested in purchasing a student redistribution license, contact Chris Stephenson at (416) 978-6476 or chris@hsa.on.ca

9. Technical Support

If you have problems, questions or suggestions about the Turing software, contact technical support at:
Telephone: (416) 978-8363
Toll free:1-800-361-8324
Fax:(416) 978-1509
E-mail:west@hsa.on.ca