Control Design and Simulation and DAQ

I'm learning Control Design and Simulations. I have some questions about it.
1. For System Identification use, we can find the transfer function/model of the system by feeding data measurement from the system. But, how long data do we need to be sufficent for Identification System to estimate the model? Until the get saturated value (steady state)? or any other intervals? What if the system is unstable? How will Identification System Toolkit estimate that case?
2. For connecting to hardware, we just connect the clock in the simulation loop to the hardware? And the simulation loop will simulate the blocks inside once it got the trigger/data from the DAQ? what about the step time and solver? Do they follow the timing from hardware? or they will run on their own supplied values/clock?if we use USB DAQ, we can't have any clock from it (as far as I know it's because USB connection is not that stable for clocking since it might be any jitters or delays.) So, how do we configure the timing parameter for USB DAQ?
3. There is possibility to convert model in transfer function to state space, how do we know the states inside that conversion?
Any helps would be great...
Thanks in advance...

Dear Chin ho,
After going through your questions I found some documentation which will be useful for you. But I you still have more questions, you can reply me any time.
1- About the data and amount of it I couldn't find any info but maybe you can use the new functions in LV version 2009 and find your answer.
Estimating States of Nonlinear Stochastic State-Space Models with Extended Kalman Filters
In previous versions of the LabVIEW Control Design and Simulation Module, you can use the Discrete Kalman Filter function and the Continuous Kalman Filter function to estimate the states of a linear discrete or linear continuous stochastic state-space model, respectively. In the LabVIEW 2009 Control Design and Simulation Module, you can use the Continuous Extended Kalman Filter function and the Discrete Extended Kalman Filter function to estimate the states of a nonlinear continuous or a nonlinear discrete stochastic state-space model, respectively.
The Continuous Extended Kalman Filter function and the Discrete Extended Kalman Filter function estimate model states of a partially observable plant based on noisy measurements. First, use the SIM Discrete Nonlinear Plant Model template VI or the SIM Continuous Nonlinear Plant Model template VI, located in the labview\templates\Control and Simulation directory, to define the system model. Then use the the Discrete Nonlinear Noisy Plant function or the Continuous Nonlinear Noisy Plant function to simulate the discrete or continuous nonlinear model, respectively, with the addition of noise. Finally, use the Continuous Extended Kalman Filter function or the Discrete Extended Kalman Filter function to estimate the states of your model.
The Continuous Extended Kalman Filter function and the Discrete Extended Kalman Filter function linearize the nonlinear system either by calculating a Jacobian matrix internally or by using an external Jacobian matrix that you define. Use the SIM Continuous Jacobians template VI or the SIM Discrete Jacobians template VI, located in the labview\templates\Control and Simulation directory, to define an external Jacobian matrix.
Refer to the LabVIEW Control Design User Manual, accessible by navigating to the labview\manuals directory and opening CD_User_Manual.pdf, for more information about estimating the states of nonlinear stochastic state-space models with extended Kalman filters.
2- I think that I found a pdf document about this part of your question which will be helpful. If you would like to give your email address, I can send it to you.
3- About this part you can check the help function in LabVIEW when you open the "CD Convert Transfer function To State-space" function in your front panel.
I pasted some info about the mathematic part below.
The LabVIEW Control Design and Simulation Module provides tools to study the dynamics of systems described by linear time-invariant (LTI) continuous and discrete models. You can create deterministic state-space, transfer function, and zero-pole-gain models. You also can create stochastic state-space models and the second-order statistics noise models.  You can use these forms to describe both single-input single-output (SISO) and multiple-input multiple-output (MIMO) systems.
Continuous transfer function and zero-pole-gain models use the s variable to define time, whereas discrete transfer function and zero-pole-gain models use the z variable to define time.  Continuous state-space models use the t variable to define time, whereas discrete state-space models use the k variable to define time. 
Deterministic State-Space Model
Continuous
x(t) = Ax("t) + Bu(t)
y(t) = Cx(t) + Du(t)
Discrete
x(k + 1) = Ax(k) + Bu(k)
y(k) = Cx(k) + Du(k)
Stochastic State-Space Model
Continuous
x(t) = Ax(t) + Bu(t) + Gw(t)
y(t) = Cx(t) + Du(t) + Hw(t) + v(t)
Discrete
x(k + 1) = Ax(k) + Bu(k) + Gw(k)
y(k) = Cx(k) + Du(k) + Hw(k) + v(k)
Second-Order Statistics Noise Model
Q = E{w . wT} – E{w} . ET{w}
R = E{v . vT} – E{v} . ET{v}
N = E{w . vT} – E{w} . ET{v}
where
t is continuous time.
k is the model sampling time multiplied by the discrete time step, where the discrete time step equals 0, 1, 2, …
x is the model state vector.
u is the model input vector.
y is the model output vector.
w is the process noise vector.
v is the measurement noise vector.
A is an n × n state matrix of the given model.
B is an n × m input matrix of the given model.
C is an r × n output matrix of the given model.
D is an r × m direct transmission matrix of the given model.
n is the number of model states.
m is the number of model inputs.
r is the number of model outputs.
G is a matrix relating w to the model states.
H is a matrix relating w to the model outputs.
Q is the auto-covariance matrix of w.
R is the auto-covariance matrix of v.
N is the cross-covariance matrix between w and v.
E{} denotes the expected value or the mean of the enclosed term(s).

Similar Messages

  • Control Simulation and Design with DAQmx

    Hi all, thanks in advance for any helpful direction you can provide.
    I was recently setup with Labview 2013 Developer Suite and the Control and Simulation Design add-on and was hoping to get a little nudge in the right direction.
    I have used Labview and the NI DAQmx setup for regular external measurements before but never integrated with the Control and Simulation toolbox. I am trying to use the Control and Simulation Toolbox to model a simple system (to start) in conjunction with the DAQmx setup I have, and am somewhat at a loss.
    For example, I want to use Labview Control and Simulation to simulate a simple integrator (1/s). The input for the integrator is an external analog voltage (from separate electronics) coming in through the DAQmx setup and the output of the integrator is also and external analog voltage going back to the external electronics. In essence, a very simple control loop.
    I have been digging through tutorials and searching for examples, of which there have been many excellent ones. However, I have yet to find an example whereby the control and simulation loop is talking to the outside world through the DAQmx interface. I do not believe the RT module or RT target is necessary for timing as the fastest we are running the loop is around 10Hz. I have found some small examples discussing how the Control and Simulation Toolbox timing can be controlled by the RT target or even the DAQmx but I am still struggling on how to pass data in and out of the loop and how to set the timing parameters. How do you get it to simply run endless, for example.
    Again, thanks for any information or direction you can provide.

    Hey Cabala,
    Based on your description this would be a great starting example. 
    https://decibel.ni.com/content/docs/DOC-11521 
    Depending on your hardware you may or may not be able to use hardware timed single point for acquisition but you could set it up for continuous as well and use the same structure of 1 read and 1 rate for each cycle of the loop. 
    You can replace proportional gain function with the CD and Sim Loop and place a Integrator function with in that.
    Sorry it appears one of the dependencies for that example is missing so you can't run it off immediately. 
    Please let us know if you have any other questions. 
    Kyle Hartley
    RIO Product Support Engineer
    National Instruments

  • Control design and simulation module

    Hi,
    I am new to Labview and i am trying to work on Control System design. I have downloaded and installed the Evaluation Module of Control Design and Simulation Module. The problem I am facing witht this is its not showing any control fuctions in functions Palette. While installing it said its installing only control design and simulation assistant. Please, can anyone help with this.
    I am actually looking at this module to implement Sliding mode control for non linear systems. I would like to know if there are any examples to implement this??
    Thank You.

    Hello
    The problem is the following. The version of LabVIEW that you are using does not match the version of the evaluation version of LabVIEW Control Design and Simulation Module (CD&SIM). If that happens, the installer will not select the support files for your LabVIEW. If you download LabVIEW 2011, then you must install CD&SIM 2011.
    Now, the module in the current version does not have an example with sliding mode control. But using this module, you can easily implement the algorithms and simulation its result using the Control and Simulation Loop.
    Hope this helps.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Control design and simulation palette

    Hi all
    I've recently installed LV 8.2 professional edition on my PC.
    Watching the function palette i've seen the sub-palette 'Control design and simulation' empty... Is it normal? Do i need some toolkit to see something in it?
    King regards
    I love the smell of napalm in the morning

    alij wrote:
    its because the main labview is install in c:\program files , but when you install the module it will install in programfiles(x86) ,that because the **bleep**ing bug in the installation and programmers , plz fixx this , i think you have to copy paste files into the main NI labview which is in program files not program files (x86)...
    If LabVIEW is installed in "c:\program files", it means that you installed LabVIEW 64bit. You should install LabVIEW 32bit, which will go to "c:\program files(x86)" and will be compatible with your toolkit.
    There is nothing wrong with the installer. You simply picked the wrong product.
    Do NOT copy files between the two mentioned folders. One is for 32bit applications and one is for 64bit applications (assuming you have a 64bit OS).
    The toolkit is not compatible with 64bit LabVIEW (Details).
    LabVIEW Champion . Do more with less code and in less time .

  • Control Design and Simulation Tutorial

    Hi
    I'm starting off with a coursework which requires use of the Control Design and Simulation functions. Before I ask any silly questions i'd like to see the hand on tutorial, it's referenced in this white paper.
    http://www.ni.com/white-paper/5855/en/
    However the ftp link to the tutorial doesn't work, does anyone else have an alternative link, or could supply the tutorial directly.
    I appreciate any assistance.
    Kind Regards
    Danny
    Solved!
    Go to Solution.

    Hmm, thanks. It must've been the proxy server in the office. Disabled and it downloaded it via the wifi.
    Thanks

  • Control Design and Simulation palette doesn't appear

    I'm using LabVIEW 2009 in Professional License. I've installed Control Design and Simulation Module with its all other required Toolkits. The problem is that Control Design and Simulation palette  doesn't appear in the Functions Palette in any VI. Please help me with that.
    Adeel Amin
    NED University of Engineering & Technology
    Solved!
    Go to Solution.

    If you run NI License Manager, Expand LabVIEW2009>Modules>Control Design and Simulation.Can you verify that you have that directory and what is the color of the cube right next to it?
    Andy Chang
    National Instruments
    LabVIEW Control Design and Simulation

  • Control, design and simulation

    Hello everybody,
    I am trying to run a simulation in Control Design and Simulation module. My simulation consists of various simulation systems. The subsystems are working as desired when run as separate units, but when I run the complete system, the subsystems fail to produce the output values. 
    I have not used any local variables or any discrete function vi inside a subsystem.
    Where am I wrong ? Any help would be much appreciated.

    I mean the indicators connected to various subsystems are inactive and don't produce any output values. I tried to find the error using the Error Cluster, but it didn't show any error. I am using LabVIEW 2011. I have attached the complete system including the subsystems. The individual systems are working fine. I changed the solver too, but the problem persisted. Please try to identify the error.
    Barp wrote:
    When you say: Fail to produce a output, what do you mean?
    On the right side of the Control and Simulation loop you have the 'Error Out' cluster. Create a control from it and see if you have an error. Also, which version of LabVIEW are you using?
    If this is not producing an error, then try to change the solver you are using. It would help if you could post your code (or at least pictures) of it.
    Attachments:
    Wind Turbine Integrated.7z ‏2240 KB

  • Design control and simulation palette

    After hitting Next bottoms and succesfully installation for Design control and simulation toolkit , when I launchำก Labview programme  there is nothing in this function and the palette is blank. Anyone knows what happen.  I use Labview 2013 student edition 64 bit(free 6 months version). Thanks in advance+++
    Solved!
    Go to Solution.

    Do you truely have the 64bit version of LabVIEw installed?
    If you do, then you will not be able to use this module.
    It is only valid for 32bit LabVIEW.
    You can see the system requirements here:
    http://www.ni.com/labview/requirements/#cds
    You can try to install 32bit version of LabVIEW and then install the module.

  • No lo puedo instalar labview 2011 Control Design and Simulation

    no e podido encontrar la verision para instalarlo agradezco si alguien me puede ayudar y guiar  en la instalacion 

    Hola, [email protected]
    Gracias por utilizar los foros de discusión, en el siguiente link puedes descargar el módulo LabVIEW Control Design and Simulation 2011.
    www.ni.com/download/labview-control-design-and-simulation-module-2011/2554/en/
    ¡Saludos!
    David P.
    National Instruments
    Ingeniería de Aplicaciones
    www.ni.com/soporte
    David P.
    National Instruments
    Applications Engineer
    www.ni.com/soporte

  • LabVIEW Control Design and Simulation Module version 2013

    I have had Labview downloaded for quite some time now. Downloaded control design and simulation module. Installed it. When i go to use it in the
    functions menu, only the window appears. Opening it shows an empty window. I have attached a screenshot of the issue. Could someone please explain to me what the problem is and how I can go about fixing it?
    Attachments:
    Labview screenshot.docx ‏998 KB

    As Altenback said, It is very possible it expired or it needs activation. To see for sure, go to your "NI License Manager" and expand the Modules. you should see:
    If not green then you have to fix the license.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Control design and simulation toolkit

    Hello everyone,
    Does anybody know if indexing is possible in a Control and Simulation loop in Labview? I need to save in an array all the simulation data.
    Thanks,
    Ussr123.
    Solved!
    Go to Solution.

    Solved: the necessary icon is called: Collector.

  • No icon in the control and simulation palette, toolkit is instaled

    only question marks on the palette

    Hi Adj;
    Do you have more information on the LabVIEW and the control design and simulation toolkit you are using?
    Here is a document that solves that issue for LabVIEW 8.2 and Control Design and Simulation Toolkit 2.1.1:
    http://digital.ni.com/public.nsf/allkb/57E03AEB671A6D9F8625725A0079E37F?OpenDocument
    I hope the information is useful
    Good Luck! 
    Francisco Arellano
    National Instruments Mexico
    Field Systems Engineer - Energy Segment
    www.ni.com/soporte

  • Problem using PID toolkit and control design toolkit to design the closed loop system. (for DC motor closed loop)

    Hi, i have facing some problem during i upgrade a project. This project is an opened loop system, it only achieved up to controlling the speed of motor, detecting the speed of motor, and switching the direction of motor while controlling the motor (This motor is a 12 VDC motor).
    In order to improve the project, closed-loop dc motor control system will be implemented to correct the error of the motor's speed and maintaining the speed for the initial setting. I would like to use PID control method to do the closed loop system.
    I already installed the PID toolkit V8.2 and control design toolkit V2.1.2, and i'm using DAQ usb 6221, LabVIEW 8.5
    Below is my problem.
    http://img177.imageshack.us/my.php?image=howtocreatethesetpointnx2.jpg
    question: 1. How to generate a icon for set point? my setpoint is duty cycle...
                    2. How to feedback the output duty cycle to summing junction?
    below this is my basic concept
    http://img237.imageshack.us/my.php?image=closedloopbz5.jpg
    Problem 2:
    http://img357.imageshack.us/my.php?image=problem1yk2.jpg
    question: Why PID toolkit icon cannot wire to cd series.vi?
    Below is my original program...
    http://rapidshare.com/files/140538836/pwm_generate-final_PSMII.vi.html

    Hi Cyrus
    Have you had the opportunity to see our
    developer zone site on the PID toolkit? This article also has sample
    code at the bottom that may help you in developing your application. I
    have also linked below knowledge bases regarding setting a point
    profile and generating a PWM from a digital output line. 
    PID toolkit
    http://zone.ni.com/devzone/cda/tut/p/id/6440 
    How to generate a set point profile:
    http://digital.ni.com/public.nsf/allkb/125F27AC143B6AFD86256C2B0004A4DC?OpenDocument
     How to generate a PWM on a digital output line:
    http://digital.ni.com/public.nsf/allkb/1561D31534F07D608625727900391114?OpenDocument 
    Thank You
    Eric Reid
    Thank You
    Eric Reid
    National Instruments
    Motion R&D

  • Can't install Control and Simulation Module in LABVIEW2009

    HI all,
    I m using LABVIEW2009 x64 and wanted to update control module in it.
    when ever I try to install the Control DEsign and Simulation module, the setup won't proceed.
    IT shows the following error message : 
    NI LabVIEW 2009 Control Design and Simulation Module
    The Control Design and Simulation Module requires LabVIEW 2009 Full or Professional Development System to be installed.
    however, I have already installed and reinstalled once as well. Please help me.

    Hi Rishabh,
    Unfortunately, we do not have a version of Control Design and Simulation for x64. You can try to install the 32-bit version of LabVIEW instead on a 64-bit OS. This should allow you to install CD&SIM.
    Please let me know if can help any further.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Fpga, Control and Simulation Module

    Hello,
    I am trying to implement control by Control and Simulation Module through NI CRIO 9024. The error message pops up when trying the run the RT vi. 
    Other vis which are not coded by the Control and Simulation Module can work properly. However, when it comes to the Control and Simulation Module, the error message pops up. Is there anything wrong with the installation of the Control and Simulation Module? Please let me know if you have an idea about that. I appreciate your help.

    Hi Richard629,
    As seen in this Knowledgebase article, you most likely do not have the Control Design and Simulation module installed on the controller. You can use NI Measurement & Automation Explorer to install the Control Design and Simulation module on your controller.
    Regards,
    Allison M.
    Applications Engineer
    National Instruments
    ni.com/support

Maybe you are looking for

  • I need to access a file which is present in LAN of our office.

    Hi, In windows I could access a remote file by giving the local IP address in the RUN command and then by giving the username and password I was able to access the files in the local server. But not able to do the same with my iPad? Ex: In windows in

  • Add BI System in Solution manager

    Hi All, I need to add BI DEV, BI PRD Systems to solution manager. As per my understanding first i need to create logical systems, after wards i have to add this system in SMSY. I will be glad if some one can post ur suggestions and procedure to add t

  • CM12 Reporting Role problems

    I have been trying to resolve an issue where my central admin site which was assigned the reporting services role stopped working. SSRS was operating but there seemed to be a problem with the reporting user account. I did all sorts of stuff including

  • Quicktime image quality problems in FCP

    I'm trying to do a basic video tutorial on how to use a tool on my website. I captured the movie from my screen with a product called SnapZpro which saved the movie as a QuickTime movie. However when I import it into FCP to do some mixing with other

  • Need to create a report having 40 columns using XML Publisher

    Hi XML Report Gurus, I have a weird requirement. I need to create a XML Publisher Report having 40 columns. This report would be a CSV Report. How can i create a RTF(Template) in MS-Word having 40 columns ?? I just cannot accomodate the columns, they