Difference between revisions of "GUI in Scilab"
Nancyvarkey (Talk | contribs) (Created page with "'''Graphical user interface (GUI) in Scilab''' allows you to operate the software programmes with a point-and-click interface, eliminating the need for others to learn a langu...") |
(No difference)
|
Latest revision as of 11:52, 28 October 2021
Graphical user interface (GUI) in Scilab allows you to operate the software programmes with a point-and-click interface, eliminating the need for others to learn a language or type commands in order to run the programme.
Scilab offers multiple options for developing a GUI. Among all the GUI approaches, the GUI Builder toolbox is the most extensively used. With this toolbox, creating a GUI is very simple. This toolbox is developed by Tan Chin Luh and David Violeu. This is the fastest and easiest way to create the GUI in Scilab.
This series shows how to make a Graphic user interface (GUI) from scratch and with the GUI Builder toolbox.
IIT Bombay is leading the effort to popularise Scilab in India and Graphic user interface (GUI) is one of the best features of Scilab. This effort is part of the Free and Open source Software for Science and Engineering Education (FOSSEE) project, supported by the National Mission on Education through ICT of the Ministry of Education.
IIT Bombay is using Spoken Tutorials (http://spoken-tutorial.org) to create learning material for various FOSS. This is the main page for the organisation of the scripts required for Scilab spoken tutorials. We invite the Scilab user community to participate in this activity.
The content for this series was contributed by FOSSEE interns 2021 Amandeepsingh Siddhu, Iswariya Sasikumar and Utkarsh Anand. Overall coordination for the series was done by Rashmi Patankar from FOSSEE project, IIT Bombay. Ms. Nancy Varkey and Dr. Rani from Spoken Tutorial project, IIT Bombay, were the reviewers from the ST end.
Learners: All Science and Engineering Students.
Contents
Basic Level
- Creating a basic GUI using Scilab
- Learn about GUI and its benefits,
- What are objects,
- What is a pushbutton,
- What is a callback function,
- Use of a graphic window,
- About figure function,
- About uicontrol function,
- About object properties,
- Position the pushbutton in the GUI,
- Add a callback function.
- Installation of GUI Builder Toolbox
- Learn about GUI Builder Toolbox,
- Install GUI Builder Toolbox,
- About GUIBuilder Palette,
- Adding a pushbutton,
- What is Tag,
- What is String,
- Adding a pushbutton to a GUI using GUIBuilder Palette,
- How to auto-generate a Scilab code using this toolbox,
- Write a callback function for the pushbutton,
- Generate a static response on the Scilab console.
- Creating a GUI to print the user input
- About an Edit box,
- About a Text box,
- How to open an existing GUI,
- Adding Tag and String,
- Adding an Edit box to GUI,
- Adding a Text box to GUI,
- About string command,
- Auto-generate Scilab code using this toolbox
- Write a code to print the user input on GUI,
- Importance of adding .string after the handle.
- Changing object properties and alignment in GUI
- How to change the Background color,
- How to change the Font angle of the string,
- How to change the Font size of the string,
- How to change the Font weight of the string,
- How to change the Foreground color,
- How to change the Horizontal Alignment of the string,
- How to change the String value,
- How to shift the object using direction keys,
- How to move object using ‘Move’ button,
- How to change the width and height of an object,
- How to delete an object,
- How to change the alignment of an object,
- How to make all the objects of same size,
- How to maintain all the objects equally spaced.
- Creating a GUI based exponent calculator
- Learn about an exponent calculator,
- Adding Edit box for base to take user input,
- Adding Edit box for exponent to take user input,
- Adding a Text box to display the output,
- Adding a pushbutton for calculation,
- Writing Tag and String for all the objects,
- Auto-generate a Scilab code using GUI Builder toolbox,
- Write a callback function,
- Use of strtod command,
- Test the GUI.
- Building GUI to graph a linear equation
- About Linear equation of a line,
- What are Axes,
- Use of Edit box for taking user input for a, b and c,
- Use of Text box for displaying the slope and y-intercept,
- Use of pushbutton to plot the response of a Linear Equation,
- Use of Axes to plot an equation of line,
- Writing Tag and String for all the objects,
- Auto-generate a Scilab code using GUI Builder toolbox,
- Write a callback function,
- Use of strtod command,
- Use of xgrid command,
- Test the GUI.
- Building a GUI for basic plotting
- Learn about basic plotting in GUI,
- About Checkbox,
- Adding Checkbox for sine function,
- Adding Checkbox for cosine function,
- Adding an Axes to display the response of a system,
- Writing Tag and String for all the objects,
- Auto-generate a Scilab code using GUI Builder toolbox,
- Write a callback function for displaying the sine and cosine plot,
- Test the GUI.
- Creating a GUI based Interest calculator
- Learn about an interest calculator,
- About Radiobutton,
- Adding Edit box for principal to take user input,
- Adding Edit box for rate of interest to take user input,
- Adding Edit box for time to take user input,
- Adding Radiobuttons for simple interest,
- Adding Radiobuttons for compound interest,
- Writing Tag and String for all the objects,
- Auto-generate a Scilab code using GUI Builder toolbox,
- Write a callback function for calculating the simple and compund interest.
- Building a GUI for plotting 2D parametric Curves
- About parametric form of a circle,
- About a Slider,
- Add a Slider to vary the value of a radius,
- Add a Text box for displaying the value of radius,
- Add an Axes to display the plot,
- Writing Tag and String for all the objects,
- Auto-generate Scilab code using GUI Builder Toolbox,
- Write a callback function to display the exact value of a radius when the user moves the Slider,
- Write a user defined function to plot the circle,
- Use of delete command to delete the Axes,
- Test the GUI.
- Building a GUI for plotting 3D parametric Curves
- About parametric form of a sphere,
- Add a Slider to vary the value of a radius,
- Add a Text box for displaying the value of radius,
- Add an Axes to display the plot,
- Auto-generate a Scilab code using GUI Builder Toolbox,
- How to display the Slider value in a Text box,
- Write a user defined function to plot the sphere,
- About surf command,
- About mesh command,
- About meshgrid,
- Test the GUI.