LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

single pole Balancing robotic + how to do labview programming ?

Hi, we are doing a control design course in our university. We ran into a problem using the 'State-space controller' part in the simulation VI in Labview. the main problems i think are as follows:
1. we cant change it from mimo to siso
2. there is a scalar-vector mismatch almost always whatever we do.
Apart from these, even when we connect up graphs to the input and output, the graphs do not display anything. Is there any hidden setting we forgot to set?
on top of that we need to do matric calculation in order to be able to do model predictive control design. Can we do the programming in labview
please help us ...we are really newbie here
0 Kudos
Message 1 of 3
(2,805 Views)

Hello Orang,

Please refer to the manual that I have attached. This manula has really helped me out a lot.

Hope that helps.

0 Kudos
Message 2 of 3
(2,779 Views)
Hello!
 
Here is the reply for your question:
 
1. For State-Space Models, we have only one datatype that can be represented as SISO,MISO,SIMO or MIMO. To be SISO, all that you have to do is create the model with populate the column 0 for B and the row 0 for C.
 
2. When using the State-Space model, you also have to pay attention to the "Initial States". In your example, I think you have 3 states, which leads to a Initial States as [0,0,0].
 
3. Also, I noticed that you have the model as an "Terminal" instead of "configuration page", but you don't have any model wired to the terminal. You have to wire the model from outside or try to configure it in the config page.
 
4. You can also use Linear Algebra VIs inside simulation, as some other LabVIEW VIs. The only think you need to be know is that you have to define if you want to have the VI running every discrete sampling time, or continuous sampling time. When in discrete, a red 'D' will show on the up right hand-side on the VI. If you want to execute every minor sampling time, right click on the VI and go to "SubVI Node Setup" and remove the "Run as Discrete Node" option.
 
All of this information is in the manual. Please refer to it whenever possible and you should be able to compose your controller.
Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 3 of 3
(2,771 Views)