Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Network variable timestamp

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 = new NetworkVariableBufferedWriter<bool>(NetworkVariableLocation);

int phase = 0;

for (int i = 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

 

0 Kudos
Message 1 of 1
(2,369 Views)