/// <summary> /// エンコーダ値を取得する. /// </summary> /// <param name="count"> /// エンコーダ値を保存する配列の参照 /// </param> public void GetEncoderCount(ref int[] count) { if (spidar != null) { spidar.GetEncoderCount(ref count); } }
/// <summary> /// エンコーダ値を取得する. /// </summary> /// <param name="count"> /// エンコーダ値 /// </param> public void GetEncoderCount(ref int[] count) { Spidar.GetEncoderCount(this.SerialNumber, this.count); int max = count.Length > 8 ? 8 : count.Length; for (int i = 0; i < max; ++i) { count[i] = this.count[i]; } }