Autotune PID VI - getting an accurate reading

Hello, 
I am controlling a voltage controlled relief valve (which in turns controls the load applied by  a press) with a LabVIEW code using the Autotune PID VI. Our setpoint is a load as our process variable is a load measured from a pressure transducer. We are able to use the Autoune VI to tune for low loads, however, the process is quite slow to get to the desired setpoint. Then when the speed is increased (the proportional gain increases here)  the VI is unable to tune properly. Furthermore, when the SP load is changed rapidly, the VI is unable to tune. 
Can anyone help with providing a method to get the Autotuning VI working consistently with a reasonable speed? I have attached an image of the code I am using to give you a better idea of what I'm trying to do. 
Thanks for you help. 

Hi Jazz,
The slowness of the VI is caused by the VI repeating over and over. Unfortunately there is not too much that you can do about the speed. When you increase the proportional gain what is the problem that you are getting? If it just tunes to a different value that could be caused by a different min/max. If you could give me a little more information that would be helpful.

Similar Messages

  • Trying to get an accurate reading from thermocouple

    I have the NI 9201 connected to NI cDAQ-9174. On the NI 9201 i have an OMEGA TAC80B-K Thermo-to-Analog Converter. I have it connect through banana plugs with the red wire to AI0 and COM. On the OMEGA I have a K type thermocouple connected. When I run my VI I get weird reading of negative values on the Temp wave chart. I tested the OMEGA with a THERMOMETER and it works. I don't know what the issue is here. I am trying to get the temperature reading. 
    Solved!
    Go to Solution.
    Attachments:
    thermo.JPG ‏33 KB
    temp.JPG ‏38 KB

    johnsold wrote:
    Do you have a voltmeter or oscilloscope? If so, check the output of the Omega device with that.  Verify your connections between the Omega and DAQ device, including the ground.
    What does your VI read if you connect a 1.5 V battery to the inputs?
    Lynn
    I took a multimeter and a 1.5v battery. It measure 0.93Vdc. I ran my VI and it measured 0.947358V. I then use the multimeter and measure the Omega while its unplugged from the DAQ:
    Switch to C: -0.016Vdc
    Switch to F: -0.030Vdc
    All tested while its ON. 
    I then ran the VI while its connected to the Omega. It displayed 0.125 on the num indicator. I use the multimeter and it measure 0.125Vdc. I think something is wrong with the Omega's readings. Also i was using the Acq 0-20mA Current Sample.vi from NI LabView examples. 

  • My voltage input reading are floating around and cant seem to get an accurate reading of any kind. What is causing this?

    Im trying to input a DC voltate on channel 1. So i hook up +5 to the channel 1 analog input, and hook up ground to the AIGND. When i measure it in continous time, i get a reading of -1.3 V, when i move the cable connecting the NI board and the DAQ, the voltage jumps around. I even tried connecting AIGND straight to channel 1 analog input, and read a voltage of 2.3, but its not stable, it jumps around a lot. What is this problem. please help

    This is going to depend on how you have your DAQ board configured. In differential mode, the positive input is channel 0, but the negative input is channel 8 (for 8 differential/16 single ended MIO boards. Channel 32 is - on 32 differential/64 single ended MIO boards). (Similarly, chan 1 (+) and chan 9 (-) are the next channels, etc).
    For single ended mode, chan 0 is the +, and AIGND is the -.
    I suspect you have your board in differential mode, and your - is not connected to the correct pin; therefore, your voltage is floating.
    Mark

  • Autotune PID Online and Inline vi%2C is there any bug in software%3F

    Hi,
    i am using labview 2014, I am using Autotune PID Online and Inline vi for level control,
    from examples, control and simulation, PID.
    while calculating PID values from waveform. calculation goes wrong.
    attached image for your reference.
    Please suggest.

    hi,
    Please any body tell me that the constant which has value 2 is by mistake,
    or is there any logic behind that.

  • The latest update to Firefox 3.6.14 has twice closed and disabled the program so that it will not re-start. Instead I get a message reading "The application was unable to start correctly (0x0000056). Click OK to close the application"

    The error console suggests that there is a missing semicolon in the code. It's unclear whether this is in the Firefox code or the Java script code, or for that matter whether it's the source of the problem. In any event the only way both times I have been able to get Firefox to work again is to download and reinstall it again. How can I stop this cycle and get Firefox to update correctly? My computer runs Windows 7, 64-bit.

    I was almost driven crazy by this problem. My Premiere CS6 displays error 0xc000007b exactly like your situation. I tried every method on the internet but none of them worked.
    Including copying the msvcr100.dll to the Premiere folder. Nothing happened.
    But this one sounds reasonable, comparing to some guess like video card problem or something.
    Since I don't use ilivid or something like this. So I thought maybe there was some file else which my computer lacked.
    But I don't know what it is.
    Then I got an idea.
    Here is what I did:
    Copy all the AE CS6 .dll file in "Support Files" folder.
    Backup all the .dll files in Premiere CS6 folder.
    Paste and replace them all!
    Then I found that Premiere Pro was able to start up. But unfortuately, it stopped in half.
    Well. Maybe I shouldn't click "replace".
    So I went back to the backup folder. Copied the origin .dll files.
    Paste and replace again!
    That's equal to choose "Not replace" at the first time.
    Now everything came back to normal.
    I want to get a sleep.

  • When I read an email on my iPad it remains unread on my macbook. How do I get it to "read" the e-mail on both?

    When I read an email on my iPad it remains unread on my macbook. How do I get it to "read" the e-mail on both?

    I ahve this problem too, my macbook is set up as an imap account for gmail, say I get an email and it shows as new in my gmail, iphone and macbook, and I then read it in my gmail, it is marked read on my iphone but stays as unread on my macbook.
    This is really annoying as if I read emails during the day on another computer I can come back to them all being new on the macbook.
    Is there a fix for this?

  • My macbook is loaded with microsoft work and every time I try and open the program I get an error reading and it will not open.  Powerpoint and the other applications still respond!

    my macbook is loaded with microsoft word for macs and every time I try and open the program I get an error reading and it will not open. This is what it says:
    The application Microsof Word quit eunexpectedly.  Powerpoint and the other applications still respond!

    The joys of Microsoft!
    Maybe the preferences file is corrupted.  You should be able to find the Word preferences file in the folder:
    your user name/Library/Preferences
    Its name is com.microsoft.Word.plist
    I suggest you drag this another folder and try Word again. 
    If that doesn't work then you might find clearing the cache files will fix the problem.  You can do this manually but I never bother. Instead I use a program like Snow Leopard Cache Cleaner (shareware) or Onyx (free). These programs do lots of other maintenance jobs so it's worth having at least one of them.
    Bob

  • How do is get back to Read & Write permissions on HDs ?

    Hi gang,
    I was trying to set up one central folder for 4 iTune users (accounts) in our household.
    One of the blogs said put in "Shared" folder and set permissions to "Read & Write".  I tried but on "Everybody" is does not offer the "R&W" option, just "Read".  They also said to be sure you clicked "Apply to Enclosed Items" in the drop down.  Although I could not set "Everyone" to "R&W", I clicked on "Apply to Enclosed Items" and the hard drives clicked for at least 15 minutes.
    Afterward I got a pop up that said...   System Extension "/System/Library/Extension/ACard6280ATA.kext" was installed improperly and can be used.  Try reinstalling.  and an OK button to click.  I clicked OK and at least 100 more popup appeared, one after the other as I clicked OK.   They all had the same basic message except the info after  /System/Library/Extension/, it kept changing slightly on each new popup.
    The big problem is I now have three of my four internal hard drives locked to my access and all they say custom on the permissions Privilege window.   Only my main HD is working, thank God.
    How do I get back to Read & Write on Privileges, and on all Hard Drives?
    Thanks for any help, I just made the move to MAC but have good background with windows operating system.
    Gary

    Thanks for all the reply's, I really appreciate your time.  I have Apple Care so I worked with Apple tech last night and today, but they had to pass problem on to their engineers.  They did a great job trying to help and spent 2 hours helping me input in code through the Terminal screen.  It helped a little, but we still can access drive 2, 3 and 4 due to the global permissions that were changed.   All in all, it looks like we have to reinstall the OS on a washed HD.
    I found out that the Repair program (Disk Utilities) only repairs permissions that were created after the initial set up.  It won't correct original setting and that's what happened when I clicked on "Apply to Enclosed Items" at the root level.  Likewise Time machine does not clone the main operating system so a restore would probably not get all the pieces back in their proper places.
    I was thinking of doing a reinstall of the whole Mac HD drive (boot drive) with an exact copy I made with Carbon Cloner a month back, but the techs seem to think they will have to work on of the 4 individual HD I have.
    Thanks again for the quick responses, I will let you know what happens in a few days.
    Gary

  • How can I get an accurate count of computers (workstations) logged in to my SQL Server database?

    We license our software by number of workstations.
    I have a query that I have used for years to get an accurate count of the workstations logged in to my SQL Server database. For simplicity, all users use the same login name/password. This is built in to the script that attaches to the DB. They
    have access only to that DB with the exception of
    USE [Master] GRANT VIEW SERVER STATE to MyUser
    The query that has been working is below:
    Basically this relies on the mac address (Master.dbo.sysprocesses.net_addre
    SELECT COUNT(Users) AS UserCount FROM (SELECT COUNT(Master.dbo.sysprocesses.hostname) AS Users FROM Master.dbo.sysprocesses LEFT OUTER JOIN Master.dbo.sysdatabases ON Master.dbo.sysdatabases.dbid = Master.dbo.sysprocesses.dbid WHERE (Master.dbo.sysdatabases.name = 'MyDatabase') GROUP BY Master.dbo.sysprocesses.net_address) AS UserCount_1
    ss), since both Workstation names and ip addresses can be duplicated.
    Recently this has stopped working at a number of customers. Suddenly individual workstations are showing multiple net addresses for the same workstation causing a substantial overcount of users. This may be related to SQL Server 2012 - not sure.
    What I need is a very reliable way to get a count of workstations logged in to my database.
    If anyone can tell me why I am suddenly getting multiple net_addresses for each workstation and how to prevent that that would be one possible solution.
    Otherwise if anyone can give me a rock solid way to get a workstation count other than the above that would be great. Our largest customer is 50 users by the way.
    Thanks in advance for any help.
    Kim

    I think your count is getting skewed because of duplicate rows in sysprocesses because of parallelism. Add DISTINCT to your query:
    SELECT COUNT(Users) AS UserCount
    FROM
    ( SELECT COUNT(DISTINCT Master.dbo.sysprocesses.hostname) AS Users
    FROM Master.dbo.sysprocesses LEFT OUTER JOIN Master.dbo.sysdatabases
    ON Master.dbo.sysdatabases.dbid = Master.dbo.sysprocesses.dbid
    WHERE (Master.dbo.sysdatabases.name = 'MyDatabase'
    GROUP BY Master.dbo.sysprocesses.net_address) AS UserCount_1
    Satish Kartan www.sqlfood.com

  • Why does ATT use fake member messages to get you to read a "how to" page?

    I signed in online today on my desktop computer to pay my ATT wireless bill - of course 10 days early as I do every month.  We have 2 wireless phones on our plan with ATT and no other services. After signing in, I was surprised to see multiple messages in my message center.  The only time I get email messages sent to my phone from ATT is when I've paid my bill and it confirms payment so it was unusual to see this. I clicked on "my messages" and I probably had 20 messages with today's date.  All were ATT notices such as "People in my area having problems with data", problems with texting, new ways to dial local, all things like this.   But - I received the following message and I am typing this EXACTLY: Did you know that your mobile service is suspended?  Reactivate now.   And the message is the link in my account to click on to go further.  I was shocked and checked my phone right away and it was working, then ask my husband if his working and it was also.  My bill is current and is always current.    I couldn't understand what was wrong.  So I click on the first link and this is the next message (copy and paste) from ATT and with my name and account number: From: A message from AT&TReceived: 07/08/2015 8:13 PM  (The time changes every time I sign in to the current time). Service for one or more of your mobile phones or devices is currently suspended. You can reactivate service here.   (The word "here" above was actually a hilighted word that is the link to the next page of ATT's message to me and I have changed that above to a regular typed word w/o the link). At this point I'm thinking my account is having some major problems and can't figure out why.  I click on this link and go to the next page and it is a whole thing on how to re-activate or suspend my phone.  I had no clue at this point and called ATT.  The service rep I talk to has no clue either why these messages are on my account and I gave her permission to look through them.  All she can figure is that it is some kind of advertisement / help screen for a "how to".  This call took about 20 minutes of my time and I really got no where and I'm very ticked off.  She did determine that my account is NOT suspended and that it is current. ATT this is RIDICULOUS, there is no one to remove this junk off of my account and ATT should not trick people into clicking on a message to get them to read a "how to" by sending a message telling them that their account is suspended and to re-activate it.  How dare you.  This needs to be removed off of my account and every other person that you have sent this to and NO I am not going to delete it myself.  There isn't one person out there who would have received this message from ATT and not perceived it EXACTLY the same way I did.  And every time I sign on it looks like a new message because it changes the time on it.  You've really sunk to an all time low by doing this.      

    My response was just as puzzled, but not as annoyed about the messages. I don't know why the 8th was bombed with "junk mail". I never read it as it is also forwarded to my email, usually junk, and doesn't app,y to me. I was amused that many were duplicated in Spanish (not pleasantly amused).
    Because I delete the emails, and never bother with the messages, I didn't realize I had more tha a years worth sitting in my account. It said (4) next to Messages. But there were several pages and it was closer to 50.
    No way to answer, or spam either.
    I sent an inquiry, I will let you know if I get a response.

  • I have an Ipad 2 and are having problems sending out emails in one of my email address. I always get a message reading the email was not sent because the server does not allow relaying. This is an email account POP3. I have no such problem with gmail.

    I have an Ipad 2 and are having problems sending out emails in one of my email address. This is a POP3 email Account? I always get a message reading that the email was not sent because the server does not allow relaying. I have no such problem with gmail. What could be the problem and how do I resolve this. Is it about settings?
    Richard.

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • How to get rid of  Reading List and why my add page going in there?

    My + on the toolbar is now adding pages to the reading list instead of the bookmark.. How do i change that/get rid off reading list? I want stuff to go to bookmark. I tried to change the setting in  in Safari>Preferences>Bookmark but I dont have a bookmark option.. Very annoying. I updated to 10.9.1 version. Help!

    Click and hold the button to add a bookmark.

  • How many images per sec can I get from ImageIO.read(url) ??????

    Hello,
    In my program I read images from a url...I'm wondering how many images I can get with ImageIO.read(url) per second..
    Hereby is the code that I'm using:
    import java.awt.*; //Contains all of the classes for creating user interfaces and for painting graphics and images
    import java.awt.event.*;//Provides interfaces and classes for dealing with different types of events fired by AWT components
    import java.awt.image.*;//Provides classes for creating and modifying images
    import java.io.*;//Provides for system input and output through data streams, serialization and the file system
    import java.net.URL;
    import javax.imageio.*;//The main package of the Java Image I/O API.
    import javax.swing.*;//Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
    import java.text.*;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class getPic extends Component{
    private BufferedImage img;
        static int n=0;
        private URL url;
        private DateFormat dateFormat;
        private Date date;
        private String s;
        private String str1= ".jpeg";
        private String str2="C:\\Users\\";
        private String str3;
        private String str4;
          public getPic() {
         try {
                  url = new URL("http://"); //a url that gives a real-time image
                  img = ImageIO.read(url);
                } catch (IOException e) {
               System.err.println("Unable to read file");
    public void savePic(){
    try{
    n++;
    str3=str2.concat(Integer.toString(n-1));
                        str4=str3.concat(str1);
                        ImageIO.write(img, "jpeg" , new File(str4));
                    } catch(IOException e) {
                      System.err.println("Unable to output results");
    @Override
        public Dimension getPreferredSize() {
            if (img == null) {
               return new Dimension(100,100);
            } else {
               return new Dimension(img.getWidth(), img.getHeight());
        @Override
          public void paint(Graphics g) {  //http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Paint.html
            g.drawImage(img, 10, 10, null);//http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html
        public static void main(String[] args) throws IOException {
           JFrame f = new JFrame(" Image without processing!!");
           f.addWindowListener(new WindowAdapter(){//http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/WindowListener.html
                @Override
                    public void windowClosing(WindowEvent e) {
                        System.exit(0);
        int i=0;
        for( ; ; ){
            i++;
            getPic pi = new getPic();
            pi.savePic();
            f.add(pi);
            f.pack();  //Causes this Window to be sized to fit the preferred size and layouts of its subcomponents.
            f.setVisible(true);
         try
            Thread.sleep(1000);
            }catch (InterruptedException ie)
            System.out.println(ie.getMessage());
    }Thank you in advance for your answers
    Joan

    Finally I solved my problem(getting as many images as possible from a url infinitely) using the above code:
    import java.net.*;
    import java.io.*;
    public class UserApplication {
        private static int n=0;
        String url;
      public void UserApplication(){
        public static void main(String[] args) throws Exception {
            UserApplication app= new UserApplication();
            for(;;){
            app.urlStr();
        private void urlStr(){
            try{
                url= "http://mplamplampla/frame.php/";
                HttpURLConnection con=(HttpURLConnection) ((new URL(url).openConnection()));
                BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream("C:\\Users\\mpla\\Desktop\\" + n + ".jpeg"));
                con.setDoInput(true);
                con.setDoOutput(false);
                con.setRequestMethod("GET");
                BufferedInputStream in = new BufferedInputStream(con.getInputStream());
                int bt = 0;
                byte[] buffer = new byte[4096];
                while ((bt = in.read(buffer, 0, 4096)) > -1) {
                  out.write(buffer, 0, bt);
                in.close();
                out.close();
                System.out.println("Image " + n + " saved");
                n++;
                } catch (Exception e) {e.printStackTrace();}
    }

  • I have iphoto '08 version with an imac osx 10.5.8. It will not read my RAW files  from my Nikon D800 - a very new model.How can I get it to read my RAW files?

    my somewhat old imac osx 10.5.8 with iphoto '08 will not read my RAW files from my new Nikon D800 camera - a new model on the market( 5 months or so). How can I get iphoto to read my RAW  files?

    iPhoto 08 would not read RAW files from that new a camera. You need to upgrade so you can get more up-to-date version of OS X and iPhoto. Another possiblity is see if iPhoto 11 will run on 10.5.8, if so you should update. You can also attempt to run Software Update and see if it finds a newer release of iPhoto 08 that supports newer RAW formats.

  • I have a windows pc, and a 2Tb portable HD, this contains all my music folders, what settings do i use or how do i get itunes to read my portable HD on F;/ drive ?

    i have a windows pc, and a 2Tb portable HD, this contains all my music folders, what settings do i use or how do i get itunes to read my portable HD on F;/ drive ?

    Hopefully you have the library files on the drive too, or access to the original computer where the library still works. See Make a split library portable.
    tt2

Maybe you are looking for

  • Display of image in rtf template

    Hi, I have a tag in my xml file like <ImageDistributeur>IMAGE:D:\EXPLOIT_UNPMF\Edition\Image\L29004G.tif</ImageDistributeur> and the image is stored in the particular location specified inside the tag. The xml file doesnt contain the image... My ques

  • Linkage of SO, PR and PO

    Hi In Back 2 Back Order -- sales order, purchase requisition and purchase order are interlinked. Is there any link/number visible on Frontend which can show the linkage to User. I understand that in Sales Order -> tools --> scheduling --> reservation

  • Why do a bunch of my photo albums show up blank?

    We bought an iPad for my Grnadmother, mainly for the reason of photos. I have all the photos laid out in folders in Aperature. I load them on and it seems to work fine, but a bunch of the folders are empty.  About 70% of them worked just fine, but th

  • How do I change the colour and keep the gradient?

    I've downloaded an EPS from Shutterstock with a series of icons that look like buttons and would like to change the colour breakdown, but keep the shading/ button 'look'. Please can you show me how? When I try to select a different colour breakdown o

  • Jdeveloper 11g TP4: Connection refused error for Embedded Oc4j

    Hi, I am getting following error whenever trying to deploy any application in embedded oc4j or whenever try to connect with embedded server on Resource palette. Error while getting remote MBeanServer for url: ormi://127.0.0.1:23891/default: Error rea