1) Matlab access at CIRCA Rev10

1) Matlab access at CIRCA Rev10 - Chemical Engineering...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Chemical Engineering Department University of Florida ECH 6326 / ECH 4323 / ECH 4323L / ECH 4123 INSTRUCTIONS FOR ACCESSING MATLAB AND SIMULINK AT THE CIRCA FACILITIES by Prof. Oscar D. Crisalle 1.0 1.1 LOGIN PROCEDURE Login in at the CIRCA lab UNIX Computers known collectively as grove.ufl.edu Enter your class account Username (do not use your GatorLink username) in the login dialog box. Enter your class account Password. 1.1.1 Login procedure for PCs (Note: this method requires that you have a GatorLink account.) a) Login to a PC using your GatorLink account. Ask for assistance from the Help Desk if you encounter difficulties. b) Click the Start button at the bottom left corner of the screen. c) d) Open the X-Win32 application by selecting the menus Programs ! X-Win32 ! Grove. A window similar to the one shown in the figure below will appear. e) At this point a UNIX X-Window session should open on the monitor. You should see the following elements on your screen: The Desktop (also known as Workspace): A large background window containing several smaller windows and icons. The Workspace Manager: A rectangular window on the desktop, containing several icons that represent: - Applications (look for an application icon, and a triangle ! located above the icon that opens up a list of applications) - Printer Selections (look for a printer icon, and a triangle ! located above the icon that opens up a list of printer options) - Tools for configuring the workspace (such as the background color, etc.) - Other utility programs, such as an EXIT button to logout. Rev. 9.0 Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 2 To change the printer configuration, in the Workspace Manager box navigate as follows: Select ! (above the Printer icon) ! Printer Configuration Answer yes to the question Do you want to change the print configuration? (yes or no) And then select a printer from the list. At this point you will be asked for your Gatorlink The printer username (do not use the username of the class account that I gave you in class), and for your Gatorlink password (again, do not use the password for the class account). configuration process will end after this step The default printer for MATLAB is the black-and-white printer located in Room 211 of the CSE building, bearing the name CSE-211-bwq You should change to another printer if you are not working in the CIRCA Lab located at CSE 211. For example, you would choose an appropriate Architecture Building printer if you were working at one of the CIRCA Labs at the Architecture Building. Applications Note: Your account will remember the last printer you use. Hence, if you move from one CIRCA Lab to another, you will need to change the printer correspondingly, so that you can pick up your output in the same lab where you are working. 3.0 OPENING A MATLAB SESSION OR A SIMULINK SESSION Note 1: When logging on for the first time it is required that you change your Password. Just follow the instructions appearing on the screen. Note 2: To terminate your session select the EXIT button on the Workspace Manager. This allows you to logoff from the UNIX session. Note 3: Logoff from the MS Windows PC. 2.0 SELECTING A PRINTER BY CHANGING THE PRINTER CONFIGURATION First follow the login procedure described in Section 1. Then, on the Workspace Manager box select the following Select ! (above the Applications icon) ! MATLAB as shown in the figure below. This will open a MATLAB Command window, which is the interface between the user and MATLAB. You can start typing your MATLAB instructions on the command line. First follow the login procedure described in Section 1. If this is the first time you log in, you must change the printer configuration, EVEN IF THE CURRENT DEFAULT PRINTER IS THE PRINTER YOU WANT TO USE. The reason for this request is that you have logged into Grove with a username for our class account, and CIRCA therefore does not know what your Gatorllink username is. The Gatorlink username is needed because CIRCA uses it to charge for each printed page. For the current page printing rate please contact the CIRCA Help Desk at 232-2007. You should not need to change the printer configuration the second time that you log in, unless you change labs and need to use a different printer. Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 3 Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 4 Start MATLAB File ! Save or File ! Save as b) Printing Files FIRST, SELECT A PRINTER AS INDICATED IN SECTION 2. with the MATLAB Editor as indicated in (a) above, and select File ! Print This will send a hard copy of the file entitled "filename" to the GROVE printer selected as indicated in Section 2. 4.2 Other UNIX editors It is strongly recommended that you use the MATLAB Editor. On the other hand, Then, open a file experienced Unix users may prefer to work with other editors available at the Circa UNIX machines: (1) Text Editor (the easiest to use, but also the most limited), (2) Emacs, (3) Pico, To activate SIMULINK, first open a MATLAB session as indicated in the paragraph above, and then type simulink in the MATLAB command window. A separate SIMULINK window will open up. 4.0 4.1 a) OPENING A TEXT EDITOR SESSION TO EDIT AND PRINT MATLAB FILES MATLAB Editor Creating, Opening and Saving Files To print a file using Text Editor, simply select has a built-in editor that can be simply accessed from the menu bar of the command window. MATLAB text files are called M-Files. MATLAB and (4) Vi. It is easiest to work with Text Editor if you are not familiar with editors (2)-(4). a) Unix Text Editor To open a Text Editor session first follow the login procedure described in Section 1. Then, from the Workspace Manager select Select ! (above the Applications icon) ! Text Editor File ! Print This will send a hard copy of the file entitled "filename" to the GROVE printer selected as indicated in Section 2. b) Unix Emacs Editor EMACS is a very powerful though somewhat complicated file editor. To start an emacs session, first open an X-Terminal session as follows Select ! (above the Applications icon) ! xterm To create a new M-File, first open a MATLAB session as indicated in Section 3. Then an M-file can be created by selecting the menu entries File ! New ! M-File and a MATLAB Editor window will open. To open an existing M-File select File ! Open and a MATLAB Editor window will open the file . Likewise to save an M-File select Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 5 Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 6 An X-Terminal window should open. Now the emacs session can be initiated by typing the following command in the X-terminal window emacs Once that the Emacs window opens, you can create a new file by selecting Files ! Create a New Buffer. Before proceeding to type your MATLAB commands, use the backspace key to eliminate any the default text that may appear in the window. You can the save the file with any name you desire by selecting File ! Save Buffer from the menu bar. To clear off all the entries of an open file select File ! Kill Current Buffer. To print a file, FIRST, SELECT A PRINTER AS INDICATED IN SECTION 2. Then you can print an open file by selecting the command File ! Print from the Emacs menu. This will send a hard copy of the file entitled "filename" to the GROVE printer selected as indicated in Section 2. 5.0 5.1 PRINTING A TEXT FILE (SUCH AS A DIARY FILE OR A MATLAB M-FILE) Printing a file using the MATLAB Editor See instructions in Section 4.1 5.2 Printing a file using other Unix Editors See instructions in Section 4.2 (a) (b). 5.3 Printing a file using the UNIX lpr command This will send a hard copy of the file entitled "filename" to the GROVE printer selected as indicated in Section 2. a) Using the lpr command from the Workspace Manager To print a file, FIRST, SELECT A PRINTER AS INDICATED IN SECTION 2. Then use the Workspace Manager Applications menu to create an X-Terminal window Select ! (above the Applications icon) ! xterm This opens an xterm window which features a command line identified by the prompt ">". Finally, if the name of the file you want to print is "filename.m" simply type the command: lpr filename.m This will send a hard copy of the file entitled "filename" to the GROVE printer selected as indicated in Section 2. 6.0 PRINTING A MATLAB PLOT To print a MATLAB plot first generate the plot in a window using the MATLAB plot command. Then select the window that has the plot by clicking once on it, Finally, select the following from the menu of the window that displays the plot: Files ! Print This will send a hard copy of the file entitled "filename" to the GROVE printer selected as indicated in Section 2. 7.0 MAILING M-FILES AND MATLAB FIGURES TO OTHER ACCOUNTS This method for printing files should be used only to print files created with the UNIX Text Editor. One that a text file has been created with any of the text editors discussed here, it can be sent to the printer as indicated in Sections 5.1 5.2, or alternatively, it can be sent to the printer using the UNIX lpr command. a) Using the lpr command from the Workspace Manager To print a file, FIRST, SELECT A PRINTER AS INDICATED IN SECTION 2. Then select the text file to be printed, and send it to the printer using the command Select ! (above the Printers icon) ! Print Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 7 You can mail to an outside e-mail account a MATLAB M-file or figure, and then you can download those files to your own computer for the purposes of printing them or for incorporating them into a report written with a standard processor such as MS Word. To save a MATLAB figure, select the menu entry "export". This allows you to save the file in a graphical format of your choice, such as PDF (which can be opened with Adobe Acrobat Reader, for example). Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 8 To e-mail the M-file or the file containing the the exported figure, open up the Mail application (do not select the PINE Mail application, which works in a different fashion), select Compose to create a new message, and then select Attach to incorporate the target files as attachments to the message. After you send the message to your favorite electronic-mail account, you llater can retrieve the message from home using your preferred e-mail client. Instructions for accessing MATLAB and SIMULINK at the CIRCA facilities 9 ...
View Full Document

This note was uploaded on 08/21/2011 for the course ECH 4123 taught by Professor Zeigler during the Spring '07 term at University of Florida.

Ask a homework question - tutors are online