Adaptation of the acquisition data

private void SetAcquisitions(Channel channel)
{
  AdsAcquisition xAcquisition = new AdsAcquisition();
  xAcquisition.AmsNetIdExchange = "localhost";
  xAcquisition.TargetPort = 851;
  xAcquisition.IsSymbolBased = true;
  xAcquisition.SymbolName = "Variables.aBufferSine[1]";
  xAcquisition.DataType = Scope2DataType.REAL64;
  xAcquisition.SampleTime = (uint)(1 *   TimeSpan.TicksPerMillisecond);
  channel.AddMember(xAcquisition);

  AdsAcquisition yAcquisition = new AdsAcquisition();
  yAcquisition.AmsNetIdExchange = "localhost";
  yAcquisition.TargetPort = 851;
  yAcquisition.IsSymbolBased = true;
  yAcquisition.SymbolName = "Variables.aBufferSawtooth[1]";
  yAcquisition.DataType = Scope2DataType.REAL64;
  yAcquisition.SampleTime = (uint)(1 *   TimeSpan.TicksPerMillisecond);
  channel.AddMember(yAcquisition);
}

The acquisition class of a channel describes the connection between the scope and the respective value of the machine controller. Therefore, for example, the name and size of a variable are expected at this point.

The acquisition object is hierarchically positioned below an AcquisitionInterpreter, which possesses further variable-independent information. Furthermore, the AcquisitionInterpreter is a member of a channel and, depending on the chart type, a channel may contain several AcquisitionInterpreters for the various axes. An acquisition can be appended directly to a channel as in the sample and the interpreter is automatically generated.