Browse Source

update opcdriver

pull/15/head
Gavin 9 years ago
parent
commit
6d4581aad5
  1. 4
      SCADA/Program/OPCDriver/OPCDriver.cs
  2. BIN
      SCADA/dll/OPCDriver.dll

4
SCADA/Program/OPCDriver/OPCDriver.cs

@ -1091,10 +1091,10 @@ namespace OPCDriver
public IGroup AddGroup(string name, short id, int updateRate, float deadBand, bool active)
{
if (!_metaGroups.Exists(x => x.ID == id))
_metaGroups.Add(new MetaGroup { ID = id, Name = name, UpdateRate = updateRate, DeadBand = deadBand, Active = active });
if (IsClosed)
Connect();
if (!_metaGroups.Exists(x => x.ID == id))
_metaGroups.Add(new MetaGroup { ID = id, Name = name, UpdateRate = updateRate, DeadBand = deadBand, Active = active });
if (_opcServer == null) return null;
GCHandle hDeadband, hTimeBias;
hDeadband = GCHandle.Alloc(deadBand, GCHandleType.Pinned);

BIN
SCADA/dll/OPCDriver.dll

Binary file not shown.
Loading…
Cancel
Save