03-24-2011 03:40 PM
I'm having an issue with LabVIEW crashing when opening or running a VI that has a VISA resource constant on the block diagram. Once this problem occurs, even rebooting the OS does not fix the problem. It is not until I reinstall the VISA drivers that the problem is fixed, although the fix is only short-term. I've isolated the problem to where I can open up a new VI, drop a VISA resource constant on the block diagram, and crash LabVIEW.
I am using a USB hub as well as USB-to-serial devices.
Here's what I'm running:
LV 7.1.1
Win XP SP3
NI-VISA 4.5
03-25-2011 05:32 PM
Have you tried this?
The problem with LabVIEW freezing is probably due to network problems and perhaps some firewall issues. This is a known issue and a workaround to get a working solution is to use a string constant or control instead of a VISA resource name constant or control.
The resource name should adhere to the following format: GPIBx::y::INSTR, where x is the GPIB Interface Number, and y is the Primary Address.
You should then be able to perform basic VISA write and read functions, as well as other functions such as the lock asynchronous and unlock.