09-11-2008 07:49 PM
I am not having luck opening a com port with the exclusive lock selected in visa. I am trying to prevent multiple instances of my labview code from accessing the same com port. I selected exclusive lock when opening the com port visa session then leave thje session open for use in the first application, then I open the same com resource from a second labview session expecting to not be able to open communication since the resource was susposed to be exclusivly locked, but the open visa returns with no errors. How do I get the exclusive lock to work. Did I miss something? Using LV 8.5.1 and the latest visa and Max.
09-12-2008 12:11 PM
01-18-2013 08:39 AM
I did not really find a good example in the help file.
Attached you can find two identical vi's (LV2011), I can run them simultanously without getting an error... What did I do wrong?
01-18-2013 09:49 AM
Didn't you look at the example that comes with LabVIEW (Locking.vi)? Set the Duplicate Session input to True and see if you get an error.
01-18-2013 02:46 PM
duplicate session = TRUE , works fine!
Thanks!