Thanks for your help,
what i meant by switching back to local mode, was when i tried to take the SMT out of remote mode and into local control,as in use the SMT's actual physical controls, it would not respond, normally if i push the local button it would instantly switch back to local mode and i would be able to change settings from the SMT itself, and not use the GPIB bus or Labview.
From using MAX i discovered that the device only froze if the command to leave sweep mode came from within a while loop, i made some changes to the code and it is working fine now.
I'm still not sure what exactly was happening with the SMT. The GPIB bus didn't seem to be the problem because after the SMT locked i queried my spectrum Analyzer and got a response, which w
ould leave me to believe that the problem is something within the SMT itself.
Again, thanks for your help