Ask help for implement MPC in Labview

Hi,
I want to implement the MPC controller in the Labview, to simulate a simple first-order system with time delay. The system is a SISO system.
I totally have no idea about it.  Can anyone help me with the project and send me an example?
Appreciate for your time and help.
Regards.

Hello njutcgj,
It looks like you're using a custom subVI to generate your histogram. Are there resource that guide you through it's implementation? Where did you get this VI, or did you write it? It might be useful to post a screenshot of the graph displaying the freak behavior you describe.
If you would like some guidance on getting more familiar with the LabVIEW environment, a great collecting of learning tools are available here. There are curve fitting VIs built into LabVIEW that more people on these forums will familair with, is there an advantage of this custom subVI?
It might also help to go through the troubleshooting steps you've tried and the results you've encountered. The community will be able to help you in a much more targeted way if we know what your problem solving approach has been thus far. I hope that you'll be able to take full advantage of this resource and we can help steer you towards a solution.
Verne D. // LabVIEW & SignalExpress Product Support Engineer // National Instruments

Similar Messages

  • Ask help for OID on Linux

    I installed OID which come from the download version of Oracle 8i 8.1.7 on redhat linux 6.2. I use universal installer installed the software code and run postcfg script in $ORACLE_HOME/ldap/postcfg to generate the database and LDAP schema. After correct some
    bugs manually in the postcfg(it is better to add one sentence of oidmon -start) and bugs in oidadmin(script in $ORACLE_HOME/bin, one is it point to a wrong place of jre, the other is it use a switch that only worked on sparc), I finally started the oidadmin.
    BUT, I still can not login the OID from oidadmin. Can any guy kind give me some info on what is the initial password for oidadmin of OID? I have tried all combos that listed on the on-line help, like: cn=orcladmin, oracladmin, etc. it doesn't work. I also use sqlplus as system to search it in the tables
    of the OID database, but find nothing.
    Thanks for any info or hint!
    null

    Hello:
    Sorry it took so long to respond to your question. I was exhibiting OID at AppsWorld in Paris and New Orleans for the past 2 weeks.
    Assuming you have followed the installation procedures from the "OID Installation Guide" there is one small bug patch that needs to be applied to the Linux versions. You can obtain a copy of this patch from the Oracle Metalinks web site:
    http://www.oracle.com/support/metalink/index.html
    Assuming that OID is up and running you should be able to start a gui JAVA tool from the command line prompt by typing in "oidamdin" or from your Linux Window console. The super user account name is "orcladmin" and the default password is "welcome". The default port number is 389. Also make sure you put in the host name of your machine.
    Let me know if any of this helps. If not Ill try to help you reinstall OID to make sure it is installed properly. I am unable to fully understand where you are stuck from your description of the problem.
    thanks,
    Jay
    null

  • Asking help for INSERT, DELETE, UPDATE, SELECT

    I have to build a program that is like a bridge from the dabase hsqldb and the final user.
    So the user has the options of SERCH, EDIT, INSERT or DELETE a register/field/row whatever.
    Remember that the values are entered by the user, so I don't know the field to be edited, deleted, etc...
    I would thank a lot if you could put some code to do all these operations.
    But please, if you won't post the codes please don't post nothing else.
    I need the example codes!
    Thanks if you can give me a hand.

    I Just need to understand what's wrong with my code:
    // call this when user presses insert button...
    public void insertRegister() {
    String title = "Inserting new register...";
    String tempId = JOptionPane.showInputDialog(null, "Enter ID Client:", title, 3);
    int id = Integer.parseInt(tempId);
    String name = JOptionPane.showInputDialog(null, "Enter name Client:", title, 3);
    String tel = JOptionPane.showInputDialog(null, "Enter tel Client:", title, 3);
    try {
    // Setting up the PreparedStatement
    PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO CLIENTS (id_client, name_client, tel_client) VALUES(?,?,?)");
    // Now we insert the real values for PreparedStatement and execute it!
    preparedStatement.setInt(1, id);
    preparedStatement.setString(2, name.toUpperCase());
    preparedStatement.setString(3, tel);
    preparedStatement.executeUpdate();
    catch(SQLException s) { s.printStackTrace(); }
    // call this when user presses delete button...
    public void deleteRegister() {
    try {
    // Setting up the PreparedStatement
    PreparedStatement preparedStatement = connection.prepareStatement("DELETE FROM CLIENTS WHERE id_client = ?");
    String tempId = JOptionPane.showInputDialog(null, "Enter ID Client to be deleted:", "Deleting register...", 3);
    int id = Integer.parseInt(tempId);
    preparedStatement.setInt(1, id);
    preparedStatement.executeUpdate();
    catch(SQLException s) { s.printStackTrace(); }
    // Of couse I don't want anyone coding for me...
    // But if I'm not asking too much, just please someone tell me what's wrong with my code, and how to fix it. That's all.

  • Ask help for install solaris 7

    When I Install solaris 7 in my server sun140(ultra 1), This
    Message display on my screen:
    ---------------------------------------hereinafter----------------------------------
    ok boot
    Boot device:net File and args:
    Timeout waiting for ARP/RARP packet
    Automatic network cable selection successed:Using TP Ethernet Interface
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    ----------------------------------------hereinbefor-------------------------------
    What's wrong? What shalld I do.
    Thanks
    **** merry christmas and Happy New Year***

    Hi,
    At the ok prompt, type 'printenv' make sure the last variable 'diag-switch' is set to false. If its true, set it by using setenv diag-switch? false
    also, what is your boot-device set to? is it disk, can you see your disk?
    try 'probe-scsi' to make sure you have a disk to boot off. It may be your disk is not bootable, therefore its trying to boot off the network
    Hope this helps.
    M

  • Asking help for patch

    Hi,
    Could some body please help me!!
    I need patch for installing oracle under Redhat Enterprise3 and dont have an account to login to oracle metalink.
    could some body send me the patch??
    ( i need p3119415_9203_LINUX.zip and opatch Release 2.2.0 (p2617419_210_GENERIC.zip))
    I need this patch because after applying patch 3006854, I tried to install Oracle Universial Installer 2.2.0.18.0 and can be installed succesfully after that i tried to install Oracle9iR2 Patch Set 3 9.2.0.4.0 but the installation could not be finished with error say nothing to be patch.
    I ignore it and run ./runInstaller for install database but the GUI terminate without an error contain in file /oracle/OraInventory/logs
    Thanks and Regards,
    Ed

    Dong,
    there's no shortage of problems with the O9iAS installation on W_2000. It's certainly not for the faint hearted but it can be made to work in the end. I thought I had the same problem as you and I too aborted it. After dropping the schemas and restarting the configuration it happened again but completed OK when I left it alone.
    It took several hours but worked OK afterwards or at least I had a different set of problems. There was a previous entry which mentioned this in one of the discussions
    which suggested it may be a bug. Try searching for "90%".
    S.

  • Asking help for performance issues about concurrent package

    One of my friends is developing a service based on resin. They use thread pool of current package in jdk1.5. The service will create a lot of threads in the thread pool. And most of the threads are waiting. What they can not make sure is how the large amount of waiting threads will affect the performance. These threads surely will occupy a lot of memory. But how will they affect the cpu?
    Some documents on the Internet say that the large amount of waiting threads will largely increase the thread switching overhead. And some others say no because the scheduler will not be affected by waiting threads. I'm not sure which one is true. Would anyone like to give me some tips? It's better if you can point out any our documents about it.
    Thanks!

    No, it just depends on Data Structures 101.
    You would have a list of ready threads, from which you would allocate one to the processor on some priority and fairness scheme, and another list of non-ready threads which you would only promote to the ready list when something happened to them that made them ready.
    And among the ready threads you would most likely use a priority queue, so that operations on it were O(log(N)). And if the ready list also included the unready list for some strange reason, operations on it would still be O(log(N)), i.e. less than linear in the total number of threads.
    And if for some strange reason it was implemented in a less efficient way than that, I would complain vociferously to the vendor. Scheduling has been going on for fifty years after all.

  • I am asking help for set up.

    I have a 2wire connecting to my internet. I bought a Linksys wireless-G ehternet bridge with the purpose of coonecting it to another computer downstairs wirelessly.
    I don't know how, no matter how I tried to figure everything out.
    Do I lack anything, or did I buy the right thing?
    Please help.
    Loven

    It will work with Printer .... but in that case you need to connect the Printer directly to the Ethernet Bridge using CAT5 cable ... not USB cable ..... If you want to use any device that works with printer ... i will suggest you to use wireless print server (WPS54G) ... It connects using either USB cable or Ethernet cable to the Printer ... & communicates wirelessly with router .....

  • Ask  help  for a question about Caesar cipher

    "Caesar ciphers are among the simplest devised, and rely solely on remapping characters to others in the alphabet using a constant shift modulo the size of the alphabet. The amount shifted is the key used to encipher, or decipher, the message. This remapping is usually restricted to letters, so that with a key of 2, `A' is replaced by `C', `B' by `D', ..., `X' by `Z', `Y' by `A', and `Z' by `B'. Lower case letters are mapped in an identical way to give their lower case replacements. Thus here the key is an integer in the range 1 to 25 (not 0 to 25, as there is no point replacing every `A' by an `A' etc.).
    Straightforward Caesar ciphers are rather too easy to recognise however. In an attempt to maintain the basic idea, but complicate the result, what we will do is systemmatically jumble up the letters. Treating `I' and `J' as one letter from the start (so now there are only 24 different keys, assuming we still exclude mapping `A' to `A'), the 25 letters will be written to a 5 by 5 grid, by rows, and read back by columns. So, for example, with a key of 10, `A' is mapped into `L', and the grid produced is:
    L M N O P
    Q R S T U
    V W X Y Z
    A B C D E
    F G H I K
    and the uppercase alphabet upon encryption becomes: LQVAFMRWBBGNSXCHOTYDIPUZEK Note that here the `B' is doubled up because it represents both `I' and `J'. Thus, with this key of 10, the following line is enciphered to the one after it.
    Caesar ciphers are child's play.
    Vlfylt vbhwfty ltf vwbna'y hnle.
    An acceptable drawback of the treatment of `I' and `J' in the grid is that a decoded message will have all `J's mapped to `I's, and all `j's to `i's"
    this is a part of requirement in the whole program,I almost finished it, but I do not know thata how to make" a decoded message will have all `J's mapped to `I's, and all `j's to `i's". "Treating `I' and `J' as one letter from the start"?what does that mean?
    this is my code about the part:
    public static char encode(char ch,int n)  {
      while (!Character.isLetter(ch))
       return ch;
      if(ch>='A'&&ch<='Z')
      return (char)('A'+(ch-'A'+n)%26);
    if(ch>='a'&&ch<='z')
      return (char)('a'+(ch-'a'+n)%26);
    return ch;
    public static char decode(char ch,int n)  {
      while (!Character.isLetter(ch))
       return ch;
      if(ch>='A'&&ch<='Z')
      return (char)('A'+(ch-'A'-n)%26);
    if(ch>='a'&&ch<='z')
      return (char)('a'+(ch-'a'-n)%26);
    return ch;
    }but
    how to make" a decoded message will have all `J's mapped to `I's, and all `j's to `i's". "Treating `I' and `J' as one letter from the start"?

    Your teacher/instructor/professor would obviously be the final authority on this, but I think all it's saying is that when you encode, treat each 'j' you come across as an 'i', and therefore, when you decode, because you've lost information that it was a 'j' to start with, it will be mapped back to an 'i'.
    One easy way to accomplish this (that would save special cases later in your for-loop) would simply be a:
    String toEncode = "Djibouti"
    toEncode = toEncode.replaceAll("j","i"); //obviously handle both cases instead
    String encoded = encode(toEncode);
    String decoded = decode(encoded);
    System.out.println(decoded); //this would print "Diibouti"The other way is to simply add a special case to your encode/decode (char) methods.
    Edited by: endasil on 28-Sep-2009 9:35 AM

  • Asking help for insert anydataset(CLOB type) into anydataset col please.

    I am using anydataset as a column type. after referring to the demo anydset.sql:
    can run then following correctly:
    declare
    as1 Sys.AnyDataSet;
    at1 Sys.AnyType ;
    cl1 clob ;
    begin
    Sys.AnyDataSet.BeginCreate(DBMS_TYPES.TYPECODE_CLOB,at1,as1);
    for i in 1..2 loop
         as1.AddInstance();
         cl1 := to_clob(rpad('Clob',i*10,'Clob')) ;
         as1.SetClob(cl1) ;
    end loop ;
    as1.EndCreate();
    --anydataset_display_value(as1);
    end ;
    while if just added one sql to update the cell value to as1 as following:
    declare
    as1 Sys.AnyDataSet;
    at1 Sys.AnyType ;
    cl1 clob ;
    begin
    Sys.AnyDataSet.BeginCreate(DBMS_TYPES.TYPECODE_CLOB,at1,as1);
    for i in 1..2 loop
         as1.AddInstance();
         cl1 := to_clob(rpad('Clob',i*10,'Clob')) ;
         as1.SetClob(cl1) ;
    end loop ;
    as1.EndCreate();
    --anydataset_display_value(as1);
    update dumatmp.tbad set colanydataset1 = as1 where id = 0;
    end ;
    I got :
    ERROR at line 1:
    ORA-22370: incorrect usage of method AnyData Insert
    ORA-06512: at line 14
    why? I know that we did not support embedded LOBs in anydata, is it the same for anydataset and documented?
    Thanks a lot, hope can got response asap, happy Christmas!

    Also, you should always close your resources in finally blocks. So not this:
    try {
      st.executeUpdate(query);
      st.close();
    } catch (SQLException ex) {
      Logger.getLogger(Parqueadero.class.getName()).log(Level.SEVERE, null, ex);
    }because if executeUpdate throws an exception, the close() method is not called. Do this instead:
    try {
      st.executeUpdate(query);
    } catch (SQLException ex) {
      Logger.getLogger(Parqueadero.class.getName()).log(Level.SEVERE, null, ex);
    } finally {
      st.close();
    }That way the close method is always called no matter what happens.
    I'm also a bit confused by a method which closes a resource which it didn't create. The general rule of thumb is that if you (some piece of code) create a resource, you should also close it. But your statement object is being created by a static method from some other class. For all I know that could be getting a statement from a "statement pool" of some kind and you shouldn't be closing it in this method.
    Of course there are plenty of exceptions to that rule of thumb, but I'm not convinced that this code is one of them.
    And it is completely normal for new programmers to finish a project and then immediately want to improve it by rewriting and redesigning. And that's not limited to new programmers, either. Management advice of the form "Be prepared to throw away the first version" dates back at least to the 1970's. However, you should beware of the "second system effect" which is described in [The Mythical Man-Month|http://en.wikipedia.org/wiki/The_Mythical_Man-Month].

  • Asking help for jsp, servlet, sql, web application, web service....

    i want to increase a new function in existing web site, just like let customer leave their comment for our product and collect it back to company, after modify or delete these no good one, then post it on to the website....i am a beginner,,,, wish any kind ppls can leave some comment for me...thanks a lot

    Since you are a beginner, I'd advice you to take a
    look at Marty Hall's website
    http://www.coreservlets.com/. You can download the
    first edition of his book "core servlets and Java
    Server Pages" in pdf format. I like Marty Hall's books too, but I prefer Hans Bergsten's JSP book as a starter.
    Try to find something about the MVC or Model View
    Controller design pattern. This may seem like
    overkill for small web apps, but as soon as you're
    trying to add some functionality (as you want to do),
    you'll see that you gain time using the MVC.
    For this, I strongly recommend the "Apache Tomcat
    Bible" from Eaves, Jones and Godfrey.
    It explains how to install Java SDK, MySQL, Ant,
    Eclipse, Tomcat.Personally, I think all this is beyond the OP. He said he was a beginner. If that means he hasn't even written "Hello, World" or compiled a single Java program, I'd say that all this stuff about Tomcat, Ant, Eclipse, serlvets, and JSPs is well beyond him. I'd discourage anyone from taking on a project like this as their introduction to Java. I'd warn his client against spending their money to buy code from a neophyte. There are plenty of talented people out there who need the work and can do the job without having to climb that learning mountain.
    If I've misread the situation, I apologize. No insult intended. Just be realistic in assessing your ability and the difficulty of the project.
    %

  • Please Help for RME fireface400 with Logic Studio 8

    Please I do ask help for configuration of audio interface RME fireface400 with iMac OS 15.5.5, I have problem in output 7/8 monitor phones(no sound or crack sound) and look Fireface Mixer in to the desktop monitor. Where is the problem? I have drive 2.62a.
    Thanks for answer, also in Italiano
    Graz

    Have you tried the RME userforum?
    http://rme-audio.de/forum/index.php
    Maybe you problem is running OS 15.5.5 - must be a beta version

  • I have a state space model of a complex system. can anyone help me for implementi​ng MPC and e-MPC control for the same?????

    Hi everyone. I am new to the forums, so let me be as mprecise as possible. i know the basic functionalities of Labview with MPC block etc. However, i dont know how to go ahead with implementing MPC control for a system whose state space model i possess. can anyone help me out?? the problem is that i dont even know the approach or the starting point..

    This happens if you remove a program manually, but still have the registry keys to load files from this program.<br />
    You can use the MSConfig program or the Autoruns utility to see which software and services are getting started.
    *http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
    You can use registry editor and do a search (Ctrl+D) for imesh to see if you can locate the registry key(s) that launches this program on a reboot.
    Try to ask advice at a Windows oriented forum if you can't fix this.
    * http://www.bleepingcomputer.com/forums/ - BleepingComputer.com - Computer Help Forums
    * http://windowssecrets.com/forums/ Windows Secrets Lounge

  • How to implement 'Context Sensitive Help' for Workforce Performance Build Tool.

    Hi Gurus,
    We have a requirement to implement ‘Context Sensitive Help’ for Workforce Performance Build Tool. Please let me know how to go about implementing the "Context Sensitive Help".
    It will be great if you can share some links to the documents and screenshots.
    Thanks,
    Sanjiv Karmakar

    Hi Sanjiv,
    do you you mean expand the Help Menu => Pull Help or do you mean
    EPSS => push Help?
    in case pull help please tell me exactly which system GUI or EP and version you are using.
    many different scenarios are possible.
    Tom
    P.S. Please take care of  the name is Workforce Performance Builder or maybe in-official WPB.
    many people ask in the HCM area for help, this is the reason why we do not observe all discussion.
    The name in the title will help us to find your questions on time.

  • I didn't set any password during setup of Lion, but now when I want to download stuff from safari, it asks me for password? plz help

    I bought a new macbook air pre loaded with Lion. while setting up the system, I just input the user name, and didn't set any password.
    But now when I wanna download stuff off safari, it asks me for password. The user name appears (the same one which I set) but it keeps on asking me the password which I never set. Can some one please help me. Thanks!

    I did it like that, but for the purpose of not having to type my password every time since I'm installing a lot of programs, and yes, it asks for the password, but do not type anything and just click "ok" or "install", since you haven't set a password it should let you go through. I guess it asks for the "password" just to let you know it will install something, but just click ok.
    I will set up a password once i have install everything in System Preferences/Users & Groups
    Hope it helps...

  • HT204088 Dear sirs,  Could you please help me on my problem with my apple ID  I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,  My account have 50$ and stil

    Dear sirs,
    Could you please help me on my problem with my apple ID
    I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
    My account have 50$ and still didn't buy anything

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100546)

Maybe you are looking for

  • Updating from 9.2 - 9.2.2 my iMac freezes. Can anyone help?

    I have an iMac that's a few years old, and it's been in my buddy's basement for the last 2 years, and he was moving so he gave it to me and I booted it up and hit software update and it said it would update to 9.2.2. I hit okay and it proceeded to do

  • Multiple Service Entry Sheet For PO Line Items and One GR Document

    Dear All, We have just migrated from ECC 5.0 System to ECC 6.0 System. We are facing a problem while processing service entry sheets and the GR against them. The scenario is: 1. We create a maintenance plan 2. Upon saving the Maintenance Plan, a Purc

  • PC Suite : "2 hours" error in Calendar vs. handset...

    Hi everyone Everything on my laptop (PC Suite) Calendar is 2 hours earlier than on my handset's Calendar! For example: a) If I enter an appointment (using PC Suite's "Calendar" function) to start at, for example, 4pm... and then SYNCH with my mobile

  • EAP-TLS Error

    Hello. I cannot get EAP-TLS auth to work on windows 7 wired setup. I've tested EAP-PEAP on wireless and wired - works fine. Also EAP-TLS for wireless works great. Clients are on same domain as radius (wich is Cisco ISE), we've deployed CA-services on

  • Adjust volume

    Using Captivate 6, is it possible to have a playbar that the learner can use to adjust the volume of the audio? I know it is easy to get the mute button to turn audio on or off, but it does not adjust volume. There is a variable, cpCmndVolumet, but I