Thanks for the help so far everyone! I have this VI almost working. It does 'almost' what i want. It switches within program but not quite how i want. It does it on a time basis and i dont want this.
My current system works by pressing a button on my testing kit and recording the result. Within the singlemode loop i then need it to switch to the return loss loop. Press a button and record return loss. I only want it to switch once the test has been completed. Not on a timely basis.as it is at the moment (loop1 loop0 loop1 loop0). I also am trying to send a string out (write buffer) to the serial port so it automatically switches over from IL to RL and then back again. The issue i have is i send that to the write buffer(REL1550 & RET11550) on the serial line but it keeps showing up within my read buffer and is not switching over my kit.
Please help!
I hope this makes some sense!