LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using .sys driver in Win XP

I want to drive some PCI card that have .sys driver in folder Windows\system32\driver\.

Is it any chance to do these with LabView? - like with .dll

0 Kudos
Message 1 of 8
(4,282 Views)
Oldi,
I'm not quite sure how to access a .sys file in general. Can you use a command prompt to access a .sys? If so, then you can just use the System Exec.vi to pass commands to the command prompt. Be sure to use the "cmd /c " before the command you issue, or you'll get error 2.

 

Chris C


0 Kudos
Message 2 of 8
(4,255 Views)
I've done this by creating a DLL in Visual C that makes calls to the std windows functions, CreateFile(), DeviceIoControl(), CloseFile().
 
It should be possible to call these functions directly from LabView using the 'Call Library Function Node' but manipulating the data types may be a pain. Creating your own interface DLL alows you to handle all the Win32 data types within the dll and create functions that pass back simple data types to LabView.
 
 
0 Kudos
Message 3 of 8
(4,244 Views)
I have no information about data input and output, but probable I can get it and after that, I will be back Smiley Happy
0 Kudos
Message 4 of 8
(4,225 Views)

For that PCI card I get everything to create software for controlling it, write the software using the SDK methods and compile it with the header files provided. Everything is well documented in Help file. There is only 1 problem, how to use these in LabView instead of C++, of course without knowledge about SDK and VisualC++. I have some experience with old Borland C and CVI.

Message Edited by Oldi on 11-05-2006 02:15 PM

0 Kudos
Message 5 of 8
(4,181 Views)
Hi Oldi,
In LabVIEW 8.2 (maybe 8??) you can import a dll with a proper header file and create a complete set of VI's  for every function in the DLL. I'v tried this and it gave me some warnings about missing datatypes but overall I got 87 VI's in 10 minutes!!!

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 8
(4,163 Views)

But I only have that .sys and instruction (with .c files) how to drive my card with VisualC++ using Windows SDK methods.

0 Kudos
Message 7 of 8
(4,156 Views)
Hey Oldi,
Build your c code into a dll and then use the Dll Import Wizard. Let us know if you run into problems.
 
Chris C


Message Edited by Support on 01-10-2008 11:22 AM
0 Kudos
Message 8 of 8
(4,138 Views)