LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

having problem in math script node while using feedback node??

hi

all

in my attached file the my .vi file (iam using labview 2009)

the problem is of x_u?

 

(Error in function x_u at line 45:  The indexes are out of bounds for the variable you specified.)

 

basicly iam trying to get x_u through feedback node which is coming from output node x_ukp1 of my mathscript file.

 

is feedback node need any intialization of size or any thing else it needs??

 

my program is related to discrete sttaes

 

any one could help regarding that my problem?

thanks

tc

 

0 Kudos
Message 1 of 6
(4,060 Views)

(You might get better help in the Mathscript forum.)

 

Sorry, I don't have your toolkit and loading your VI in LabVIEW 2010 crashed hard to the desktop. (It opens in 2009, though).

0 Kudos
Message 2 of 6
(4,051 Views)

thnaks

Knight of NI
it goes directly to mathscript forum as well
yeh iam using labview 2009?
0 Kudos
Message 3 of 6
(4,047 Views)

Hey tc,

 

Inside the Control and Simulation Loop, we advise people to use the "Memory" function to allow a feedback loop. This is inside the "Simulation>>Utilities" palette.

 

We also filed a CAR number 247859 related to the problem reported by this thread.

 

 

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 4 of 6
(4,001 Views)

tc,

 

One more thing. It looks like you are trying to do an adaptive control systems inside mathscript. Then, you probably want the feedback node to have some sampling time related to it. The Memory block can be configured to have a discrete sampling time that you can change it accordingly.

 

Also, you have to initialize the vector accordinly with the right size.

 

Hope this helps

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 5 of 6
(3,999 Views)

thanks

 barp i will try then will tell u tc

 

0 Kudos
Message 6 of 6
(3,959 Views)