You're calling initialize every time. If you look inside this VI, you'll see that if you don't choose reset, the command SYST:PRES is issued which will preset the instrument to a known configuration. You do not want to call initialize every time. It is enough to call it at the very beginning of your program and then just call HP34970A Switch.vi by itself whenever you want to open and close a relay.