Chapter 8 Utility Library
© National Instruments Corporation 8-85 LabWindows/CVI Standard Libraries
Example
int module_id;
int status;
char *pathname'
pathname = "PROG.OBJ";
module_id = LoadExternalModule (pathname);
if (module_id <0)
FmtOut ("Unable to load %s\n", pathname);
else {RunExternalModule (module_id, "");
UnloadExternalModule (module_id);
}
WriteToPhysicalMemory
int status = WriteToPhysicalMemory (unsigned int physicalAddress,
void *sourceBuffer,
unsigned int numberOfBytes);
Note: This function is available only on the Windows versions of LabWindows/CVI.
Purpose
Copies the contents of destinationBuffer into a region of physical memory. The function does
not check whether the memory actually exists. If the memory does not exist, the success value is
returned but no data is read.
Note: For you to be able to use this function under Windows 95 or NT, the LabWindows/CVI
low-level support driver must be loaded.
Parameters
Input physicalAddress unsigned integer The physical address to be written
to. There are no restrictions on
the address; it can be below or
above 1 MB.
sourceBuffer void pointer The buffer from which the
physical memory will be copied.
numberOfBytes unsigned integer The number of bytes to copy to
physical memory.