LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Basics

 

 

 

 

 

 

 

 

 

0 Kudos
Message 11 of 13
(721 Views)

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!

check.png

(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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 13
(720 Views)

Hi again ..

the idea is to design sub vi to impliment a nonlinear observer as shown bellow 

Non Obs.PNG

X1dot hat: x3 dot hat are the differential states. So the states would be integration  of these differential states .. 

int.PNG

initially the states set to initial condition of [ 0.006 0 0.86] and then would be fed by previous states ..

 

kind regards 

 

0 Kudos
Message 13 of 13
(696 Views)