Emotiv.EdkDll.IS_GetContactQualityFromAllChannels C# (CSharp) Method

IS_GetContactQualityFromAllChannels() public static method

public static IS_GetContactQualityFromAllChannels ( IntPtr state, IEE_EEG_ContactQuality_t &contactQuality ) : Int32
state System.IntPtr
contactQuality IEE_EEG_ContactQuality_t
return System.Int32
        public static Int32 IS_GetContactQualityFromAllChannels(IntPtr state, out IEE_EEG_ContactQuality_t[] contactQuality)
        {
            Int32 numChannels = EdkDll.IS_GetNumContactQualityChannels(state);
            contactQuality = new IEE_EEG_ContactQuality_t[numChannels];
            return Unmanaged_IS_GetContactQualityFromAllChannels(state, contactQuality, (UInt32)contactQuality.Length);
        }

Usage Example

コード例 #1
0
 /// <summary>
 /// Query the contact quality of all the electrodes in one single call
 /// </summary>
 /// <remarks>
 /// The contact quality will be stored in the array, contactQuality, passed to the function.
 /// The value stored in contactQuality[0] is identical to the result returned by
 /// IS_GetContactQuality(state, 0)
 /// The value stored in contactQuality[1] is identical to the result returned by
 /// IS_GetContactQuality(state, 1). etc.
 /// The ordering of the array is consistent with the ordering of the logical input
 /// channels in IEE_InputChannels_enum.
 /// </remarks>
 /// <returns>Number of signal quality values copied to the contactQuality array.</returns>
 public EdkDll.IEE_EEG_ContactQuality_t[] GetContactQualityFromAllChannels()
 {
     EdkDll.IEE_EEG_ContactQuality_t[] contactQuality;
     EdkDll.IS_GetContactQualityFromAllChannels(hEmoState, out contactQuality);
     return(contactQuality);
 }
EdkDll