National Instruments 320682C Musical Toy Instrument User Manual


 
Utility Library Chapter 8
LabWindows/CVI Standard Libraries 8-86 © National Instruments Corporation
Return Value
status integer Indicates whether the function
succeeded.
Return Codes
1
Success.
0
Failure reported by the operating system, or low-level
support driver not loaded.
WriteToPhysicalMemoryEx
int status = WriteToPhysicalMemoryEx (unsigned int physicalAddress,
void *sourceBuffer,
unsigned int numberOfBytes,
int bytesAtATime);
Note: This function is available only in the Windows version of LabWindows/CVI.
Purpose
This function copies the contents of the specified buffer to a region of physical memory. It can
copy the data in units of 1, 2, or 4 bytes at a time.
The function does not check whether the memory actually exists. If the memory does not exist,
success is returned but no data is written.
Note: For you to be able to use this function on Windows 95 or NT, the LabWindows/CVI
low-level support driver must be loaded.
Parameters
Input
physicalAddress
unsigned
integer
The physical address to write to. There are no
restrictions on the address; it can be above or
below 1 MB.
sourceBuffer
void pointer The buffer from which the physical memory is
written.
numberOfBytes
unsigned
integer
The number of bytes to copy to physical memory.
bytesAtATime
integer The unit size in which to copy the data. Can be 1,
2, or 4.