Beispiel #1
0
        public virtual SamplingModes samplingModes()
        {
            SamplingModes ret = new SamplingModes(msclPINVOKE.NodeFeatures_samplingModes(swigCPtr), true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #2
0
        public static SamplingModes Repeat(WirelessTypes.SamplingMode value, int count)
        {
            global::System.IntPtr cPtr = msclPINVOKE.SamplingModes_Repeat((int)value, count);
            SamplingModes         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SamplingModes(cPtr, true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #3
0
        public SamplingModes GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = msclPINVOKE.SamplingModes_GetRange(swigCPtr, index, count);
            SamplingModes         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SamplingModes(cPtr, true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        /// <summary>
        /// Creates an initializes a DataGrabber object.
        /// </summary>
        /// <param name="Controller">A controller for the device being sampled</param>
        /// <param name="SamplingRate">The rate at which to sample (in samples/second)</param>
        /// <param name="SamplingChannels">The number of channels to sample</param>
        /// <param name="SamplingTime">The total time to sample (in milliseconds)</param>
        /// <param name="SamplingMode">The sampling mode</param>
        /// <param name="SamplingCompression">'true' if compression is to be used</param>
        public DataGrabber(AbstractController Controller, int SamplingRate, int SamplingChannels, int SamplingTime, SamplingModes SamplingMode, bool SamplingCompression)
        {
            if (Controller == null)
                throw new Exception("DataGrabber: Invalid controller");

            this.Controller = Controller;
            this.SamplingRate = SamplingRate;
            this.SamplingChannels = SamplingChannels;
            this.SamplingMode = SamplingMode;
            this.SamplingTime = SamplingTime;
            this.SamplingCompression = SamplingCompression;
            this.Data = new List<byte>();

            Controller.OnDataReceived += new EventHandler<ControllerEventArgs>(Controller_OnDataReceived);
            Controller.OnError += new EventHandler<ControllerEventArgs>(Controller_OnError);
        }
Beispiel #5
0
 public SamplingModes(SamplingModes other) : this(msclPINVOKE.new_SamplingModes__SWIG_1(SamplingModes.getCPtr(other)), true)
 {
     if (msclPINVOKE.SWIGPendingException.Pending)
     {
         throw msclPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SamplingModes obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #7
0
        /// <summary>
        /// Creates an initializes a DataGrabber object.
        /// </summary>
        /// <param name="Controller">A controller for the device being sampled</param>
        /// <param name="SamplingRate">The rate at which to sample (in samples/second)</param>
        /// <param name="SamplingChannels">The number of channels to sample</param>
        /// <param name="SamplingTime">The total time to sample (in milliseconds)</param>
        /// <param name="SamplingMode">The sampling mode</param>
        /// <param name="SamplingCompression">'true' if compression is to be used</param>
        public DataGrabber(AbstractController Controller, int SamplingRate, int SamplingChannels, int SamplingTime, SamplingModes SamplingMode, bool SamplingCompression)
        {
            if (Controller == null)
            {
                throw new Exception("DataGrabber: Invalid controller");
            }

            this.Controller          = Controller;
            this.SamplingRate        = SamplingRate;
            this.SamplingChannels    = SamplingChannels;
            this.SamplingMode        = SamplingMode;
            this.SamplingTime        = SamplingTime;
            this.SamplingCompression = SamplingCompression;
            this.Data = new List <byte>();

            Controller.OnDataReceived += new EventHandler <ControllerEventArgs>(Controller_OnDataReceived);
            Controller.OnError        += new EventHandler <ControllerEventArgs>(Controller_OnError);
        }