NIVeriStandAdd-Ons / GE-Reflective-Memory-Custom-Device-multiple-DMA-transfer

BSD 2-Clause "Simplified" License
3 stars 5 forks source link

Bug Report for Enable DMA Interrupt (Cluster) Multi.vi #11

Open SallyTYT opened 3 years ago

SallyTYT commented 3 years ago

VISA Open VI for MEMACC resource -- "duplicate session" option shall be set as TRUE.

Otherwise, when using multiple boards, the followed VISA Map Address VI will report error -1073807232 (VI_ERROR_WINDOW_MAPPED).

image

image

CyGaNeo commented 3 years ago

Hi SallyTYT, Just faced this issue today on a PXI LinuxRT x64. Did this happen to you on a PharLap or LinuxRT OS ?

Also, I only have one reflective memory in my chassis. Is this need for duplicating session reaaly applies in that case ? Can the PXI0::MEMACC ressource be reserved by any other app ?

Also I noticed than if an error occurs during th CD life, this ressource releasing might not be applied. Therefore, re-running the code after that might be seen by VISA as duplicate session.

SallyTYT commented 3 years ago

Hi @CyGaNeo ,

Just faced this issue today on a PXI LinuxRT x64. Did this happen to you on a PharLap or LinuxRT OS ?

I tested on both PharLap and LinuxRT, the issue occurred on both.

Also, I only have one reflective memory in my chassis. Is this need for duplicating session reaaly applies in that case ? Can the PXI0::MEMACC ressource be reserved by any other app ?

PXI0::MEMACC is used to apply for system RAM resource. I think it shall be able to be used by any thread.

Also I noticed than if an error occurs during th CD life, this ressource releasing might not be applied. Therefore, re-running the code after that might be seen by VISA as duplicate session.

To solve this issue, you can find the RT Driver VI.vi and disconnect the error input terminal of GE5565 Disable DMA Interrupt (Cluster) mod.vi

CyGaNeo commented 3 years ago

I confirm it works when the duplication is authorized.