LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA mutlirate low delay sampling with 9237 module

Hello LabVIEW fans

I am trying to develop an FPGA vi that acquires 4 channels on a 9237 module.I would like outputs at 1kHz and 200Hz for different applications on the RT target.

I would like to have low delay so I chose the highest sampling frequency of 50 Khz and I downsample (with very simple averaging respectively on 50 and 250 points).

I wonder if you could comment on the code below

FeBo_44_0-1604702668513.png

See also the attached vi.

 

 

0 Kudos
Message 1 of 4
(1,483 Views)

What you mean with "I would like to have low delay"?
Even if you set data acquisition speed 1KHz, you'll send AO data "immideately" after you get a new point.
You need averaging only if AI data has jitting.

0 Kudos
Message 2 of 4
(1,425 Views)

Hi Artem.SPb

By "low delay", I mean that I want to avoid the 20 ms delay inherent to module 9237 when you set sampling frequency to minimum, that is 1.6 kHz.

This is why I choose 50 kHz sampling frequency (0.8 ms delay) and I do averaging to downsample at 1 kHz. SO the obtained delay should be 0.8+1=1.8 ms.

 

0 Kudos
Message 3 of 4
(1,419 Views)

I can't understand how did you get your time delays.
50 kHz => 0.02 ms, not 0.8
And if the sample rate is 1.6 kHz, then period = 0.625 ms.
How did you get 20ms?

0 Kudos
Message 4 of 4
(1,414 Views)