dsp.c
usr_dsp.c (Handwritten UCB using sa_user
© National Instruments Corporation
Generate AutoCode Application
.
c example)
Figure 2-2. Linking Handwritten UCBs with AutoCode Applications
2-15
Chapter 2
C Language Reference
File Name: usr_dsp.c
y (k) = -1/2*y(k-2) + 3* u(k) + u(k-2);
which leads to the State-Space realization:
x1(k+1) = x2(k)
x2(k+1) = -1/2* x1(k) - 1/ 2*u(k)
y(k) = x1(k) + 3*u (k)
compile
and link
AutoCode Reference
Need help?
Do you have a question about the AutoCode NI MATRIX and is the answer not in the manual?
Questions and answers