LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MAX 4.5.0 Loses VISA Resource

Solved!
Go to solution

I couldn't find a board to post to for Measurement and Automation Explorer, so if there is a better spot to post this question let me know...

 

I am controlling a power supply through VISA.  I have created a new VISA resource, assigned an alias and saved.  When I shut MAX (version 4.5.0f0) down everything is fine with this resource, but when I restart my computer it is lost.  I didn't have this issue with the previous version of MAX, just wondering if this is a bug or if somewhere along the way I changed my procedure.

0 Kudos
Message 1 of 10
(3,931 Views)

What is the version of NI-VISA that is installed on the system? What type of resource are you creating?


 

0 Kudos
Message 2 of 10
(3,926 Views)

I'm using version 4.4.  I'm not understanding the "type of resource" question...I create the resource under "Devices and Interfaces" as a new VISA TCP/IP Resource.  I'm trying to communicate with a Sorensen power supply, didn't have issues before but maybe this isn't supported with VISA 4.4?

0 Kudos
Message 3 of 10
(3,919 Views)
OK, then, could you create the resource once again, and send me what you have under the section [TCPIP-RSRCS] in your visaconf.ini (most likely located at "C:\Documents and Settings\All Users\Application Data\National Instruments\NIvisa\visaconf.ini") ?
Message Edited by pankaj on 11-12-2008 09:01 AM
0 Kudos
Message 4 of 10
(3,915 Views)
Here you go...
0 Kudos
Message 5 of 10
(3,905 Views)

Could you give me the versions of the following components of your machine:

a) C:\Program Files\National Instruments\max\Experts\niVISAe.mxe

b) C:\Program Files\IVI Foundation\VISA\WinNT\NIvisa\niLxiDiscovery.exe

    - This second one could also be in the folder "C:\VXIPNP\WinNT\NIvisa"

 

0 Kudos
Message 6 of 10
(3,892 Views)

niVISAe.mxe is 4.3.0f0

NILxiDiscovery.exe is 4.4.0f0

0 Kudos
Message 7 of 10
(3,863 Views)
Solution

So, it looks like you had full VISA 4.3 installed on your machine, and upgraded just the VISA 4.4 runtime. What you are seeing is a bug introduced by a small incompatibilty between the niLxiDiscovery.exe component (installed by NI-VISA  4.4 runtime) and the niVISAe.mxe (v4.3). At this point you have two options:

 

1) Add an entry of the Static0 = 1 in the [TCPIP-RSRCS] section in your visaconf.ini. I have made that change in the file you attached and attached below. Basically, for each resource you manually add, if its name in visaconf.ini is nameX, then in that section you will need an entry StaticX = 1, where X is the entry number.

2) Upgrade to the full version of the latest NI-VISA (v 4.4.1) which should automatically have that entry for all the manually created TCPIP resources.

 

Let me know if you have any other questions or if neither of these steps solve your problem.

 

Pankaj

Message 8 of 10
(3,852 Views)

I found this link and added the "Static0 = 1" line to the visaconf.ini file just about 10 minutes before you replied...

 

http://digital.ni.com/public.nsf/allkb/04833653AA9B2CF0862574EB0010D843

 

It seemed to have fixed the issue.  I was wondering if I would have to do this for each VISA resource...I'll make sure to update to the full version.

 

Thank you very much, Pankaj, I appreciate the help!

0 Kudos
Message 9 of 10
(3,846 Views)
If you upgrade to VISA 4.4.1 full version, you won't need to do this again. If you want to continue to use the S/W currently installed, then yes, unfortunately, you will have to do this for each new TCPIP resource you manually add.
0 Kudos
Message 10 of 10
(3,840 Views)