LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DMA Transfer-Multichannel

Hi T-Rex,

Thank for the insight. Concept implemented. I greatly appreciate.

 

Best Regards,

Opuk

0 Kudos
Message 11 of 13
(984 Views)

I have also noted a certain behaviour in the RT code. When the host code is running and the START SCAN button is not yet pressed I see values changing in the Elements Remaining indicator. I thought this should not be the case, because, I pass values to the DMA from the FPGA side at instances of X pixels which can only be true when the Start Scan button is pressed.

Is this normal or am I doing something wrong somewhere without knowing? Any suggestions will be highly appreciated. Thanks.

 

Best Regards,

Opuk

0 Kudos
Message 12 of 13
(973 Views)

I only did a brief look at your code, but there are 2 things that I suspect could be the issue. First, it's possible that there is stale data in your DMA FIFO from the last run of your code (either running the host or running the FPGA VI in interactive mode could cause this). A second possibility is that your 'FPGA Open VI Reference Node' is just connecting to an already open and running fpga session, so your state machine controlling your program flow could be in any state.

 

The easiest way to fix both issues is to put a 'download' and a 'run' invoke node immediately after your open call.

Cheers!

TJ G
0 Kudos
Message 13 of 13
(953 Views)