LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a state observer for feedback control?

Hi there!

I need to control the position of an hydraulic cylinder. I already have my control function but I need a state observer to feedback position, velocity and acceleration.
I tried to implement it in LabVIEW with integrators (Integrator.vi) from Continuous Linear tab, but seems that the default integration method (Euler method) doesn't have the required precision. I had the same problem using the State-Space.vi from the same tab.
Need I to build my integration algorithm or LabVIEW already has a specific module for that?
Is there any easy way to implement a state observer in LabVIEW? (I'm noob with LabVIEW)
My real time control application has to run in a NI PXI-8187 controller.
Thanks in advance.

Diego Sá
0 Kudos
Message 1 of 11
(11,741 Views)
hi

where have u found the Interation.vi and the State.vi  -- cant find it in my labview 8.0 version.
do u use an addon as the Realtime -Toolbox?

by my knowledge their is no such think like a observer.vi in Labview -- so u are on ur own Smiley Wink.

Can u post ur state-model? are u using the s-pane or the z-pane?

bye
0 Kudos
Message 2 of 11
(11,727 Views)
I built my observer model in matlab (attachment) that works with a Runge-Kutta integration method.
What I tried to do in LabVIEW was to simulate the observer without the data aquisition (attachment), i. e., I tried to run the observer as a model of my real system but the integrators go to saturation. Those integrators are from the Real-Time module: Control -> Advanced -> Continuous Linear -> Integrator.vi). I also tried the discrete integrator but had the same problem.
Can you give me some informations about how to translate my observer model in matlab to a model in LabVIEW?
Download All
0 Kudos
Message 3 of 11
(11,704 Views)
Ok. I solved my problem. Thanks anyway.

Regards,
Diego Sá
0 Kudos
Message 4 of 11
(11,681 Views)
Hi, I have a problem to design a full-order observer in LabVIEW, I have converted a Simulink file (the JPG in attachment, "Full Order Observer1-MATLAB") into a LabVIEW VI (the JPG in attachment, "Full Order Observer2-LabVIEW-Blok Diagram" and "Full Order Observer2-LabVIEW-Front Panel") using Simulation Translator, and the output both of the Scope is not same. I have tried change Scalar A, B, C, L, K into Vector,MatrixGain but still error. Please reply, I need solution for my problem, thx. Forgive for my bad English. Note : I don't have LabVIEW Control Design Toolkit.
Message 5 of 11
(11,411 Views)
Hi there!
 
To solve my problem I used an ODE Cash Karp 5th Order solver from Analyze -> Mathematics -> Calculus -> Differential Equations. There are more ODE solvers that you can use. I run the ODE solver at each control iteration to find the state vector using the observer equations in time's domain. Read LabVIEW Help related with ODE solvers and you will find the solution quickly. If you can't figure it out message me again.
 
Regards,
Diego Sá
0 Kudos
Message 6 of 11
(11,382 Views)
Hi,
thank you for fast reply and forgive me for my late reply.
Sorry Diego Sá, I can't figure it out, I'm noob with observer.
What is your input and output in your LabVIEW ?

I have made observer (attachment Obs1.vi) with inputs are transfer function like Numerator, Denominator, and Input u. And outputs are transfer function and chart.
I need to control the position of a DC motor, but in this LV the transfer function still example.
Is my LV has correct or not ?

I have edit the MATLAB Script from M-file (attachment sfsotest.zip).
And I need algorithm for desired closed-loop pole locations ("clp" in my MATLAB Script Node), so I can set the Settling Time and Damping Ratio. Please reply as fast as you can, I hope like before.
Thx very much.
Download All
0 Kudos
Message 7 of 11
(11,232 Views)
Hi there Vern7ez,
 
At the moment I'm at work. Here I don't have LabVIEW so I can't see your VI right now. I'll try to find my observer implemented in LabVIEW to send it to you (it was some time ago :)) Give me your email if you are interested.
Meanwhile, give me some time to study your problem...
 
Regards,
Diego Sá
0 Kudos
Message 8 of 11
(11,195 Views)

Hi there again.

Sorry, I just have LabVIEW 7.1. Can you send some pictures of your VI?

Regards,

Diego Sá

0 Kudos
Message 9 of 11
(11,182 Views)
Hi there Diego Sá,
this is my email "vern7ez@elect-eng.its.ac.id" and this is my VI pictures (attachment JPG), I'm use labVIEW 8.2.
Thx very much.
0 Kudos
Message 10 of 11
(11,159 Views)