Download ...
Home ]

 

Home

Home-Made Matlab Functions (30 days Evaluation)

Matlab 5.2 (pcode)

[Auto-tuning] [DSP] [Modelling] [Least Squares]

PID Auto-tuning:
Identification from a step test:
stp_iden.p     Identify a 1st order + delay (s-domain) model from a step test. Work for monotonic stable processes. Suitable for off-line tuning. To demonstrate the usage,  test_stp_iden_func.m and step_sys.mdl are included. The method of this function has been successfully applied in a number of processes world-wide.
PID/PI Tuning functions:
pid_tune2.p   PI tuning function based on a 1st order + delay model, gain & phase margin.
pid_tune3.p   PI tuning function based on a 1st order + delay model.
 
For DSP -- decimal <-> hex
fract2hex.p      Convert a decimal fraction (can  be positive or negative)   to a hex number in 16Qx format (x-bit is fraction part, complimentary).
hex2fract.p      Convert a hex number in 16Qx format (x-bit is fraction part, complimentary) to a decimal fraction. 
dec2hexbq.p     Convert a decimal  [-32768, 32767] to a hex number (xxxxH, 2 compliment). 
hex2decbq.p     Convert a hex number (xxxxH, 2 compliment)   to a decimal [-32768, 32767]. 
 
For Modelling--frequency response to transfer function.
freq2tfw.p      Convert frequency responses to transfer function (s-domain) with weighting on frequencies
freq2tfzw.p    Convert frequency responses to transfer function (z-domain) with weighting on frequencies
 
For Least Squares Computation
w_nnls.p          non-negative least squares solver with weighting.
prt_nnls.p        Partial non-negative least squares solver
 
 
More are coming, check frequently .....