01-18-2017 11:08 AM
I didn't beleive it .. it is my first time to ask question in this lovely community and you are all helpful .. so first thanks all
Hi crossrulz ..
this is what I'm tryimg to do...
I think it is working right when I tried to use highlight execution ..
kind regards
01-18-2017 11:12 AM - edited 01-18-2017 11:15 AM
Hi Benomair,
in Matlab I used this code to do so
persistent X_hat;
if isempty(X_hat)
X_hat=[0.018 0 0.894]';
You should learn the LabVIEW basics!
(You might initialize the feedback node in the first place so there would be no need for testing on empty array!)
But even your code snippet doesn't make sense (to me): why check for empty array in the first place when you want to initialize that variable anyway? (In LabVIEW you would either wire the array constant directly with the array indicator - or set the needed data as default…)
Edit after seeing your bigger image:
- Please use autocleanup to straighten all those wires!
- Please show the full picture: where is "X_hat_in[]" coming from?
- Please attach VIs or snippets instead of plain images: we cannot debug images with LabVIEW!
- Still don't know why you need a loop for your Reset feature…
01-19-2017 04:18 AM
Hi again ..
the idea is to design sub vi to impliment a nonlinear observer as shown bellow
X1dot hat: x3 dot hat are the differential states. So the states would be integration of these differential states ..
initially the states set to initial condition of [ 0.006 0 0.86] and then would be fed by previous states ..
kind regards