T-MATS: Jacobian Calculator Library Block
The Jacobian Calculator block calculates the Jabobian of the system by perturbing the system around an initial point and calculating the gradient for each perturbation. This module will run once on start up and then again only if the reset is pressed and can operate with m inputs, where m is the number of independents in the system.

Jacobian Calculator Inputs:
Jacobian Calculator InputDescription
ResetResets the Jacobian Calculator causing it to Re-run (bool),
the calcuator will reset on a transition from 0 to 1.
f(x_p)Output of perturbed system (mx1)
XoInitial point the Jacobian Calculator will perturb around (mx1)

Jacobian Calculator Outputs:
Jacobian Calculator OutputDescription
InvFaultJacobian inversion fault (0 - no fault, 1 - fault)
JJacobian output (mxm)
x_pPurturbed input to system(mx1)
IterationNumber of times this module has run while attempting to find the Jacobian(1x1)
Active0 - Jacobian Calculator is not actively running
1- Jacobian Calculator is actively running
inv(J)1/J (mxm)

Jacobian Calculator Mask Variables:
Jacobian Calculator Mask VariableDescription
N_Per_MPerturbation sizes (mx1)