You are on page 1of 3

ELECTRONICS ENGINEERING DEPARTMENT

ECE 408
Control System Laboratory

Activity 2
SCRIPT FILE

SYDNEY OLANDRIA BSME-3


Name Course & Year
P1
Section Time Work Station Number

ENGR. LOTIS P. PATUNOB


Instructor
Activity 2
SCRIPT FILE
PROBLEMS

Give an RLC circuit write a program in a script file that calculates the voltage across the three
elements. Once the script file is executed it requests the user to first enter the source voltage, the
frequency, the resistance, and the reactances. Then it displays the inputted values accordingly,
the voltages across the three elements, the power dissipated across the resistor and the circuit
current.

Commands
Displays

Observations
As writing commands in SCINOTE, it is simpler to assign variables in an orderly manner. Unlike when
assigning variables using the CONSOLE that it displays first the value of the variable before storing it. Another
observation is that upon making an equation in SCINOTE, you can simply write all the equations you wanted then
display the answers later unlike in the CONSOLE where after pressing “enter” it will be executed directly. It is not
interactive than the SCINOTE.
Conclusion
In conclusion, when writing a program that concerns with it sequence, it is better to utilize the editor window
- SCINOTE. Upon using the editor window, execution of the command is more interactive. It is not difficult calling
out the values and assigning of variables. Variables can be declared in the beginning of the program but can be used
in the last part of the program. Inputs and outputs in the editor window can be controlled like for example asking the
user for any values or any information then store it in any variable.

You might also like