看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