PID VI - Output Range Question

I have a question concerning the PID VI and it's output range option.
"What is gained or lost from using 0-100 versus -100 to 100 for a default output range?"
My application:
 My application provides the PID VI a setpoint and a process variable, both in degrees Celsius. I see that the output from the VI has a default range of -100 to 100. The power supply that I want to power accepts an input range of 0.0035 - 0.020 mV.
If I simply enter that range into the VI, the output is either zero or 0.020.
I can get other values if I use the larger scale and then convert them to the smaller numbers. I am trying to decide between using the range 0 - 100 or going with the default range of -100 to 100 and simply cutting off anything below zero in the conversion to mV. What is gained or lost from using 0-100 versus -100 to 100 for a default output range?
Thank you
-Ron

Here is an example of the four situations.
Thank you,
-Ron
Attachments:
PID Single.vi ‏129 KB

Similar Messages

  • PID range question

    Hi,
    I'm trying to understand what is the proper way to define a PID output range. here is the problem:
    I want to control the roll angle of an aircraft which gets input between 0 and 2.5 volts, when 0 means full left and 2.5 means full right. so if the angle is just right I'd like the PID output to be 1.25.
    what is the proper way to write it?
    should I set the PID's output range to [0 to 2.5] or use [-100 to 100] and adjust the output accordingly using an expression node with [(x+100)/80], or should I use an entirely different method?
    I currently use 0-2.5 which works fine at the steady state, but at the beginning of the run, when the aircraft is level I get an output of 0, which tilts it violently to the left.
    Another question is what is the proper way to reverse the PID's output:
    Because of different axes definitions, sending 2.5 to the roll channel will increase the roll feedback, while sending 2.5 to the pitch channel will reduce the pitch. So I need to inverse the PID's action, but again, I don't know what will be the proper way of doing it:
    should I inverse the output range (i.e 100 to -100), or should I multiply by -1 either the proccess variable, the setpoint or the output?
    thanks a lot for your comments!
    Solved!
    Go to Solution.

    Hi shayelk,
    the result of negating P would practicaly be similar to multiplying the output by -1, right?
    Well, negating P changes the direction the PID control works. It's like changing from a heater to a cooler…
    What do you mean by "provide the manual control at all times"?
    From the help of Advanced PID:
    manual control specifies the value of the control output when auto? is FALSE.
    When auto? is FALSE, this VI uses manual control. This VI uses bumpless transfer from manual control to automatic control.
    When the PID is off (auto?=FALSE) it will output the value wired at manual control. When switching to auto?=TRUE it will not jump to a new output value, but will "sweep" to a new value as is said: bumpless…
    I think that's what you want: when activating the PID it should start with the last value provided by manual control…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Small PID output range causes on/off control only

    I am using the PID VI to control the signal to a heater in a refrigeration test rig. When I set the output range to 4-20 (representing 4 to 20 milliamps) it seems to control OK. However, for a new device, the range must be set in amps not milliamps, and I find that when I set the output range to 0.004 to 0.02, I only get on/off control. In other words, when the process variable exceeds the setpoint by even the smallest amount, I get 0.004, and when it is less than the process variable, I get 0.02. There is no in-between.
    Can anyone please explain this to me. Coupled with this, can anyone point me to a decent document that describes how this PID VI should be set up and used. I can obviously work around the problem by setting the output range to 4-20 and then divide this number by a thousand before feeding it into the output DAQ card, but I find the whole thing very confusing. I thought by having settable output ranges, the PID program would scale these values for you.
    Regards,
    Will

    The PID Control Toolset User Manual can be found here.
    http://digital.ni.com/manuals.nsf/websearch/A25258DF0D3E3CB386256B41000BA9B9
    If I read page 2-1 correctly,
     reducing your "P" value by a factor of 1000 should do the trick.
    Ben
    Message Edited by Ben on 05-03-2006 12:27 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    PID_Operation.JPG ‏18 KB

  • Noise in PID control output at 100% even when constants used as inputs

    I am using the PID toolkit to control valve movement in a system.  We are having an issue with large output fluctuations (~4%) when the valve is controlled completely open, PID output 100%.  This does not occur when the valve is controlled completely closed, PID output 0%.  We thought it might be caused by noise in the SP or PV signal but it still occurs even when constants are used for these variables.  The output range for the PID.vi is set to 0-100%.  Has anyone seen this before and if so how do I prevent it from occurring?  Thanks,

    The PID output is going between 96% and 100% when I think it should be 100%.  For example if my setpoint is 5gpm and the process variable is 3gpm I would expect the the valve to open to allow more flow.  If I set the SP as a constant 5gpm and the PV as a constant 3gpm, I would expect the PID to move to 100% and stay there.  But it fluctuates rather than remains steady.  We are using a cRIO to output 4-20mA signal to several control valves. 
    I know that my other post is mostly a repeat.  Our internet timed out and I thought I lost my original message.  I have not seen a way to remove the duplicate.  If you know, please tell me.  Thanks,

  • I don' Know the input/output range for my AT-MIO-16L-9 card.

    I did'nt have any problem, but sudenly my computer does not recognize my device. When I run the Ni-Daq recognition utility I don't Know what to put into the input/output range, I also have Windows NT 4.0

    nhhnh,
    First, reverify the proper installation by going to: http://www.ni.com/support/install/.
    For information on the input and output ranges, you can find this information in the User Manual: http://www.ni.com/pdf/manuals/320476.pdf.
    Have a great day!

  • Output range of FW-7344 (16bit D/A conversion)

    I am not sure if I did the calculation correctly:
    As stated in the user manual, the analog input for FW-7344 is 12-bit, with my setting of +/- 10V Input Range, the cooresponding binary value is from -2,048 to 2047.   However, for the "16-bit" analog output (or digital/analog conversion), I'm not sure if the conversion is done based on my +/-10V setting (i.e. -32768 to 32767) or if it depends on another device that the output is connected to?
    Thanks~

    I'm not sure if I understand your question correctly or if I miss something. The analog output should work as you have written. Of course the voltage would drop if the input impedance of your exernal drive was too low.
    Please let me know if this answers your question.
    Jochen Klier
    National Instruments Germany

  • Oracle Reports 10.1.2.3 output shows question marks, parameter form shows correct Arabic

    Hi
    Following is our environment
    Oracle Application Server     10.1.2.3.0
    Microsoft Windows 2003 Enterprise Edition Service Pack 2
    Oracle Database 11.2.0.2.0
    NLS_LANG     AMERICAN_AMERICA.AR8MSWIN1256
    When client runs the report on browser (IE), the parameter form appears fine with Arabic characters.
    Inserting the parameters in Arabic also look fine and characters display in Arabic but when report is generated, the output shows the inserted parameters as ????
    On server, regional settings are ALL Arabic. Also the registry has NLS_LANG setting of AMERICAN_AMERICA.AR8MSWIN1256.
    Report output is same for both html and pdf formats. For PDF subetting, uifont.ali file has been modified but the issue does not seem to be PDF related since the html format reports also shows ???
    It is a 3 tier setup hence there is no question of having NLS_LANG registry settings for client PCs that are running Windows OS with Arabic regional settings that match the server.
    Interestingly, the same report when run from a different application server having same architecture runs fine. The other application server has exact same version of OAS. Database supports Arabic and is configured as such.I tried comparing the different configuration files on both servers but apparently I cannot find the place where I should change something for the reports to show correct Arabic.
    SELECT * FROM NLS_PARAMETERS
    WHERE parameter IN ('NLS_CHARACTERSET','NLS_LANGUAGE');
    NLS_LANGUAGE
    AMERICAN
    NLS_CHARACTERSET
    AR8MSWIN1256
    I am writing this after doing quite some research but seems like I am unable to find a solution to this.
    Any help will be appreciated.

    Thank you Paul for your reply.
    I think you misunderstood me. I understand that it is all volunteer work and I never said I was looking for "quick" or "sure" response. I did not even use the words IMMEDIATE or URGENT in my post. I found it strange because I personally believe that there are many volunteers providing great support to others and yet my post somehow went unnoticed. In my personal opinion, however, if you do not wish to reply then you should just ignore rather than being rude. No one can force anyone to do the good work that people are doing here at oracle forums and they are all doing this out of choice. Let me also assure you that me and people like myself really appreciate their efforts.
    Having said that, I wish you had taken time to read about my issue. There is infact a registry setting that specifies the NLS_LANG and it is already set under both Infrastructure and Middle Tier in the registry. I mentioned it earlier. The value is AMERICAN_AMERICA.AR8MSWIN1256 and I believe this is correct for Arabic characters.
    What is confusing for me is the fact that if browser was not capable of showing Arabic characters then the static Arabic words in the reports layout (field name for instance) would also show as garbage or question marks. They appear to be fine. Since we are just passing some parameters in Arabic language and not saving anything in the database, the DB characterset does not come into play for now. Although the DB characterset is also set to store Arabic data. We are displaying the parameters that we are passing through the parameter form in the output of the report and this is where we see question marks (????).
    Finally, if it was a browser issue or a DB characterset issue, then in my limited knowledge, I believe that the report that we are running using the other Application Server that is pointing to the same database should also show the same behaviour. That is not the case as it displays the same report perfectly. Client machine is the same in both cases using Windows 7 and IE as browser.
    http://appserver1/reports/rwservlet?admin/myreport           (connecting to db1)    works fine
    http://appserver2/reports/rwservlet?admin/myreport          (connecting to db1)     show question marks
    Above URLs are examples. The point I am trying to make here is that the issue has to be with the new application server and it cannot be registry settings as I have double checked the entry and it exists in all Oracle Homes ie Infrastructure and Middle Tier. So maybe it is some configuration file setting that I am missing here.
    Any help will be appreciated.

  • Handling unit output determination questions

    I have configured a new output type for a custom label we need to implement for handling units.   It is assigned as V6, for Ship-to Party/Shipping Material.
    In VL01N or VL02N, I am able to create the handling units and pack the delivery line item materials into them.
    I am able to manually assign the output type to the handling unit in VL01N/VL02N, but have not been successful in getting the output type to auto populate.  I have verified that it is not populated after packing the HU and saving from VL01N, or when doing from VL02N, or after PGI.
    I have been searching the forums and have not found the answers I need.
    1.  Is it possible for the output type to automatically populate for a handling unit?  If so, at what point should this happen?  I would think based on how our custom label output types for delivery documents behave, it would assign after save from either VL01N or VL02N.
    2.  When I create the HU, I specify a VERP packaging material number that represents the carton in order to create the HU.  I do not have the material on the sales order or delivery as a line-item, and I am not getting any error messages indicating that it should be. 
    If this should work the way we expect it to, any suggestions on what I have overlooked that would prevent my output type from automatically assigning?
    Thanks in advance for your help.
    Dave

    Hi Joan,
    Thank you for your answers.  They were most helpful.  I was finally able to get the new Output Type to assign after I created the HU's and saved the delivery.
    Hopefully you won't mind if I ask some related questions.
    1.  If I went to VL02N for a delivery where I had already created the handling unit, it did not automatically get the Output Type assigned when I saved.  (Like it does for our delivery based labels when I add a user in NACE that previously wasn't identified to get the label.)   Is this the normal behavior for HU-based output or am I still missing something in my setup?
    2. I did the VHAR step and specified both the Output Determination Procedure and the Output Type of my new label,as suggested.   This did work once I finally tested by creating a new HU for a delivery, rather than checking an existing delivery/HU.  Is entering the Output Type here critical?  If another customer has a different label format, I think assigning the Output Type here this will cause a problem for us.  (I haven't had a chance to change the config to remove this and see if the Output assigns based on references elsewhere, now that I know it seems to assign only when the HU is initially created.)
    Thanks again!
    Dave

  • Output levels question

    When I am recording a vocal track the levels meter is well under clipping, but still quite strong; however, upon playback, it barely shows action in the meter. But, the Output 1-2 levels (which is combining all my vocal and insturment tracks) shows clipping about +6.0. If I mute the vocal track the Output 1-2 is back under clipping range.
    What do I need to look for?

    every time you had a track the summing amplifier will
    increase in dbs.
    Is it best to keep the Output at 0db and lower the volume of the tracks (and/or using other adjustments)?
    check for compressors or eq in the chain
    Yeah, I need to do this. I haven't done a complete mix for the tracks yet. I just added some reverb via Bus 1 so the vocals wouldn't sound so dry/flat on playback.
    select all your other tracks , shift and click on the
    other tracks to drop them down simultaneously
    Do you do this in the Arrange window or the Mixer window? I tried it in the Mixer window with three of the tracks. Two of them worked and the third jumped to a totally different level, so I went back to adjusting them individually. And, after selecting them do I move the slider for one and the others follow?

  • Volume output range with AirTunes

    Just hooked up my new Airport Express with AirTunes. I'm driving the audio output from the AE directly into an amplifier and finding that the volume range is pretty narrow. I can adjust the gain on the amp but if I set it such that the minimum volume is quiet (like background music for dinner), then the maximum volume is not very loud. I can adjust the amp gain to make loud nice and LOUD but then minimum volume is still pretty loud.
    I don't have this problem driving audio from my PowerBook headphone jack directly into the amp. It seems like the combination of the volume control in iTunes + the laptop's volume control gives a good range.
    Does the Airport Express have adjustable gain? Do I have to buy a preamp if I want to get good volume range out of the AE?

    Found a solution:
    http://www.rogueamoeba.com/airfoil/mac/
    It's got two stages of digital amping (volume control) so I can crank up the amp's gain and still dial the volume down low.

  • Output Settings Question

    Which I'm sure has been written tons of times problem is I can't find any info I need on it except for settings when rendering small files like intros maybe 5 to 10 seconds.
    I have to do a set of animations that require text, images and efects. Nothing crazy, pretty conservative. I saved the file in Premiere with an 800 x 600  ratio. first I need to saved the file in it's entirety which is almost 900mbs , looks and plays great. Now I will need to optimize this file for either You Tube or an flv. I know I will have to split the files into sections or chapters so there are lets say 8 chapters and the fie is almost 55 minutes so figure an even hour so lets say 8 minutes each. Is this still too much time?
    Regardless I just took 5 minutes of finished footage and rendered it in Quicktime, I need to figure out a good aspect ratio like 480 x 360 for You Tube or Flash?
    any help?
    rd

    Well, AME includes a preset specifically for YouTube, though I've seen reports of it not working very well or giving less-than-stellar results.
    I've developed several encoding algorithms for H.264 that seem to work very well for YouTube video. I've attached screenshots of the one for my SD footage and the one for my HD footage (note the very different finished file sizes). They both give very good results, and the HD version is true 720p HD. I've also got a couple of mid-range encoding algorithms, and if you'd like to see them I'll post them as well. Obviously you may need to adjust your frame size to match your timeline, or you can just use what I've got here and have bars on the top/bottom or sides. (FWIW, the HD version is a direct copy from what Vimeo recommends for their Plus users to use for HD uploads). For both of these, set your multiplexing to .mp4 and "Standard" or "iPod." Audio is 32 bit, 48kHz, 128kbps, AAC, though you could adjust that however you wish. Here's an example of the output of the HD version. Shot with a JVC GY-HM700u at 1920x1080 30p mixed with a small AVCHD camcorder at 1920x1080 60i.

  • Sequence and Output Settings Question

    Hello all,
    I'm know this is a rookie question, but it's often hard to find a definitive answer to these types of things.
    Here's my specific situation:
    99% of my final output will be SD NTSC DVD-progressive for corporate shows, and I create almost all of my own content, or use stock animations from companies like Digital Juice. Rarely do I ever deal with DV captured from tape.
    Given the final output, and given that my generated media can be basically whatever codec I want, what's the best sequence settings to use in FCP, and the best way to output it for nice, crisp, progressive DVD playback?
    Thanks!
    SyddyS

    Mac Pro 2x3.0 Dual, 4GB Memory, ATI Radeon 1900
    Also, on another note, I'm currently in a REALLY rare situation for me where I'm recording to DV tape. Everything looks great except for all titling created by FCP. Does FCP titling just suck? Anything in red or green hues has vertical lines running through it.
    Thanks!
    SyddyS

  • Digital PID Loop Output from MV?

    I'm setting up a PID loop with a digital output. It's a heating pad (which heats up pretty quickly). I've been looking for a good example of PID loops with digital outputs and haven't really found much. It seems like I just need to find a way to turn a 0-100% value into a binary value which turns on and off rapidly.
    I made a simple little VI which I would attach to the output (MV) of the PID loops (standard). I just wondered if anyone could let me know if this is good enough? Is there a level of complexity I haven't thought of yet?
    Attachments:
    Digital PID Output.png ‏21 KB

    Are you looking for a PWM digital output?  If so, this thread might be useful.  It uses a USB-6008 for the digital ouput so it should work with any NI-DAQ device with a digtial output.  There are better ways of doing PWM with more capable devices but it's a start.
    ~Simon

  • Output type question

    Hi Friends,
    I need your help. Currently I need to analyse what are the output types for print output and fax on production. I did that and I noticed that the Output type is NEU for both the mediums, i.e Print output and Fax.
    My questions is if NEU is the o/p type for both, then how do we differentiate that a supplier should be only faxed, or only emailed, or both ?? What setting/ config could it be ?
    Your ideas will be appreciated.
    Many Thanks,
    Max

    @ kalyan Gorla -
    Sorry but this is not what I am looking for. Let me explain once again.
    I have a production system right now in which NEU is being used for both Print and Fax at the same time. i want to know how are these both being used at the same time. for example, I have a purchase order with 2 output types in the message tab. i.e NEU with print and NEU with fax. Now in our project we want to use this NEU but the business requirement is to just send a  print and not fax by using NEU to the suppliuer. So I want to understand how are 2 NEUs being used at the same time.

  • Vbscript for sending output of question by emails

    Hi,
    I need a script that will have several questions , and i want to take the answers and send it by email(using outlook software) in the body and not with file attached .
    I got a script to the questions and answers , and i have the script of sending an email with outlook , i just dont know how to link the output to the body.
    here are the example i own (suggestions and adjustments will be welcomed):
    script for the mail :
       Set objOutlook = CreateObject("Outlook.Application")
       Set objMail = objOutlook.CreateItem(0)
       objMail.Display   'To display message
       objMail.Recipients.Add ("*****@****.**.**")
       objMail.Subject = "Mail Subject"
       objMail.Body = "This is Email Body"
       objMail.Send
       Set objMail = Nothing
       Set objOutlook = Nothing
    script 1 for q/a :
    Const ForReading = 1, ForWriting = 2, ForAppending = 8, CreateIfNeeded = true
    set fso = CreateObject("Scripting.FileSystemObject")
    set file = fso.OpenTextFile("output.txt", ForAppending, CreateIfNeeded)
    dim fname
    fname = inputbox("Hi! What's your name?")
    dim fname2
    fname2 = inputbox("And what is your job ?")
    file.write fname
    file.write fname2
    file.close
    script2 for q/a :
      ' Input Box with a Title
      a=InputBox("question1","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question2","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question3","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question4","Enter Value")
      msgbox a
      ' Input Box with a Title
      a=InputBox("question?","Enter Value")
      msgbox a

    Here you go:
    'Input Box with a Title
    sText = InputBox("question1","Enter Value") & vbCrLf
    'Input Box with a Title
    sText = sText & InputBox("question2","Enter Value") & vbCrLf
    etc.
    Now put your E-Mail code here, including this line:
    objMail.Body = sText

Maybe you are looking for

  • Access class' properties (in _root) from movieclip timeline?

    I'm trying to follow the advice "class properties are better then _global variables", but how could I access a class' properties (imported in the main timeline) from a movie Clip timeline? this code in the main timeline works (and trace the value of

  • Lite vs. Personal Edition

    What is the difference between the Lite and Personal Edition versions? Thanks.

  • How to make a page reload

    Hi every body, and thank you for reading my post, here's the question I have Does anybody know how can I make a page reload??? Thank's

  • The "save selection as channel" options don't stick

    In PS CS5, I can't get the settings for the "Save selection as channel" options to stick. My saved selections always starts out as black for the selected area although the small icon at the bottom of the channels panel shows a white circle on a black

  • Save Image to system's ClipBoard .PLEASE HELP!!!!!

    Hi, I'm trying to save an Image from my GUI to the System's ClipBoard but I just can't get it to work. I've overriden a JPanel's paint() method where I draw my own stuff. I've used the following code which I found in the forum : class ImageSelection