LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sample to read

Hello everybody

I have to acquire 32 signals in continous sample with a sample rate at 50kHz. So I use only 1 Daqmx read to do this but I don t know what value can I put in sample to read. If someone can help me to find this value and tell me how you find this value it will be great

 

Thank you very much for  your help

 

Romaric GIBERT

0 Kudos
Message 1 of 6
(2,335 Views)

Hi Roro,

 

the samples to read depends on how often you need data...

When you need data once a second you give 50000 (with a sampling rate of 50kHz).

For data blocks 10 times a second you give 5000, for reading data each 10ms you give 500.

 

Do you get the scheme?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,327 Views)

thank for your response. I would like to know how can I do to read data block because my loop run each second and no each 10ms .

Thank you for your help

Romaric GIBERT

0 Kudos
Message 3 of 6
(2,320 Views)

Hi Roro,

 

let's see what I wrote in message #2:

"When you need data once a second you give 50000 (with a sampling rate of 50kHz)."

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,316 Views)

Thank you, buf for example If I want to read each 10ms, How can I do to do that "For data blocks 10 times a second you give 5000, for reading data each 10ms you give 500." I don t know how can I do a data block 10 time a second.

Could you explain me please?

 

Thank you for your help

 

Romaric GIBERT

0 Kudos
Message 5 of 6
(2,309 Views)

Hi Roro,

 

when you set the sampling frequency to 50kHz and request 500 samples, then you get those 500 samples after 10ms...

For 5000 samples you will have to wait 0.1s (simple math: 5000 samples / 50000 S/s = 0.1s)!

 

Now you only have to read those datablocks in a loop - there are surely examples to explain this! (Just go to Help->Search examples... in LabVIEW)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,305 Views)