02-07-2019 05:33 AM
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
Solved! Go to Solution.
02-08-2019 04:54 AM
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
02-08-2019 07:21 AM
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.
02-11-2019 06:04 AM
Thank you Roberto, for this hint.
I executed UpdateValidator.exe from
https://knowledge.ni.com/
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
02-13-2019 05:56 AM
Mr Gareis from the german Applications Engineering support helped me with the hint:
So it is not suficient to be as user "administrator".
This way it is working!
A big Thank You for Mr Gareis.