Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I check the NiVisaTulip.dll automatically

Is there any way I can check the NiVisaTulip.dll automatically?
I used agilent 82357A USB-GPIB card in my application,so when I distribute my application,I want my installer to check the NiVisaTulip.dll automatically.
At first I try to import MAX configure(.nce) to the target machine,so I checked "Include hardware configuration from MAX" in the "Hardware Configuration" page when building my Installer,and I do press the button "Check All" in the "Export items" page of Configuration Export Wizard,in the "Import Mode",I checked "Replace the destionation system configuration with the import data".
After I run my Installer on the target machine(and restart it),It seems that the NiVisaTulip.dll not been checked,but some other setting about VISA have been changed,for example, I change the  "Minimum Async Transfer" to special number on my development machine before I run the  Configuration Export Wizard for mark,and after my installer completed on target machine,the Minimum Async Transfer of the general setting on target machine is exactly what I set for mark,so it seems that the *.nce file does not contain any Passports information,it that right?
I also try to Export and Import MAX configuration manually,but the passports setting still no change.
After searching  the forums,I try to copy the "visaaconf.ini" in the path VXIPNP\WinNT\NIvisa to the same location of target machine and replace the origin one,the result just the same as import the *.nce file from MAX,that means every setting changed but passports.
I know I can run "NI Passport Registry editor.exe" to change the passport  without MAX,but that still no what I want.because the user still need to do that manually.
 
 It seems change the registry key somewhere maybe effect,but where is the right key?
 
Any reply will be appreciate! Thank you very much!
 
 

帖子被iwanttofly014在08-13-2007 03:02 AM时编辑过了


Flying...
www.vihome.com.cn 虚拟仪器家园
0 Kudos
Message 1 of 4
(5,663 Views)
You just need to read/write to the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-VISA for Windows 95/NT\CurrentVersion\IoLibraries\NiVisaTulip.dll
There is a "LibraryEnabled" entry that can be modified programatically.
 
 
Message 2 of 4
(5,654 Views)

It works!!!

cymrieg,Thank you very much! You just solved such a big problem of mine!

but I still want to know whether the *.nce file contain any Passports information?

and what about the  "visaaconf.ini" ? Consider that I only use serial port and VISA in my application, What about I copy the "visaaconf.ini" from develop machine to the target machine?Is that the same as I import a  *.nce file contains all setting information from develop machine?

If the same,can I just install NI-VISA without install the MAX on the target machine,because target machine don not need MAX anymore.well,sounds naive...

Thanks again!


Flying...
www.vihome.com.cn 虚拟仪器家园
0 Kudos
Message 3 of 4
(5,647 Views)
One more question:why NI not check NiVisaTulip.dll by default when install NI-VISA ? Is there any disadvantage if check it by default?

帖子被iwanttofly014在08-13-2007 10:32 AM时编辑过了


Flying...
www.vihome.com.cn 虚拟仪器家园
0 Kudos
Message 4 of 4
(5,647 Views)