LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What drivers do I use to accomplish the tasks of the c language routines outp/inp under Win2000?

I am using LabWindows CVI 5.0 running Win95 and want to change OS to Win2000 professional. My CVI code uses input/output commands such as outp and inp to read/write to registers on a home-made board. What drivers do I use to accomplish the tasks of outp/inp under Win2000?
0 Kudos
Message 1 of 2
(2,996 Views)
You have to ensure that the CVI Low Level driver is initialised in order for you functions to work. According the info below, CVI should load them automatically, but since not all functions return failure information, you need to verify that the drivers are in fact loaded prior to using the functions shown below:

You can verify this by using :
CVILowLevelSupportDriverLoaded ();

Function Platforms
inp Windows NT/2000
inpw Windows NT/2000
outp Windows NT/2000
outpw Windows NT/2000
ReadFromPhysicalMemory Windows NT/2000/98/95
ReadFromPhysicalMemoryEx Windows NT/2000/98/95
WriteToPhysicalMemory Windows NT/2000/98/95
WriteToPhysicalMemoryEx Windo
ws NT/2000/98/95
MapPhysicalMemory Windows NT/2000/98/95
UnMapPhysicalMemory Windows NT/2000/98/95
DisableInterrupts Windows 98/95
EnableInterrupts Windows 98/95
DisableTaskSwitching Windows 98/95

Note Most of these functions do not return an error if the low-level support driver is not loaded. To make sure your calls to these functions can execute correctly, call CVILowLevelSupportDriverLoaded at the beginning of your program.

The LabWindows/CVI libraries automatically load the low-level support driver at startup if it is on disk. The low-level support driver ships with LabWindows/CVI. The Create Distribution Kit command in the Project window gives you an option to include it with your standalone executables or DLLs.
Message 2 of 2
(2,996 Views)