Skip to main content
. 2020 Nov 6;20(21):6346. doi: 10.3390/s20216346
Algorithm 1 Interface with MEMS device
1: Input N, θ
2: Input Vb
3: Input Ts= θ/100
4: Generate w = rand[N,1]
5: Perform thresholding on w to change to binary mask
6: for i = 1,2,...,T do
7: for j = 1,2,...,θ do
8: Generate and Maintain J = w[j]∗Vbusing data acquisition system
9: for k = 1,2,...,100 do
10:     Acquire MEMS velocity x˙ from vibrometer
11:     Acquire shaker velocity y˙ from shaker controller
12:    Store x˙ into array x˙Array
13:    Store y˙ into array y˙Array
14:    Wait Ts
15:   end for
16:  end for
17: end for