From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

Content Type
Programming Language
Current manual

WriteToPhysicalMemory

WriteToPhysicalMemory

int WriteToPhysicalMemory (unsigned int physicalAddress, const void *sourceBuffer, unsigned int numberOfBytes);

Purpose

Note Note  This function is obsolete and always returns an error code of 0, which indicates failure.

Copies the contents of the specified buffer into a region of physical memory.

WriteToPhysicalMemory does not check whether the memory actually exists. If the memory does not exist, WriteToPhysicalMemory returns the success value but does not read any data.

Note    WriteToPhysicalMemory 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.

The low-level support driver is not supported on 64-bit systems. Only applications running with administrator privileges on 32-bit systems can load the low-level support driver.

Parameters

Input
Name Type Description
physicalAddress unsigned int Physical address to write to.

No restrictions exist on the address, which can be below or above 1 MB.
sourceBuffer const void * Buffer from which to copy the physical memory.
numberOfBytes unsigned int Number of bytes to copy to physical memory.

Return Value

Name Type Description
status int Indicates whether the function succeeded.

Code Description
1 Success.
0 Operating system reported failure, or low-level support driver not loaded.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit