I'm trying use lock system to communicate with serial port using two session:
I have two sequence "Open -
Read - Close" and I wish that they access to serial port in mutual
exclusive mode.
I set each VISA Open block with Duplicate_session=
True and access_mode=exclusive_lock, I create a resource name constant
and configure it with a Serial Setting block.
The output of Serial Setting block is the input for two VISA Open block.
But in this experiment I note that if the Close
block of first sequence is executed, all sessions are closed and other
sequences can't read from serial bus because the session of second
sequence is closed by Close block of first sequence.
In this case my questions are: Can using Serial Setting block before the two VISA Open blocks generate any problem in this case? Does Close block close only session of resource name that use as input or
close also other duplicate sessions?