Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

EndReadMultiSampleDouble in c# (Pci6602,Period Measurement)

Hello,

If I choose a high number of samples in BeginReadMultiSampleDouble always get a timeout while reading with EndReadMultiSampleDouble. What's the condition that a timeout occurs ?

 

Thanks andré

0 Kudos
Message 1 of 2
(3,446 Views)

Hi koins,

 

the condition refers to your sample rate.

If you choose e.g. a sample rate of 1kHz and your number of samples is 1000, than ONE measurement iteration will take 1 second.

If you set the sample rate to 1kHz and the number of samples to 10000, than ONE measurement iteration will take 10seconds.

 

If you want to use a very high number of samples, you should increase the timeout.

You can calculate the time which is needed by:

time for ONE iteration = (number of samples) / (sampe rate) 

This is because we are using a Fifo memory and we transfer the data in blocks (number of samples) from the device to e.g. Labview, C#, C++,... 

 

Hope this helps

Best regards

Dippi 

0 Kudos
Message 2 of 2
(3,437 Views)