Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Physical Memory Allocation Using VISA

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: GPIB>>Plug-in Controllers>>PCI-GPIB

Problem:
I'm using CVI and am trying to allocate/access memory inside my PC and then allow my PCI/VISA device to write data to that memory. However, I can't get the physical address of the SDRAM inside my PC to give to my VISA device so that it can write data there over the PCI bus. How can I do this?

Solution:
You will need to have two VISA session open to accomplish this. PXI::MEMACC is a generic resource name for the computer your are using. If you use PXI::MEMACC as a resource name, this will target the PC's memory.

Open two sessions: one to your device and one to PXI::MEMACC . You can then use viMemAlloc with PXI::MEMACC. This allocates a physical chunk of RAM and returns the physical address. You can then give this address to your VISA device in your other open session.

In addition, you could also use viMapAddress to map from the physical to the logical address on your PC.

Related Links:
KnowledgeBase 3KDDNHPC: How Many Devices Can NI VISA Support?

Attachments:





Report Date: 08/11/2006
Last Updated: 09/09/2006
Document ID: 40A9KKD2

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit