Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring PCI-MIO-16E-1 from DDK and performing DIO

Why the driver was not working was solved: I was using PCI-MIO-16E-1 with Elvis.

On Elvis, the digital lines on the box are not directly connected to the
MIO device.  In fact, there is a special serial protocol that is necessary
to turn a digital line on or off on the Elvis box.  This is the reason that
the Elvis application can manipulate the lines, but I had not been able
to manipulate the lines with DAQmx, VISA, or driver in this thread.

On the other hand the analog is directly connected to the MIO; that's why
I was able to acquire an analog signal using DAQmx.

IMy driver is working correctly; however, the
solution is I need a different hardware accessory for testing such as a CB-68LP connected to LEDs. 

0 Kudos
Message 21 of 23
(4,399 Views)
In order to allow the digital lines some time to turn on, I have to use a Sleep function.
What sleep function is usually used in a kernel-mode driver?
I tried to compile the Sleep() function from <Windows.h>, but including this file in my VC++ project
causes weird syntax errors.
0 Kudos
Message 22 of 23
(4,399 Views)
In the Windows kernel, try KeDelayExecutionThread.

geoff
--
Geoff Schmit
Huskie Robotics, FIRST Team 3061 Lead Mentor
http://team3061.org/
@team3061
0 Kudos
Message 23 of 23
(4,389 Views)