National Instruments 370760B-01 Calculator User Manual


 
340 Chapter 6. Function Reference
Description
Time domain simulation of a sampled data interconnection. The applicable closed loop
system is illustrated below.
Sys
dSys
-
vw
y
u
This is conceptually the equivalent of:
v = starp(Sys, dSys)w.
This function will handle interconnections in which the continuous time signals are not
necessarily synchronized with the digital system. Computation delays which are a
fraction of the sample period may also be simulated. The following equations represent
the discrete system,
z(kT + T)=A
d
z(kT)+B
d
y(kT)
u(kT + cdelay)=C
d
z(kT)+D
d
y(kT)
For delays of greater than a sample period append additional states to dSys to model the
integer sample period part of the delay. Use cdelay to model the fractional remainder.
The actual calculation is performed with a fast discrete time equivalent. Intstep is the
fast integration step size. The input vector, w will be interpolated to the same step size.
Either a zero or first order interpolation is used, depending on the keyword ord. If ord =
0 a zero-order hold equivalent is used for the continuous plant. In the ord = 1 case a