int WriteToPhysicalMemoryEx (unsigned int physicalAddress, const void *sourceBuffer, unsigned int numberOfBytes, int bytesAtATime);
Copies the contents of the specified buffer to a region of physical memory.
The function can copy the data in units of 1, 2, or 4 bytes at a time. WriteToPhysicalMemoryEx does not check whether the memory actually exists. If the memory does not exist, WriteToPhysicalMemoryEx returns the success value but does not read any data.
![]() |
Note WriteToPhysicalMemoryEx requires the LabWindows/CVI low-level support driver. LabWindows/CVI loads the driver at startup if it is on disk. You can check whether LabWindows/CVI loaded the driver at startup by calling CVILowLevelSupportDriverLoaded. |
Input | ||
Name | Type | Description |
physicalAddress | unsigned integer | Physical address to write to. No restrictions exist on the address, which can be above or below 1 MB. |
sourceBuffer | const void * | Buffer from which to copy the physical memory. |
numberOfBytes | unsigned integer | Number of bytes to copy to physical memory. numberOfBytes must be a multiple of bytesAtATime. |
bytesAtATime | integer | Unit size in which to copy the data. bytesAtATime can be 1, 2, or 4 bytes. |
Name | Type | Description | ||||||
status | integer | Indicates whether the function succeeded.
|