LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to trim and linearize nonlinear models

Solved!
Go to solution

Hi.

When I learned the Control Design and Simulation Module following the tutorial Getting Started with simulation,I met the trouble like this:

when I trm/linearize nonliner subsystem,there is an error:

QQ截图20160310224731.png

Is there anybody who can help me and explain the reason of the trouble.

thanks.

0 Kudos
Message 1 of 7
(3,979 Views)

Most likely the reference to the subsystem you are provinding is not correct.

 

Also, if you could upload your code, this would help us to evaluate what could be wrong.

 

One last thing: it would help if you could translate the message below to English... 

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 7
(3,930 Views)

I think the English version of the error is like that,

error 91.png

 

The error seems happen if we don't save the subsystem but choose it "From memory" in Linearize Subsystem UI. Please see the following sanpshot, I didn't save the Subsystem 2, then this error occurred.

unsaved subsystem.png

 

The workaround is to save the subsystem before doing Trim or Linearize.

 

But this issue might be a bug. Alex, what do you think? 

 

 

0 Kudos
Message 3 of 7
(3,904 Views)

Thanks for your replying.

It's my carelessness to forget to upload my code,the .zip file below is my code written by LabVIEW 2012,simplified Chinese.

and the message translated to english like this:

original.png

0 Kudos
Message 4 of 7
(3,866 Views)

Thank you,Haier.

But when I operated with your guidance,It had the same error appeared above.

 

I think maybe the error has something with my OS and the version of my LabVIEW.

My OS is Windows 10, 64 bit;

While my LabVIEW 2012,simplified Chinese,32 bit.

Is there any problems about this?

0 Kudos
Message 5 of 7
(3,858 Views)
Solution
Accepted by topic author 颜扎牧之

You code works well with LabVIEW 2014 32-bit English/Win 7 64 bit. I'm setting up a similar enviorment as you mentioned to see if reproducible.

0 Kudos
Message 6 of 7
(3,828 Views)

Maybe It's the problem on OS.

Thanks again.

0 Kudos
Message 7 of 7
(3,763 Views)