From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

250us data from FPGA I/O

Hello everyone,

 

what’s the best method to get the latest data from FPGA every 250us in RT . I tried using DMA allocates enough FIFO depth . But the FIFO is over flowing . Can someone suggest me . What could be the reason for FIFO over flow . 
FPGA AI sampling rate is 100kS/s X 8 channels

 

so I will be getting 200 elements (25x8) every 250us


in RT I m checking 200 elements in DMA FIFO and loop rate is 250us

 

am I doing the right settings . Or should I run the loop higher rate . I tried that also , every 100us I m checking the DMA FIFO . That also not worked . Can someone suggest me better method ? 

Thank you

Vipinraj KK

0 Kudos
Message 1 of 10
(1,694 Views)

Hard to judge code we can't even see....

 

Should be do-able I think, but code is the key.

0 Kudos
Message 2 of 10
(1,659 Views)

Hi

 

Please find the code below.

0 Kudos
Message 3 of 10
(1,649 Views)

Can't you just ZIP it instead of using RAR?

 

If you're looking for help, it's generally best to not put obstacles in the way of people giving up their free time to help you.

Message 4 of 10
(1,594 Views)

Hi Vipinraj,

 

reduce the wait time in the loop to ~50µs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 10
(1,591 Views)

Sorry, 

 

I thought winrar is  a free tool which everyone uses. I will upload .zip.

0 Kudos
Message 6 of 10
(1,576 Views)

Hi,

 

Thanks for the reply. I will test the code and update .

0 Kudos
Message 7 of 10
(1,571 Views)

Hi Vipinraj,

 


@VipinrajKK wrote:

I thought winrar is  a free tool which everyone uses.


Why do you think so?

ZIP is built-in into Windows for free. (On LINUX too.)

7-zip is for free, but sometimes forbidden to be used on company computers.

WinRAR needs to be bought.

 

So use ZIP for public use. And pay your license fee for WinRAR!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 10
(1,568 Views)

@VipinrajKK wrote:

I thought winrar is  a free tool which everyone uses. I will upload .zip.


Many companies will block all software except for "approved" software.  I am personally a fan of 7-Zip, but my current employer actually has it on the "Rejected" (not just unapproved, but flat out rejected) list due to some standard not quite being correct.  But Windows handles zip files natively, so I can open those up no problem.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 9 of 10
(1,566 Views)

Ok, noted. thanks

 

Next time onwards I will make sure to upload it in zip format.

0 Kudos
Message 10 of 10
(1,540 Views)