上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 摘要:电力抄表系统常通过网络采集和传输电网中的谐波等信息。本文提出了一种适合电力系统的网络设计方案。在STM32F207和DM9161A为核心的硬件平台上,完成了LwIP协议栈的移植,实现了远程终端和上位机通信。使电力系统更具实时性与交互性,并保证了通信的可靠性。关键词:电力系统;LwIP协议;以太网引言 随着经济的迅猛发展,用电需求量及电力负荷急剧增大,谐波作为目前电网中影响最为重要的一项指标,对电力系统的影响越来越产重。通过网络传输采集和分析谐波数据,以实现对谐波的有效监测,便于更有效地控制谐波对电子系统的危害。 本文给出了基于STM32F207及DM9161A的以太网具体实现方案,为电力 阅读全文
posted @ 2014-04-10 12:56 苦力劳动者 阅读(1906) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1{ class AutoSizeFormClass { //(1).声明结构,只记录窗体和其控件的初始位置和大小。 public struct controlRect { public int Left; publi... 阅读全文
posted @ 2014-04-10 08:44 苦力劳动者 阅读(1899) 评论(0) 推荐(0) 编辑
摘要: C#中new和override是继承中经常用到的两个关键字,但是往往有时候容易把这两个关键字的作用搞混淆。newC# new关键字表示隐藏,是指加上new关键字的属性或函数将对本类和继承类隐藏基类的同名属性或函数publicclassA{publicvirtualvoidMethod(){Console.WriteLine("ThisMethodinClassA!");}}publicclassB:A{publicnewvoidMethod(){Console.WriteLine("ThisMethodinClassB!");}}对于上面这个例子来说,假 阅读全文
posted @ 2014-04-03 22:41 苦力劳动者 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 在C#语言中,我们把变量分为七种类型,它们分别是:静态变量(static varibles),非静态变量(instance variables),数组元素(array elements),值参数(value parameters),引用参数(reference parameters),输出参数(output parameters),还有局部变量(local variables)。看下面的例子:class A{ public static int x; int y; void F(int[] v,int a,ref int b,out int c){ int i=1; ... 阅读全文
posted @ 2014-04-01 11:55 苦力劳动者 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;//using System.Reflection;namespace QLFUI{ [DefaultEvent("Click")] public partial class Button : UserControl { ... 阅读全文
posted @ 2014-03-31 12:40 苦力劳动者 阅读(539) 评论(0) 推荐(0) 编辑
摘要: static:静态。可以设置:静态类、静态变量、静态方法。没有使用static修饰的成员为实例成员。静态成员的使用:通过类名。1。不加static修饰的成员是对象成员,归每个对象所有。2。加static修饰的成员是类成员,可以由一个类直接调用,为所有对象共有。用static关键字标识的程序元素是静态的,不用static标识的程序元素是非静态.两者的区别在于:静态的东西是在类型加载初始时初始化的,并且与类相关.非静态东西一般放在实例的构造函数中初始化,它是与特定类的实例相关的.举例:static变量可以不必实例化直接使用.//定义类Aclass A{public static string aU 阅读全文
posted @ 2014-03-24 11:46 苦力劳动者 阅读(12053) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DelegateTest{ class Program { delegate void DelegateGreeting(string name); static void EnglishGreeting(string name) { Console.WriteLine("Hello {0}", name); } ... 阅读全文
posted @ 2014-03-21 16:09 苦力劳动者 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 初学Java时,在很长一段时间里,总觉得基本概念很模糊。后来才知道,在许多Java书中,把对象和对象的引用混为一谈。可是,如果我分不清对象与对象引用,那实在没法很好地理解下面的面向对象技术。把自己的一点认识写下来,或许能让初学Java的朋友们少走一点弯路。为便于说明,我们先定义一个简单的类: class Vehicle {int passengers;int fuelcap;int mpg;}有了这个模板,就可以用它来创建对象: Vehicle veh1 = new Vehicle();通常把这条语句的动作称之为创建一个对象,其实,它包含了四个动作。1)右边的“new Vehicle”,是以V 阅读全文
posted @ 2014-03-21 10:25 苦力劳动者 阅读(727) 评论(2) 推荐(0) 编辑
摘要: using System;namespace GotoTest{ class Test { enum orientation:int { south, north, east, west } struct route { public orientation myorientation; public Double distance; } public s... 阅读全文
posted @ 2014-03-13 09:33 苦力劳动者 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Matlab上fr = fopen('d:\Matlab\长期纪录2014-3-11.txt', 'r');data=fscanf(fr,'%f',[1,inf]);axis([0 90000 -8 6]);plot(data)title(['厚度仪长期测试数据分析'], 'FontName','Times New Roman','FontSize',10);set(gca,'XTicklabel',[0,3,6,9,12,15,18,21,24])xtick=get 阅读全文
posted @ 2014-03-12 13:22 苦力劳动者 阅读(1751) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页