tailieunhanh - Essentials of control techniques and Keyword Stats_1

Cuốn sách này chứa một số khái niệm cơ bản và kỹ thuật từ các lý thuyết điều khiển từ điểm nhìn của một kỹ sư. Sự chú ý đặc biệt được trả cho phương pháp cổ điển trong miền tần số, các nhà quan sát thực tế, và các nguyên tắc của thiết kế bộ điều khiển khác nhau. | Modeling Time 13 to let you write simple routines in the code window to do all you need for graph plotting and more. A complete listing is given in Chapter 3 it is not very complicated. But there s more. By putting control buttons on the web page you can interact with the simulation in real time in a way that would be difficult with an expensive proprietary package. By way of an example let us wrap the simulation in a minimum of code to plot a graph in a web page. Firstly we have head script language javaScript Then we put some housekeeping and the simulation inside a function so that we can call it after the loading page has settled down. function simulate g 0 0 0 These lines initialize the applet then copy all its properties to a local variable g. The final line uses one of these properties to set the pen color to black. Now at last we can start the simulation first with the definition of the variables we will use. var k .5 var dt .01 var t 0 var x 0 Initial level 0 to 40 var u 20 Input flow 0 to 20 while t 10 oldx x oldt t x x -k x u dt This is the simulation t t dt 50 oldt 400-10 oldx 50 t 400-10 x We have to do the scaling and the applet s y increases downwards script head 14 Essentials of Control Techniques and Theory Now we design a web page with a gray background and the Graph applet centered body style background-color rgb 200 200 200 center applet code name Graph height 400 width 640 applet center Finally we set up the execution of the simulation to start 200 milliseconds after the page has loaded and tidy up the end of the file. script setTimeout simulate 200 script body html Open Notepad or Wordpad and type in the code above. Save it as a text file with title in the same folder as a copy of . Do not close the editor. The code and applet can be found on the book s website at . com 2 . Q Open the file with your browser any should do

TÀI LIỆU MỚI ĐĂNG
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.