04-08-2009 08:03 AM
Hi Tom,
"...You should be able to find your cpci device in MAX listed as something like PXI<bus>::<dev>::INSTR...."
Unfortunately I can't find any PXI device listed in MAX. The only devices I have aer serials/Parallel ports.
Any idea?
Thanks
Francesco
04-08-2009 04:15 PM
Hi Francesco,
I'm trying to find a solution for you.
Would you please describe your set, with the hardware and software that you're working with?
Also, if you could clarify what you're trying to acheive, it would help out.
Thanks,
Sammy Z.
04-09-2009 01:56 AM
Hi Sammy,
I'll try to summarize my problem:
I have a cPCI chassis with a CPU board (running WinXP) and my collegues are developing few cPCI boards.
Now I have to develop drivers for this boards to test them.
I know that using NI-VISA components I can access (R/W) low level cPCI registers (BAR0 etc) , so my idea was to use Labview and NI-VISA.
Since cPCI boards will not be ready before 2/3 monts, I decided to make confidence with this procedure using a commercial cPCI board (ADDIALOG APCI-/CPCI-3120).
Following the "Driver Wizard" I wrote my .inf file, I've installed it and manually added to the system resources.
I expected to find it listed in MAX and address it using VISA, but MAX doesn't list any PXI device !
That's the situation and listed below you can find my .inf file.
Thanks for your support
Francesco
[Version]
Signature=$WINDOWS NT$
Class=visaPxiDevice
ClassGUID={E1590550-9B9C-11d3-A250-0040055732CC}
Provider=%Vendor0%
DriverVer=04/02/2009,1.0
CatalogFile=CPCI3120.cat
;===========================================================================
; Default Installer
;===========================================================================
[DefaultInstall]
CopyINF=CPCI3120.inf
[DestinationDirs]
[SourceDisksNames]
[SourceDisksFiles]
;===========================================================================
; Class Installer
;===========================================================================
[ClassInstall32]
AddReg=AddClass_AddReg
[AddClass_AddReg]
HKR,,,0,%DeviceClassString%
HKR,,Icon,,"-5"
;===========================================================================
[ControlFlags]
ExcludeFromSelect=PCI\VEN_10E8&DEV_818D&SUBSYS_00000000&REV_00
;===========================================================================
[Manufacturer]
%Vendor1%=PCIList,NTamd64
;===========================================================================
; PCI Plug and Play Devices
;===========================================================================
[PCIList]
%CPCI3120.DeviceDesc%=CPCI3120_Inst,PCI\VEN_10E8&DEV_818D
%CPCI3120.DeviceDescN%=CPCI3120_Inst,PCI\VEN_10E8&DEV_818D&SUBSYS_00000000&REV_00
[PCIList.NTamd64]
%CPCI3120.DeviceDesc%=CPCI3120_Inst,PCI\VEN_10E8&DEV_818D
%CPCI3120.DeviceDescN%=CPCI3120_Inst,PCI\VEN_10E8&DEV_818D&SUBSYS_00000000&REV_00
;===========================================================================
[CPCI3120_Inst]
AddReg=CPCI3120_AddReg
[CPCI3120_Inst.Services]
AddService=NiViPciKw, 0x00000002, NiViPciKw_AddService
[CPCI3120_AddReg]
HKR,,DeviceClass,1,72,65,73,75
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10E8818D","HowToSquelch",0,""
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10E8818D","EmergencyDisarm",0,""
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10E8818D","numIsThisMineEntries",0x00010001,0
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10E8818D","ManufName",0,"ADDI DATA"
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10E8818D","ModelName",0,"CPCI 3120"
;===========================================================================
[NiViPciKw_AddService]
DisplayName = %NiViPciKw.SvcDesc%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\NiViPciKw.sys
;===========================================================================
[Strings]
; *******Localizable Strings*******
Vendor0="ADDI DATA"
Vendor1="ADDI DATA"
CPCI3120.DeviceDesc="CPCI 3120"
CPCI3120.DeviceDescN="CPCI 3120"
DeviceClassString="NI-VISA PXI Devices"
NiViPciKw.SvcDesc="NI-VISA PXI/PCI WDM Driver"
; *******Non Localizable Strings*******
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
04-29-2009 09:56 AM
Hi Francesco,
I'm sorry for the late reply. Somehow, I hadn't gotten your reply notice.
Would you please let me know if there is any development on the issue?
Also, below is a Developer Zone article that should give you good information on each step of the Driver Development Wizard.
Regards,
Sammy Z.
05-01-2009 11:23 AM
The Developer Zone article:
05-03-2012 10:13 AM
Has anyone else noticed that the VISA calls no longer work with 2011 SP1?