Printer Casus Ebox/Experiments manual: Difference between revisions

From Control Systems Technology Group
Jump to navigation Jump to search
No edit summary
Line 54: Line 54:


You can change the password if desired.
You can change the password if desired.
= Installing software for experiments =
== Activating Matlab ==
The version of Matlab installed on Ubuntu needs to be activated. To do so, start matlab from a terminal window with \texttt{>>sudo matlab}, follow the instructions and use the activation key linked on the campus software site. A bookmark is present in the Chrome browser.
== Update to the latest experiment software} ==
The software to perform experiments is already present, but possibly outdated. To update the software and simulink models used, you have to checkout the latest stable revision from the SVN (subversion) server. This can easily be done using the \texttt{svn\_update} script:
# Open a terminal (via the icon on the desktop)
# Type ''svn_update''
If you are experiencing any problems (bugs/errors) with the experiment software, then first make sure you have checked out and installed the latest software revision from the SVN by repeating steps 3.2 and 3.3. Since this update will also update the simulink templates used in the experiments, it is recommended to save any changes made to these files with a different filename and/or in a different location, preferably on your harddisk.
== Compiling and installation the software ==
First start matlab from a terminal (if not done already):
# Open a terminal
# Type ''sudo matlab''
To obtain a fresh copy of the latest version:
# Run svn\_update according to subsection \ref{svnupdate} in a terminal window.
# Change the Matlab current directory to ''/home/ebox/svn/trunk/src/E/BOX/''
# Run ''make\_all\_clean'' in matlab
# Run ''make\_all\_install'' in matlab, answer yes to TU/e toolboxes installation question
== Preparation prior to performing experiments ==

Revision as of 13:21, 21 September 2012

Instructions for measuring and controlling the experimental HP printer setup, corresponding to the case of "The Print Head" (4G031)

This manual describes the necessary hardware # and # Software for measuring and controlling the experimental HP printer setup used in the case the Printhead (4G031) is used, are discussed. The section # Start-up experiments and includes an introduction to the use of the preparation and the actual execution of experiments. To use a setup that you subscribe to the appropriate registration lists in sel3. This should be your group each time up to 1 time for 1 time setup register. On the desk in sel3 you can borrow the necessary TUeDACS and accessories. Almost every day, for several hours assistance available in sel3 where you can store your questions. The hours of care is available, are indicated on the registration lists. For questions and during the experiments, please contact Geert-Jan Heldens ( , Wh -1.13 (DCT-lab)). The project coordinator is Rene of Molengraft ( , tel 2998, Wh -1141).

Hardware

The case is a stripped A3 HP printer, see Figure 1. The required hardware for the experimental set-up is included in Table 1. You have to take your own notebook to do experiments.

Figure 1

Required hardware

  1. Notebook with E/box image installed
  2. Experimental HP printer setup (see Figure 1) including cables
  3. Amplifier including BNC cable

Table 1


The print head is driven by a DC motor using a belt transmission. The position of the print head is measured by means of a linear encoder. The optical encoder sensor is mounted in the printhead. On the left side an end-switch is mounted that is used to position the printhead initialization. Using the E/box it is possible to perform real-time experiments on the printer, i.e. measuring and sending signals in real-time. The amplifier provides the necessary current gain of the control signal transmitted from the E/box to the motor is controlled.

The cables of the hardware should be mounted as shown in Table 2 below. Furthermore, the amplifier and E/boxof supply cables must be provided. CAUTION: NEVER turn the amplifier on (ON) before a control signal is defined by the ectarget software (see # Start-up and experiments). A crash of the printer may result. On some older amps is still 0 to 2.5 V instead of + / - 2.5 V. This is incorrect, all amplifiers have a range of + / - 2.5 V.

I/O Printer I/O Amplifier I/O E/box I/O Notebook
Motor input LOAD
Encoder output Encoder 1
End-switch I/O DIGITAL I/O
+/ − 2, 5 V in Analog out 1
Ethernet port Ethernet port

Table 2

Installation of Ubuntu with Wubi

WARNING: This installation will only work on a normal installation of the Windows Operating System as it depends on the Windows Boot loader. If you use another operating system or if you are unsure please contact one of the course supervisors.

Wubi is a linux installer for Windows which can install and uninstall Ubuntu in the same way as any other Windows application in a simple and safe way. Ubuntu will be installed within a file in the Windows system ebox\_root.disk. This file is seen by Ubuntu as a real hard disk.

The installation of Ubuntu used for this course takes up 30 GB of free-space. Therefore, it is recommended to install Ubuntu by connecting to TU/e network via an ethernet cable. Using VPN or wireless is strongly discouraged!

The wubi-installer can be obtained from the TU/e network share: \\ai-stosrv02\EBox. Install by opening the executable "wubi\_dd-mm-yy-time". Because the installation is quite large this will take some time, especially creating the virtual disk, so please be patient. Connected to gigabit network the installation will take approximately 15 minutes, on a 100 mbits network connection it will take about an hour.

When you have installed Ubuntu with Wubi, you can start ubuntu by rebooting your computer. A menu will appear during startup which allows you to choose whether to run Windows and Ubuntu. When you choose Ubuntu in this menu, you will go to a new bootloader called GRUB. Here you can choose which version of Ubuntu to run as well as alter the start-up commands for running Ubuntu. Unless you are having problems starting up, you should just select the default version by pressing enter. When prompted for account information use the following:

  1. Username: ebox
  2. Password: ebox123

You can change the password if desired.

Installing software for experiments

Activating Matlab

The version of Matlab installed on Ubuntu needs to be activated. To do so, start matlab from a terminal window with \texttt{>>sudo matlab}, follow the instructions and use the activation key linked on the campus software site. A bookmark is present in the Chrome browser.

Update to the latest experiment software}

The software to perform experiments is already present, but possibly outdated. To update the software and simulink models used, you have to checkout the latest stable revision from the SVN (subversion) server. This can easily be done using the \texttt{svn\_update} script:

  1. Open a terminal (via the icon on the desktop)
  2. Type svn_update

If you are experiencing any problems (bugs/errors) with the experiment software, then first make sure you have checked out and installed the latest software revision from the SVN by repeating steps 3.2 and 3.3. Since this update will also update the simulink templates used in the experiments, it is recommended to save any changes made to these files with a different filename and/or in a different location, preferably on your harddisk.

Compiling and installation the software

First start matlab from a terminal (if not done already):

  1. Open a terminal
  2. Type sudo matlab

To obtain a fresh copy of the latest version:

  1. Run svn\_update according to subsection \ref{svnupdate} in a terminal window.
  2. Change the Matlab current directory to /home/ebox/svn/trunk/src/E/BOX/
  3. Run make\_all\_clean in matlab
  4. Run make\_all\_install in matlab, answer yes to TU/e toolboxes installation question

Preparation prior to performing experiments