I think you can just do the following:
1) Talk to the instruments that have the common setup
2) Perform an Execute Close on the serial port using Direct I/O
3) Talk to the instruments with the other setup
4) Perform another execute close.
I have done this when I used a common serial port with two programs and needed to release the port.
From: Shawn Fessenden [mailto:email@example.com]
Sent: Tuesday, March 28, 2006 2:11 PM
Subject: RE: [vrf] Communications changes
Define two serial instruments, one with no parity and one with even parity. Try communicating with one. Feed an error pin to a close transaction and then try the other. You can do the same thing by varying the parameters dynamically, but the port has to be closed when you change parameters.
To subscribe please send an email to: "firstname.lastname@example.org" with the word subscribe in the message body.
To unsubscribe send a blank email to "email@example.com".
To send messages to this mailing list, email "firstname.lastname@example.org".
If you need help with the mailing list send a message to "email@example.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".