Commits

Richard Gerkin committed e8c10bc

Fixed Sweep0 bug with No DAQ

  • Participants
  • Parent commits cedf758

Comments (0)

Files changed (1)

Acquisition/No DAQ Wrappers.ipf

 	lastDAQSweepT=StopMSTimer(-2)
 	
 	nvar /sdfr=$noDAQ_path t_init,t_update
+	variable first_sweep = t_update==0
 	variable then = (t_update - t_init)/1e6
 	variable now = (lastDAQSweepT - t_init)/1e6
 	variable elapsed = now - then
 	
 	//printf "Waiting executed once...\r"
 	t_update = now*1e6 + t_init
-	CollectSweep(DAQ)
+	if(!first_sweep)
+		CollectSweep(DAQ)
+	endif
 	return 0
 end