LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

dma sample

i am porting a driver written in c that was for the VxWorks operating system. it is a pmc card that can do DMA. the target is to put it on a carrier for a PXI chassis and to use LabVIEW RT. there is a function in VxWorks called cacheDmaMalloc(). i was wondering if there is an equivalent in the VISA library API. also, can i just use malloc(). are there any samples that i could look at. thanks.
0 Kudos
Message 1 of 2
(4,776 Views)

Chucky,

 

You can use malloc in a real-time environment. The examples for CVI Real-Time which uses the same OS as LabVIEW Real-time can be found here: C:\Documents and Settings\All Users\Documents\National Instruments\CVI90\samples\realtime. The full VISA library can be used while on Real-Time, more information about all of the VISA functions can be found in the CVI help. I took a look at the documentation for cacheDmaMalloc() and it looks like it may be doing more than just simply allocating memory. 

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 2 of 2
(4,753 Views)