hi Chew
               similar type of data acquisition i did, where i used E4401B Spectrum Analayser.... i gone through ur code.. i want  to give some tips for u.
1. i want to know about ur application , you are doing continous observation using this.
2. before going for a continous observation plz set the parameters which you are not going to change in the middle of the observation.
 so set a intilisation loop 
4.single sweep mode :  spectrum sweeps the band of frequncy and then only return back to first frequency again . for example your sweep time 1 sec . so st.freq is 50 MHz and stop.freq is 2 GHz .and sweeped data has to be transfered to the p.c   so sweep time 1 sec + Delta time to transfer the data to the p.c... so second sweep takes place after 1 sec and some milisec. so make sure that data transfer is very fast only in binnay mode of transfer. 
3. any how ur displaying in the p.c monitor plz turn off the spectrum analyzer screen it improves data acquisition speed. 
make sure that the above points u did in your data acquisition ..
Regards
Indrajit barve 
					
				
			
			
				
	------------------------------------------------------------------------------------------------------------------
Indrajit 
| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .