We wrote a function (getrowkraft()), which replies the value of this.KraftC.ReadMultiSample(20).
We use this function only a few times, because we need just one single data.
One included parameter is:
this.KraftT.Timing.ConfigureSampleClock("",this.konfig.abtastfrequenz_kraft,SampleClockActiveEdge.Rising,SampleQuantityMode.ContinuousSamples);
If we call the function getrowKraft(), we get one single value back, and this value is to old, because if the input voltage were 5V for example, and we measure one voltage, the next time we reduce the 5V to zero, so we still measure with the function 50times the 5V, long after we have zero volts.
So we thought, that the buffer has to be reduced:
this.KraftT.Stream.ConfigureInputBuffer(20);
It doe
sn't work...
We do only need 20Samples with the actual voltage.
I attached a file for you.
In the init() function, we just make the initialization.
I put my necessary comment in english next to the taks, which do not work.
Please just look over, maybe you can find my mistake!
Thanks a lot!