08-23-2007 05:26 PM
08-27-2007 12:58 PM
Hi,
When using the ViClose(), are you closing the instrument session or the VISA session? I have attached an image that illustrates how to open a session using C source code. At the end of the code there are two resources that are closed, the instrument and the defaultRM. I think what might be happening is the defaultRM is being closed and not the instrument. If the defaultRM is being closed you will not be able to open a new instrument session before reinitializing your device.
I searched several resources to find a way you could reconnect to your USB device using the OS but unfortunately I could not find a way to accomplish it.
Regards,
08-28-2007 12:04 PM
08-29-2007 07:52 AM
Hi,
Here are 3 things to try after the device becomes un-responsive that might help regain device functionality without having to reboot the machine.
NOTE: most of these commands require root permissions, so either run them as root, or use sudo to run with root permission.
A. Try to un-mount and then re-mount the USB device:
From the console / terminal:
unmount <mount point>
mount <mount point>
B. Restart the userspace device system:
Run the following command from the console / terminal:
/etc/init.d/udev restart
C. Unload and reload the USB drivers:
1. Use the "lsmod" command to locate the usb drivers
2. Use the rmmod command to unload the drivers.
For example:
rmmod usb-storage
rmmod usb-ohci
rmmod usbstorage
3. Then use the modprobe command to reload all the modules:
modprobe usb-storage
10-24-2007 03:54 PM
10-25-2007 08:58 PM
10-28-2007 05:42 PM
10-29-2007 05:21 PM