What did you expect to happen? You have a case structure as the outermost structure on your BD with the tab as the selector! You only read the tab once and execute only 1 case dependant on which tab is selected when you press run.
Try initializing both VISA sessions and chose which one to communicate with based
on the val change event of the tab
"Should be" isn't "Is" -Jay