Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA version independence in vb.net 2010

Hello I have a vb.net 2010 application that references the NI VISA dll. This application only works on other computers if they are running the same version of NI  VISA.

 

How do I compile the vb.net application to make it work with any version of NI VISA installed on a client computer?

 

Thanks,

Markus

0 Kudos
Message 1 of 3
(4,255 Views)

Hello Markus,

 

In this case, your best bet would be to include with your executable a config file (appname.exe would have appname.exe.config) that includes binding redirect information for VISA versions. 

 

Where it refers to the VISA assembly in your config file you would include a line as follows:

 

<bindingRedirect
oldVersion="old assembly version"
newVersion="new assembly version"/>  

 

The following documentation discusses this:

http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx#bkmk_redirectingassemblyversionsatth...

 

 

Ian M.
National Instruments
0 Kudos
Message 2 of 3
(4,238 Views)

Can you send me this example?

z-jzhao@163.com

0 Kudos
Message 3 of 3
(1,982 Views)