LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing property node of a PXI VISA resource causes LabVIEW to hang

I wrote a nice little program that looks for PXI VISA resources, determines if it is a PXI-2503, and gets it's slot #, which works but each time thru the for-loop, LabVIEW hangs, uses 3-10 MBytes of RAM, then continues. Even if the code run's in the background (and finishes), clicking on the LabVIEW panel causes the hang/RAM cycle again.

In debugging the problem, I simplified the code (bug.vi) where it only hangs when the code is finished.
Download All
0 Kudos
Message 1 of 4
(2,888 Views)
Problem solved.

Some driver must of been corrupted since a complete rebuild of the PC (OS, apps, LV, drivers) fixed the problem. I did try uninstalling all NI software, and re-installing prior to the rebuild, but I was unsuccessful
Message 2 of 4
(2,888 Views)
I jumped the gun on this one...ran wrong version of code.

Problem remains 😞
0 Kudos
Message 3 of 4
(2,888 Views)
Sorry to hear that.

First I think you are looking at two different issues in your two examples.

In your simplified example you are repeatedly opening and closing VISA sessions in a loop. This not a bug (I believe). LV will allocate resources when you do your open that are not free'd up until LV exits. This has been an established behaviour since LV 6.1 (or may earler). When LV exists, these resource will be returned to the OS.

In the first example you provided, you may indeed have found a bug! I would recomend that you frist ensure that you have the latest and greatest version of VISA loaded. If this does not correct the problem, you should contact NI support directly to report this issue.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,888 Views)