Vector output from TRND?



  • Hi, is it possible to obtain the entire vector of values from TRND? I'd like to perform Moving horizon estimation (MHE) algorithm which uses a history of past measurements over some period of time. It is like receeding horizon - each sampling period the data consisiting of N last samples will be used for further processing by REXLANG or PYTHON blocks. First I thought of setting of ptype parameter of TRND to turn its output into vector form but it seems that none of the options match my needs.



  • I realized that shift register could solve this. For lower number of samples, one or more SHIFTOCT blocks may be used. I will try storing data to buffer via REXLANG for higher number of samples.



  • Or, possibly N DEL blocks may also do the job.


Log in to reply