Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting a customized Class RAW USB device to Windows 7, by using NI-VISA and NI Driver Wizard.

Hello,

 

for a customized Class RAW USB device, I've used the NIVIUSBK.sys Driver

under Windows XP. And I've created the necessary INF File with the NI Driver

Wizard, which includes my own Vendor ID and Product ID. This works all fine

under Windows XP and NI-VISA 3.5.

 

But now I want to get my Class RAW USB device connected to Windows 7 64-Bit

Version. I've created a new INF File with the NI Driver Wizard (NI-VISA 5.3), which

is fitting to Windows 7 64-Bit Version. And I've installed it according to the

instructions of the NI Driver Wizard.

 

My Class RAW USB device is listed on the Windows Device Manager. But it

is marked with an yellow exclamation mark. And when I looking for details the error

message  "Device cannot start. Code (10)" appears. And my USB device does

 not appear in NI MAX or VISA Interactive Control.

 

According to the new INF File, on Windows 7 the NIVIUSBK.sys Driver have been

replaced by the WINUSB.sys Driver. Could this have caused the Problem? And is

there anything else to do, to connect a customized Class RAW USB Device with

Windows 7 64-Bit Version, by using NI-VISA 5.3? 

 

For the Class RAW USB-Interface I used the Atmel AT91SAM7X128 Chip.

Message 1 of 5
(5,309 Views)

Hi,

 

in contrast to WinXP using NIVIUSBK.sys, Win Vista and Win7 use WINUSB.sys. So the entry in the inf file is correct.

 

Generally the created driver should work. Did you try reinstalling the driver and stuff like that?

 

See the following link for some troubleshooting steps:

http://pcsupport.about.com/od/findbyerrormessage/a/code-10-error.htm

 

USB Instrument Control Tutorial

http://sine.ni.com/np/app/main/p/ap/ictrl/lang/en/pg/1/sn/n17:ictrl,n21:25/fmid/6000/

 

It seems the correct order of steps to create the driver is important, too. Did you connect the device while you ran the wizard and did you disconnect the device while installing the driver?

 

I also found the following threads.

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/This-device-cannot-start-Code-10/td-p/738038

http://208.74.204.114/t5/Instrument-Control-GPIB-Serial/Error-Code-10-when-using-VISA-driver-wizard/...

 

If this doesn't help just let me know!

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

Hi,

 

Thanks for your reply.

 

Yes, according to the installation instruction, I've ensured the right order of these

steps to install the driver on Windows 7.

 

I also checked the troubleshooting steps, but it's still the same situation:

 

  • Under Device Manager: USB Device appears with an yellow explanation Mark and an error message  "Device cannot start. Code (10)".

 

  • Under NI MAX or VISA Interactive Control: No USB device or other device appears.

 

I've catched the WINUSB.sys debug trace log, while I've connected my USB device to Windows 7 PC.

 

http://blogs.msdn.com/b/usbcoreblog/archive/2010/02/05/how-to-generate-and-view-a-winusb-debug-trace...

 

[2]0004.0030::03/08/2013-10:11:45.514 - Preparing hardware
[2]0004.0030::03/08/2013-10:11:45.516 - Unable to select the default configuration, failing Start
[2]0004.0030::03/08/2013-10:11:45.516 - Enter: WinUSB_ReleaseHardware
[2]0004.0030::03/08/2013-10:11:45.516 - Exit: WinUSB_ReleaseHardware (STATUS_SUCCESS)
[3]0004.002C::03/08/2013-10:11:45.522 - Handling Device Cleanup
[0]0004.0020::03/08/2013-10:11:45.542 - Enter: WinUSB_D0Entry
[0]0004.0020::03/08/2013-10:11:45.542 - Starting Read Io Target
[0]0004.0020::03/08/2013-10:11:45.542 - Starting Read Io Target
[0]0004.0020::03/08/2013-10:11:45.542 - Exit: WinUSB_D0Entry (STATUS_SUCCESS)
[0]0000.0000::03/08/2013-10:11:45.549 - PIPE129: (0000002d) Transfer was terminated by a short packet
[0]0000.0000::03/08/2013-10:11:45.549 - PIPE129: (0000002d) Read request for 10 bytes has completed with 2 bytes
[0]1798.133C::03/08/2013-10:11:45.549 - IOCTL_WINUSB_GET_POWER_POLICY
[0]1798.133C::03/08/2013-10:11:45.549 - IOCTL_WINUSB_SET_POWER_POLICY
[0]1798.133C::03/08/2013-10:11:45.549 - IOCTL_WINUSB_READ_PIPE
[0]1798.133C::03/08/2013-10:11:45.549 - PIPE129: (00000030) The read has been added to the read queue
[0]1798.133C::03/08/2013-10:11:45.549 - PIPE129: (00000030) The read for 10 bytes is being handled
[0]1798.133C::03/08/2013-10:11:45.550 - PIPE129: (00000030) Reading 8 bytes from the device
[0]0004.003C::03/08/2013-10:11:50.582 - Enter: WinUSB_D0Exit
[0]0004.003C::03/08/2013-10:11:50.582 - Stopping Read Io Target to cancel pending IO
[0]0000.0000::03/08/2013-10:11:50.602 - PIPE129: (00000030) Resending read for 8 more bytes
[2]0004.003C::03/08/2013-10:11:50.602 - Stopping Read Io Target to cancel pending IO
[2]0004.003C::03/08/2013-10:11:50.602 - Exit: WinUSB_D0Exit (STATUS_SUCCESS)

 

But unfortunatly I'm not an expert in WINUSB.sys Driver.

 

Maybe this could lead to the right direction, to fix the problem.

0 Kudos
Message 3 of 5
(5,258 Views)

Hi,

 

could you give me the two inf files you created? Maybe I can find some wrong configurations or settings in there.

 

Raphael

0 Kudos
Message 4 of 5
(5,225 Views)

Yes, sure.

prefix_XP is the old INF File, which I use to install the driver on Windows XP PC. This one works well in order to connect a Class RAW USB Device to a PC.

And prefix_Win7 is the new INF File, which I've created by using the NI Driver Wizard Version 5.3. I using this one to install the Driver for connect my Class RAW USB device to the Windows 7 64-Bit version.


Thanks for your efforts so far.

Download All
0 Kudos
Message 5 of 5
(5,221 Views)