看n2實例 #Create a simulator object set ns [new Simulator] #Define different colors for data flows #$ns color 1 Blue #$ns color 2 Red #Open the nam trace file set nf [open out-1.nam w] $ns namtrace-all $nf set f0 [open out0.tr w] set f1 [open out1.tr w] #Define a finish procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf #Execute nam on the trace file exit 0 } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 1Mb 10ms
標簽: simulator Simulator different Create
上傳時間: 2016-07-02
上傳用戶:wfl_yy
留言簿架構 oracle 9i + jsp + struts 留言簿基本功能: 1 、客人簽寫留言 2 、基本的UBB支持,如[url]http://www.lunji.com[/url],[color="red"]紅色字[/color] 3 、ctrl+enter可提交留言 4 、搜索留言 5 、悄悄話功能 安全: 1 、解決了連串字母將表格撐大問題 2 、用戶名與留言內容不能太長或為空 3 、用戶不能冒充版主留言 4 、屏垃圾語言功能 管理: 默認頁為/admin/login.do 9 、留言簿基本參數的設置如留言簿標題,每頁顯示條數 10、設置版主信息 11、設置管理員用戶名、密碼 12、回復留言、編輯留言、刪除留言 13、設置悄悄話功能的開啟與關閉 14、垃圾語言過濾 15、在線更改最大留言字節數 安裝: 1、在oracle中執行document/sql/guestbook.sql 2、設置tomcat server.xml中Connector配置節增加一個屬性,URIEncoding="gb2312" 3、用記事本打開WEB-INF/classes/init.properties,修改其中的數據庫ip地址,sid,帳號和密碼等 首頁默認為indx.do
上傳時間: 2014-11-16
上傳用戶:zl5712176
51單片連tcs230的源程序,絕對原創,可以記憶顏色。 #define uchar unsigned char #include <reg52.h> #include<math.h> sbit S0=P1^7 sbit S1=P1^0 //端口定義 sbit S2=P1^1 sbit S3=P1^2 sbit OE=P1^3 sbit OUT=P3^4 //頻率從TO口輸入 sbit key0=P1^5 sbit LED=P1^6 sbit a=P3^0 sbit b=P3^1 uchar color //1:blue 2:green 3:red uchar T[4] //color timer uchar TH[4] uchar TL[4] uchar bizhi[4] void time1() interrupt 3 { TH[color]=TH0 TL[color]=TL0 T[color]=(TH[color]*0xff+TL[color]) TR0=0 //關定時器 TR1=0 TH1=0xB1 TL1=0xE0 //歸0 TH0=0x00 TL0=0x00 //歸0 }
上傳時間: 2016-11-26
上傳用戶:秦莞爾w
增加系統功能調用,在Red-Flag5.0下編譯內核,注意內核版本應該是2.6.0~2.6.9,之后版本內核的編譯方式有變化!
標簽:
上傳時間: 2016-12-02
上傳用戶:JIUSHICHEN
A novel met hod t o p artially compensate sigma2delta shap ed noise is p rop osed. By injecting t he comp en2 sation cur rent int o t he p assive loop f ilte r during t he delay time of t he p hase f requency detect or ( PFD) , a maximum reduction of t he p hase noise by about 16dB can be achieved. Comp a red t o ot he r compensation met hods , t he tech2 nique p rop osed he re is relatively simple and easy t o implement . Key building blocks f or realizing t he noise cancel2 lation , including t he delay va riable PFD and comp ensation cur rent source , a re sp ecially designed. Bot h t he behavior level and circuit level simulation results a re p resented.
標簽: sigma2delta compensate injecting artially
上傳時間: 2013-12-18
上傳用戶:qlpqlq
創建進度條 jpb = new JProgressBar() jbutton = new JButton("觀看演示") jbutton.addActionListener(this) this.getContentPane().add(jbutton) //設置進度條的前景色為紅色 jpb.setForeground(Color.red) this.getContentPane().add(jpb) //給進度條注冊事件監聽器
標簽: jbutton addActionListener JProgressBar new
上傳時間: 2017-01-06
上傳用戶:wl9454
This worm file is disseminated except that through MIRC and outlook Express. This worm will duplicate red.exe in the computer arriving and infecting too, and in mirc catalogue in the system, produce a script.ini file, let the worm be disseminated through Mirc communication software by this.
標簽: This worm disseminated duplicat
上傳時間: 2017-01-13
上傳用戶:dbs012280
La designaci貿n Modbus Modicon corresponde a una marca registrada por Gould Inc. Como en tantos otros casos, la designaci貿n no corresponde propiamente al est謾ndar de red, incluyendo todos los aspectos desde el nivel f鉚sico hasta el de aplicaci貿n, sino a un protocolo de enlace [nivel OSI 2]. Puede, por tanto, implementarse con diversos tipos de conexi貿n f鉚sica y cada fabricante suele suministrar un software de aplicaci貿n propio, que permite parametrizar sus producto
標簽: corresponde registrada designaci Modicon
上傳時間: 2014-12-01
上傳用戶:梧桐
This tutorial explains how to communicate with IO devices on the DE2 Board and how to deal with interrupts using C and the Altera Monitor Program. Two example programs are given that diplay the state of the toggle switches on the red LEDs. The fi rst program uses the programmed I/O approach and the second program uses interrupts.
標簽: with communicate how tutorial
上傳時間: 2013-12-13
上傳用戶:熊少鋒
This application report discusses the design of non-invasive optical plethysmography also called as pulsoximeter using the MSP430FG437 Microcontroller (MCU). The pulsoximeter consists of a peripheral probe combined with the MCU displaying the oxygen saturation and pulse rate on a LCD glass. The same sensor is used for both heart-rate detection and pulsoximetering in this application. The probe is placed on a peripheral point of the body such as a finger tip, ear lobe or the nose. The probe includes two light emitting diodes (LEDs), one in the visible red spectrum (660nm) and the other in the infrared spectrum (940nm). The percentage of oxygen in the body is worked by measuring the intensity from each frequency of light after it transmits through the body and then calculating the ratio between these two intensities.
標簽: plethysmography non-invasive application discusses
上傳時間: 2014-01-17
上傳用戶:天誠24