Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Find Resource Very Slow

Hello there,

 

If I drop the VISA Find Resource VI onto the block diagram, it takes about 30 seconds to execute and locks out LabVIEW whilst it is running.  The strange thing is I've used this block for years and it always used to execute very quickly.  Has anybody else seen this or have any ideas of the cause please?

Once it finally executes it does return the correct list - it is working, its just unbelievably slow.

 

Thank you for any help,

 

Martin

0 Kudos
Message 1 of 7
(5,107 Views)

Hi Martin,

 

This problem is bothers me for years now. Sometimes I don't even notice it anymore.

I think it has to do with VISA resources present in MAX that are disconnected. (I have a lot of those resources.)

Maybe if you remove these disconnected devices the refresh of the list will speed-up.

 

Kees

0 Kudos
Message 2 of 7
(5,087 Views)

Hi Martin,

 

Has Kees suggestion improved this? If not, below are a couple of points which may be worth checking:

-Do you have the latest version of NI-VISA?

-What version of LabVIEW are you running?

-You could also try deleting visaconf.ini which is located in C:\ProgramData\National Instruments\NIvisa. Following this, open MAX and a new file will be generated.

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist
Message 3 of 7
(5,046 Views)

Hi Chris,

 

Do you know if the time-out for not connected VISA devices can be changed ?

I don't want to wait but I also don't want to delete the resources that I use sometimes. I know I can edit the ini file and change the VISA entries but a smaller time-out would help me more.

 

Kees

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

Hi Kees,

 

Unfortunately, I'm not aware of the ability to change the time-out for anything but individual VISA sessions.

 

If this is something you would like to see implemented, you can post this in the NI Ideas Exchange.

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist
0 Kudos
Message 5 of 7
(5,025 Views)

Hi Chris,

 

Thank you for your answer. I will think about posting an idea.

 

Kees

0 Kudos
Message 6 of 7
(5,007 Views)

I just had this same problem on my Win7 desktop computer. It was the same on LV2012 or LV2013. The suggestion to delete the visaconf.ini file totally worked! Thanks for that suggestion Chris.

 

 - Also, you can use the TOOLS - RESET CONFIGURATION DATA in NI-MAX.

 

Dave

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