public void Sweep(Object source, ElapsedEventArgs e) { Console.WriteLine("SWEEP"); AgSalLib.salGetSensorTime(sensorHandle, out timestamp); AgSalLib.salGetSensorLocation(sensorHandle, out location); if (!firstRow) { tempRow.Add(timestamp.ToString()); tempRow.Add(location.latitude.ToString()); tempRow.Add(location.longitude.ToString()); tempRow.Add(extTime); tempRow.Add(extLat); tempRow.Add(extLon); } spin.Turn(rowCounter, timestamp.ToString(), location.latitude.ToString(), location.longitude.ToString()); AgSalLib.SalError sweepError = AgSalLib.salStartSweep2( out measurementHandle, sensorHandle, ref sweepParams, ref pSegmentTable, ref flowControl, segmentCallback ); getStatus(); }