297
currentValues[s.HandleClient] = Convert.ToSingle(s.DataValue) * Single.Parse(ratios[s.HandleClient], CultureInfo.InvariantCulture.NumberFormat); //добавляет в массив измененное значение тега
1
/*=====================================================================
2
File: OPCCSharp.cs
3
4
Summary: OPC sample client for C#
5
6
-----------------------------------------------------------------------
7
This file is part of the Viscom OPC Code Samples.
8
9
Copyright(c) 2001 Viscom (www.viscomvisual.com) All rights reserved.
10
11
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
12
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
14
PARTICULAR PURPOSE.
15
======================================================================*/
16
17
using System;
18
using System.Threading;
19
using System.Runtime.InteropServices;
20
using System.Configuration;
21
using OPC.Common;
22
using OPC.Data;
23
using System.Net;
24
using System.Globalization;
Cached Result