Beispiel #1
0
        public override uint Acquire(int[] data, int TrackCenter, int TrackHeight)
        {
            uint ret;
            uint npx = (uint)data.Length;

            sdk.SetReadMode(ReadModeSingleTrack); //single-track ReadMode
            ret = sdk.SetSingleTrack(TrackCenter, TrackHeight);
            if (ret != AndorSDK.DRV_SUCCESS)
            {
                return(ret);
            }
            sdk.StartAcquisition();
            sdk.WaitForAcquisition();
            ret = sdk.GetAcquiredData(data, npx);
            if (ret != AndorSDK.DRV_SUCCESS)
            {
                return(ret);
            }
            return(ret);
        }