07-28-2005 04:28 PM
07-28-2005 04:52 PM
07-28-2005 08:47 PM
07-28-2005 10:08 PM
07-29-2005 10:26 AM
05-06-2008 10:15 AM
Will, tbob, and Dennis, I saw this conversation from about 3 years ago. I'm currently working with VISA Locks and Unlocks to control calls to two devices on a GPIB. It's the first time we've implemented the Locks and Unlocks in a program and we still get conflicts which come up with general statements such as "lock can not be found", or "device already locked".
Our code consists of a VISA Open, a VISA Lock, a call to the instrument, a VISA Unlock, and finally a VISA Close each time either device is used. This code is executed from different While loops which are all running concurrently. Have I been too naive to think that any and all conflicts will be handled by the Lock and Unlock functions? Any tricks of the trade to using the Lock and Unlock.
Any suggestions would be greatly appreciated.
Nick
05-06-2008 05:27 PM