Home > Database > Mysql Tutorial > body text

PISDK连接服务器

WBOY
Release: 2016-06-07 15:22:11
Original
1714 people have browsed it

见下面的例子,使用C#: using System; using System.Collections.Generic; using System.Linq; using System.Text; using PISDK; using PISDKCommon; namespace pisdk_t1 { class Program { static void Main(string[] args) { PISDK.PISDK pisdk = new PISD

见下面的例子,使用C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PISDK;
using PISDKCommon;

namespace pisdk_t1
{
class Program
{
static void Main(string[] args)
{
PISDK.PISDK pisdk = new PISDK.PISDK();

//connect to pi server
Server svr = pisdk.Servers["192.168.55.220"];

//login
svr.Open("UID=piadmin;PWD=");

PIPoints points = svr.PIPoints;

PIPoint point = points["DL_173"]; //tagname
PIData data = point.Data;
Console.WriteLine(data.Snapshot.Value);

}
}
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!