08-09-2005 06:44 PM
08-10-2005 12:48 AM - edited 08-10-2005 12:48 AM
Message Edited by LuI on 08-10-2005 07:49 AM
08-10-2005 06:49 PM
Thanks Uwe,
I have implemented your suggestion, and it works well.
I sort of figured I would have to do something like this, but I was hoping there was a way that VISA could do it for me.
Mark.
02-15-2011 02:34 AM
Hi,
I have the same request and it looks strange that we can't access to this property because the (serial) "Visa resource name" control present a dedicated pictogram near each serial port already openned in the selectionnable list.
In LabVIEW 2010, is there a way to obtain this VISA property ?
Thanks for your help
Emmanuel
02-15-2011 06:26 PM
I believe that you can achieve what you want using the options available on VISA Open. You should set Duplicate Session to true, and Access Mode to Exclusive Lock, on every call to VISA Open in your application. With these settings, the second call to VISA Open will fail with an error.
This will prevent the VISA Open from using the cached handle to the serial port. Of course for this to work properly, you will have to always explicitly Open and Close your serial ports, rather than relying on LabVIEW to automatically open them as needed.
-Jason S.