Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

Network variable timestamp

$
0
0

Hello,

 

when I write Data with an NetworkVariableBufferedWriter with an sleep from 2ms I get the data with an NetworkVariableBufferedSubscriber with 5 identical timestamps. My variable has an buffer of 50. I am using Mesurementstudio 2015.

 

NetworkVariableBufferedWriter<bool> _bufferedWriter=newNetworkVariableBufferedWriter<bool>(NetworkVariableLocation);

intphase=0;

for (inti=0; i<10; i++)

{

 _bufferedWriter.WriteValue(phase%2==0?true : false);

 Thread.Sleep(2);

 phase++;

}

 I have also tried with an NetworkvariableWriter and set the FlushOnWrite property true but I got only every 10ms a new timestamp and 5 values have the same timestamp.

 

Best regards

 

Gerald

 


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>