LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVILowLevelSupportDriver not found in Windows10

Solved!
Go to solution

I updated my system from Windows 7 to Windows 10.

 

At the beginning of my program I installed the following code:

if (CVILowLevelSupportDriverLoaded ())
{printf ("%s", "CVILowLevelSupportDriver is Loaded\n");} else
{printf ("%s", "CVILowLevelSupportDriver is NOT Loaded\n");}


In Windows 7 this function returns that the Driver is loaded,

in  Windows 10 it returns not loaded.

The driver exists: C:\Windows\System32\drivers\cvintdrv.sys

The registry exists:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\cvintdrv

Type Name Value
DWORD ErrorControl 00000001
String Group "Extended Base"
DWORD Start 00000002
DWORD Type 00000001

 

I have a 32bit system, I have administrator rights! I am using CVI 2017.

Windows10 was released 2015, so CVI 2017 should work completely on Windows10!

 

I need direct access to the internal IO-ports with inp and outp! No way around possible!

 

Is there anyone using inp and outp commands under Windows10?
Can you give me any hints?

Thank you very much

0 Kudos
Message 1 of 5
(2,992 Views)

I just found an example demonstrating direct access to LPT port:

http://ftp.ni.com/pub/devzone/epd/parallel.zip

 

Here is a part of the code:

// Check whether the LabWindows/CVI low-level support driver was loaded at startup.
loaded = CVILowLevelSupportDriverLoaded ();
// Read from the parallel port
byteRead = inp (portNumber);

This example is working here on Windows7, it is not working on Windows10.

 

Please can anyone check this example on Windows10 and tell me if it works!!!!

Thank you

0 Kudos
Message 2 of 5
(2,956 Views)

I do not have 32-bit systems to test it on, but I see in the documentation a note requiring to run the application with administrative privileges in order to use this family of functions.

See these documents for reference:

Why Do My Port I/O Functions Always Return 0 for the Byte Written or Received?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019WwxSAE&l=it-IT

 

Additionally, this limitation comes from a security update to NI software that could be applied only now during the general update from Win7 to Win10. The documents listed above show also how to check whether the update has been applied or not.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 5
(2,944 Views)

Thank you Roberto, for this hint.

I executed UpdateValidator.exe from
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019WwxSAE&l=de-DE.
It returns 1 meaning that the driver cvintdrv.sys is updated.

 

In the meantime I hope for the help of an engineer  having a 32bit system with Windows10 and willing to spend a little time for compiling and executing this sample program: http://ftp.ni.com/pub/devzone/epd/parallel.zip

I append a screenshot ParallelPortRunning.jpg

 

 

0 Kudos
Message 4 of 5
(2,919 Views)
Solution
Accepted by topic author gerygery

Mr Gareis from the german Applications Engineering support helped me with the hint:

CVI_admin.PNG

So it is not suficient to be as user "administrator".

This way it is working!

A big Thank You for Mr Gareis.

 

 

Message 5 of 5
(2,908 Views)