LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "22.9.10 Error" when using command prompt with VISA Driver Wizard created .inf file as path to Inf2Cat command

 

 

;===========================================================================
;  This file was generated using:
;  NI-VISA Driver Development Wizard version 5.3
;===========================================================================
;
;  This file is for use with Windows XP. This will not work on Windows
;  8/7/Vista.  This Windows Setup Information File contains the information
;  NI-VISA needs in order to access your instrument.  Do not modify the
;  contents of this file unless you are sure about what you are doing.
;
;===========================================================================
;
;  Installation:
;  To apply the contents of this file to a system's settings, copy this file
;  to %SystemRoot%\inf and reboot the computer.  If the device was
;  installed before this file is copied, the device will need to be removed
;  from the "Unknown Devices" class in the Windows Device Manager.
;
;===========================================================================
;
;  Removal:
;  Remove this file and its associated .PNF file (if it exists) from
;  %SystemRoot%\inf.  Either reboot the computer, or perform a
;  "Scan for hardware changes" from the Windows Device Manager.
;
;===========================================================================

[Version]
Signature=$WINDOWS NT$
Class=visaUsbDevice
ClassGUID={A3330EDF-239D-4206-833B-1D58952613D5}
Provider=%Vendor0%
DriverVer=03/17/2017,1.0


[DefaultInstall.nt]
CopyFiles=NIVIUSBK_Device_CopyFiles_Inf

[DestinationDirs]
NIVIUSBK_Device_CopyFiles_Inf = 17

[NIVIUSBK_Device_CopyFiles_Inf]
IceStick_xp.inf

[SourceDisksNames]

[SourceDisksFiles]

[ClassInstall32.nt]
AddReg=AddClass_AddReg

[AddClass_AddReg]
HKR,,,0,%DeviceClassString%
HKR,,Icon,,"-20"
HKR,,IconPath,0x00010000,"%11%\setupapi.dll,-20"

[Manufacturer]
%Vendor1%=USBList

[USBList]
%USB\VID_0403&PID_6010&MI_00.DeviceDesc%=NIVIUSBK_Inst, USB\VID_0403&PID_6010&MI_00
%USB\VID_0403&PID_6010&MI_01.DeviceDesc%=NIVIUSBK_Inst, USB\VID_0403&PID_6010&MI_01

[PreCopySection]
HKR,,NoSetupUI,,1

[NIVIUSBK_Inst]
AddReg=NIVIUSBK_Inst_AddReg

[NIVIUSBK_Inst.Services]
Addservice = NIVIUSBK, 0x00000002, NIVIUSBK_AddService

[NIVIUSBK_AddService]
DisplayName    = %NIVIUSBK.SvcDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\NIVIUSBK.sys

[NIVIUSBK_Inst_AddReg]

[Strings]
Vendor0="Lattice"
Vendor1="Lattice"
USB\VID_0403&PID_6010&MI_00.DeviceDesc="Lattice FTUSB Interface Cable"
USB\VID_0403&PID_6010&MI_01.DeviceDesc="Lattice FTUSB Interface Cable"
DeviceClassString="NI-VISA USB Devices"
NIVIUSBK.SvcDesc="NI-VISA USB Driver"

SERVICE_BOOT_START = 0x0
SERVICE_SYSTEM_START = 0x1
SERVICE_AUTO_START = 0x2
SERVICE_DEMAND_START = 0x3
SERVICE_DISABLED = 0x4

SERVICE_KERNEL_DRIVER = 0x1
SERVICE_ERROR_IGNORE = 0x0
SERVICE_ERROR_NORMAL = 0x1
SERVICE_ERROR_SEVERE = 0x2
SERVICE_ERROR_CRITICAL = 0x3

The above is the created code from the NI-VISA Driver Wizard (filename IceStick_xp.inf). I was initially following this tutorial (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1qzCAA&l=en-US) to create a driver for my IceStick ICE40HX1K-STICK-EVN FPGA as a means to be able to send signals to it. However at Figure 7 I wasn't able to select "install the generated files on this computer", as seen below. 

Error.JPG

So I followed the suggestion below the "Install Options" title and followed this tutorial (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YH1PCAW&l=en-US). However I am unable to get past the first step as I receive the error message below. The command I have been inputting into command prompt is:   

 

C:\Program Files (x86)\Windows Kits\10\bin\x86>Inf2Cat.exe /driver:"C:\Users\Filip Karisik\Documents\National Instruments\NI-VISA" /os:10_X64

 

 

Error received in command prompt: 22.9.10: icestick_xp.inf in [niviusbk_device_copyfiles_inf] is missing from [SourceDisksFiles] section in \icestick_xp.inf; driver may not sign correctly until this is resolved.

 

Could somebody please provide any input into this as this is really not my area of expertise, but is a critical component of a school project I am working on. 

 

Cheers.  

0 Kudos
Message 1 of 7
(4,963 Views)

I'm no expert in this area, either - but maybe if you could tell us what you are trying to do with it, we could even figure out if you actually need a VISA driver for this thing or not.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 7
(4,922 Views)

Hi Bill, 

 

I will be using a Tektronix oscilloscope to gather data and pass onto labview (for which I believe LabView has drivers already). Based on some calculations that labview will do from the oscilloscope data it will have to pass an appropriate signal to my FPGA (http://www.latticesemi.com/icestick) (e.g. - a number ranging from 1-20) and the FPGA will then do some appropriate demultiplexing. In having said that, is there a better solution to what I was attempting above in order to pass data to an FPGA from labview. 

 

Cheers. 

0 Kudos
Message 3 of 7
(4,913 Views)

Hi FilDoe, 

Have you looked at the KnowledgeBase article the Installation Options dialog box directs you to? I have copied the link below, maybe it would be helpful. 

 

Generating and Installing a Signed *.inf File for Use with NI-VISA and the Driver Development Wizard on Windows 8 or Later 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YH1PCAW&l=en-US

 

Angela L.

0 Kudos
Message 4 of 7
(4,894 Views)

Getting digital signature procedure is very much tough i think.I did one short method. I am not sure whether it is correct, but works.

 

Disable windows 8/10 digital signature enforcement

 

0 Kudos
Message 5 of 7
(4,811 Views)

Turns out after some serious time wasted that my FPGA has a FTDI chip on it which had an already written driver for serial comms. Thanks for the contributions anywhom. 

0 Kudos
Message 6 of 7
(4,797 Views)

@FilDoe wrote:

Turns out after some serious time wasted that my FPGA has a FTDI chip on it which had an already written driver for serial comms. Thanks for the contributions anywhom. 


While this probably goes in the "lessons learned" folder, this wasn't really wasted time if indeed it was a lesson learned.  Besides, I bet you have a better understanding of how everything works now.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 7 of 7
(4,785 Views)