AnsweredAssumed Answered

Capture_LDD component - SelectCaptureEdge method is volatile?

Question asked by Doug Turnbow on Apr 9, 2015
Latest reply on Jul 29, 2015 by Marek Neuzil

Not sure if this is a bug or intended operation...

If I call the SelectCaptureEdge() method with an edge setting other than what I entered under Properties -> Event -> Edge, and then I call the Enable() method, the edge setting reverts to what I put under Properties -> Event -> Edge rather than staying what I set in SelectCaptureEdge().

 

For now, I changed this:

LDD_TError CapIR38_SelectCaptureEdge(LDD_TDeviceData *DeviceDataPtr, LDD_TimerUnit_TEdge Edge)
{
  CapIR38_TDeviceData *DeviceDataPrv = (CapIR38_TDeviceData *)DeviceDataPtr;

  return TU0_SelectCaptureEdge(DeviceDataPrv->LinkedDeviceDataPtr, CHANNEL, Edge);
}

 

to this:

LDD_TError CapIR38_SelectCaptureEdge(LDD_TDeviceData *DeviceDataPtr, LDD_TimerUnit_TEdge Edge)
{
  CapIR38_TDeviceData *DeviceDataPrv = (CapIR38_TDeviceData *)DeviceDataPtr;

DeviceDataPrv->Edge = Edge;
  return TU0_SelectCaptureEdge(DeviceDataPrv->LinkedDeviceDataPtr, CHANNEL, Edge);
}

 

And turned off automatic updates for this component.

Is this a bug or "as designed"?

Outcomes