Use of zero-pole.vi

Hello!
Can any body explain to me why the step-response of the given transferfunction depends on dt?
Many thanks for your kind endavours
Peter
Attachments:
Test Zero-Pole1.vi ‏42 KB

Peter,
Yes, the dT influence is present in any simulation accomplished by the computer and even RK4 would suffer because of it. However, the Euler (also know as RK1) has a peculiar characteristic: when the sampling time grows large, because it can only see the next step ahead, the error resulting from this will be too great and it actually will become unstable for dt bigger than 0.8 (for this problem). If you try to use RK 2 or 3, the dT until it gets unstable increases because it can correct with intermediate steps. between major time steps. It works like you increase the number of sampling for your problem. However, if you keep increasing dT, you will find a point were the sampling time will make the solution unstable. The interesting part about using higher order solvers is that the error doesn't affect much the response.
I created this example that shows what I said above. It you will need Control Design and Simulation to use it. The Screenshot shows the difference.
Hope this helps!
Message Edited by Barp on 03-05-2008 08:06 AM
Barp - Control and Simulation Group - LabVIEW R&D - National Instruments
Attachments:
Differences better RKs.vi ‏160 KB
RK.PNG ‏37 KB

Similar Messages

  • AutoSize not working properly in TextField when using non-zero line spacing

    When using non-zero line spacing, the autoSize property is not functioning as expected, causing text fields to scroll that shouldn't.  Also, when using device fonts, the sizes of the TextFields are wrong in the Flash IDE.
    I have a TextField whose height is supposed to be dynamic, depending the width of the TextField.  wordWrap is true, the text is left aligned, and the autoSize value is flash.text.TextFieldAutoSize.LEFT.
    When the TextField's width is adjusted, the height increases or decreases as expected, but when I scroll the mouse wheel over the TextField, it allows a single line to scroll out of view.  This should not be happening.  The autoSize property should ensure the TextField is large enough to neither require nor allow scrolling.
    Has anyone else encountered this issue or know how to fix it?
    Update: Been a problem since at least 2006! > http://blog.nthsense.net/?p=46
    http://www.kirupa.com/forum/showthread.php?288955-Disabling-textfield-scrolling   Bug is caused by using a line height ("line spacing" in Flash) larger than zero, for example 1.0pt.  It looks like when I reduce the line spacing of the text field to zero, the issue goes away.  There doesn't seem to be anything wrong with how autoSize is calculating the required height of the text (i.e. it is exactly textHeight + 4 pixel gutter, and drawing the rectangle (2,2,textWidth,textHeight) aligns visually with the text), so it must have to do with how the TextField is deciding whether it needs to scroll or not, and that separate calculation is being thrown off by the non-zero line spacing.  The additional non-zero spacing at the end of the last line could be making the TextField think it needs to scroll, even though it's hight is sufficient at "textHeight + 4".  Apparently the problem manifests when using a non-zero leading value as well.
    In fact, it has to be related to the leading value exactly, since the following code stops the textfield from scrolling.
    //body is TextField
    var tlm:TextLineMetrics = body.getLineMetrics(body.numLines - 1);
    trace(tlm.leading); //traces "1" here.  traces zero when line spacing is zero, and traces larger values with larger line spacing values
    body.autoSize = flash.text.TextFieldAutoSize.NONE; //turn off autosize so the height can be set manually
    body.height += tlm.leading; //increase height of textfield by leading value of last line to cause scrolling to be turned off.
    Honestly, this is pretty unacceptable bug.  First of all, scrolling should not be sensitive to trailing line spacing, because autoSize and textHeight do not include it. It need to be consistent, and I think textHeight and autoSize setting height = textHeight + 4 is correct.  Vertical scrolling should use textHeight as it's guage for whether scrolling is necessary, but instead, it's obviously involving the leading values of the last line.  At the very least, vertical scrolling should simply be disabled when autoSize is turned on and wordWrap is true, because the TextField should be big enough to fit all the text.  The workaround of manually adjusting the height is also no good, since turning autoSize back on will immediately change the size back and trigger scrolling again.  I also shouldn't have to set line spacing to zero just to use the autoSize feature, since the scrolling calculations are wrong in this way.

    No, lol.  Luckly, I replace most of my TextFields on the display list with my subclass TextFieldEx.  I just call a clone method that accepts a TextField and returns a TextFieldEx with identical properties.
    I corrected the problem via modifying the subclass to behave differently when autoSize is not NONE and wordWrap is true.  Under those conditions, the maxScrollV and scrollV property values are fixed at 1, and the class listens for its own SCROLL event and sets scrollV to 1 when it occurs.  That allows me to leave everything else alone, including text selection, and use whatever line spacing I want.
    The modification seems to work fine so far.
    For anyone interested in doing something similar, here is a clone method that will copy a TextField.
    public static function clone( t:TextField ):TextFieldEx
                                  var te:TextFieldEx = create( "", t.width, t.type, t.multiline, t.wordWrap, t.selectable, t.embedFonts, t.defaultTextFormat );
                                  te.alpha = t.alpha;
                                  te.alwaysShowSelection = t.alwaysShowSelection;
                                  te.antiAliasType = t.antiAliasType;
                                  te.autoSize = t.autoSize;
                                  te.background = t.background;
                                  te.backgroundColor = t.backgroundColor;
                                  te.blendMode = t.blendMode;
                                  //te.blendShader = t.blendShader;
                                  te.border = t.border;
                                  te.borderColor = t.borderColor;
                                  te.cacheAsBitmap = t.cacheAsBitmap;
                                  te.condenseWhite = t.condenseWhite;
                                  te.displayAsPassword = t.displayAsPassword;
                                  //te.embedFonts = t.embedFonts;
                                  te.filters = t.filters;
                                  te.gridFitType = t.gridFitType;
                                  te.height = t.height;
                                  te.opaqueBackground = t.opaqueBackground;
                                  te.restrict = t.restrict;
                                  //te.selectable = t.selectable;
                                  te.sharpness = t.sharpness;
                                  te.thickness = t.thickness;
                                  te.transform = t.transform;
                                  //te.type = t.type;
                                  te.useRichTextClipboard = t.useRichTextClipboard;
                                  //te.wordWrap = t.wordWrap;
                                  //Assign text last
                                  te.htmlText = t.htmlText;
                                  return te;
    //And the create method it uses
    public static function create( text:String = "", width:Number = NaN, type:String = null, multiline:Boolean = false, wordWrap:Boolean = false, selectable:Boolean = true, embedFonts:Boolean = false, font_or_textformat:*=null, size:Object=null, color:Object=null, bold:Object=null, italic:Object=null, underline:Object=null, url:String=null, target:String=null, align:String=null, leftMargin:Object=null, rightMargin:Object=null, indent:Object=null, leading:Object=null ):TextFieldEx
                                  var tf:TextFieldEx = new TextFieldEx();
                                  tf.width = isNaN(width) ? 100 : width;
                                  tf.defaultTextFormat = (font_or_textformat is TextFormat) ? (font_or_textformat as TextFormat) : new TextFormat( font_or_textformat as String, size, color, bold, italic, underline, url, target, align, leftMargin, rightMargin, indent, leading );
                                  tf.embedFonts = embedFonts;
                                  tf.multiline = multiline;
                                  tf.wordWrap = wordWrap;
                                  tf.selectable = selectable;
                                  tf.type = type;
                                  tf.text = text; //setting text last ensures the text line metrics returns correct values
                                  //Initialize the TextField's size to fit the text.
                                  if (!multiline)
                                            //When in single-line mode and no specific width is given,
                                            //expand width to entire line.
                                            if (isNaN(width))
                                                      tf.width = tf.textWidth + 4; //match width of text
                                  //Height is always automatically adjusted to fit the text by default.
                                  //It's better than the arbitrary 100px default height.
                                  var minimum_height = tf.getLineMetrics( 0 ).height;
                                  var h:Number = tf.textHeight;
                                  tf.height = (h < minimum_height) ? (minimum_height + 4) : (h + 4); //match height of text, ensuring height is at least enough to display one line, even if there is no text
                                  return tf;

  • Can I use Goal Zero Nomad 7 solar charger  to charge I Phone5?

    Can I use Goal Zero Nomad 7 solar charger  to charge I Phone5? When I hooked it up to the Goal Zero charger I got the normal "charging" chirp sound from the phone but when I checked on the charging progress about 30 minutes later the I Phone 5   had a warning message saying "Charging is not supported with this accessory" with a black exclamation mark in a yelllow triangle. Am I doing harm to my IPhone 5 to use the Goal Zero charger? The GZ website makes a big deal of how this charger can charge an IPhone5 and makes not mention of incompatibilty. But the replies  on GZ's youtube video include numerous mentions of this problem. GZ responds that the user should contact [email protected] at GZ for help. I wrote that person just now. Let's see what they say.

    The iPhone 5 requires 5 volts x 5 watts and 1 amp, the goal zero nomad 7 puts out only 2.5 watts x 5 volts and 0.5 amps.. This is where your problem lies, not enough juice for the iphone.
    I would recommend the Suntactics sCharger-5 (the charger I have) which puts out 5 volts x 5 watts and 1 amp, which is exactly the same amount of juice the iphone requires.
    Click here to see the product description of the sCharger-5

  • BPM SMQ2 in sysfail Access using a 'ZERO' object reference is not possible

    Hi ,
    I am working on a IDOC to SOAP synchronous scenario
    So I am using a BPM....
    I have written a operation mapping outside BPM
    1) Request MM creates the SOAP rquest
    2) Response is a ABAP mapping where i am checking the response from webserice and then generating an email using ABAP code.
    now when i am running this scneario works fine and the mail gets generated...
    however i get a green flag in moni  and in SMQ2 in sysfail Access using a 'ZERO' object reference is not possible
    PS : Also  the response coming from the webserice has a custom header which does not match with the response ABAP mapping source MT
    however if I work on the same thing using Proxy to SOAP sync there is no sysfail message and it works fine
    Is this a bug in the system ...i am using PI 7.1

    Hi,
    Try to implement SAP note 1164228 or apply package SAPKB71007 to resolve your issue.

  • Use of Zero (0) in Required Drop-Down List Field

    Using LiveCycle Designer ES 8.2.1x and Acrobat Pro Extended 9.1.2.
    I have a drop-down list (DDL) on a form for entering a quantity.  For certain reasons (i.e., quantity bundling/packages), I want to use a DDL.
    For one thing, if I set the default value to zero (0), that value does not appear in the DDL in the published form.
    Moreover, I've set the field to "User Entered - Required".  However, the form doesn't recognize/validate zero (0) as an entry in this field, and I need it to.
    Is there a trick to using a zero (0) as a value in a DDL, esp. one set to "required"?

    I too was unable to recreate the error/condition, so, I deleted and
    re-inserted the fields, without a problem.
    B

  • Anyone using VXC zero client with IP Communicator, UCCX and AQM?

    Wanted get gauge of if running Virtual desktop using VXC zero clients will work replacing our desktop recording for our call center.

    There are some known issues like one -way or no voice being heard only while using VPN. Check the following link http://www.cisco.com/en/US/partner/products/sw/voicesw/ps5475/prod_release_note09186a008043a3ba.html for known issues. But in this case I would suggest you to upgrade the VPN client software

  • Zeros-poles-gain configuration

    Bonjour;
    Je travaille avec LV 2010
    - Je n'arrive pas a configurer un terminal d'entrée pour la fonction zero-pole-gain avec un cluster  de tableaux (z,p,k)  issus d'une identification non-entière.comme illustré dans les pièces jointes.
    - Comment faire pour indexer le signal d'entrée dans la boucle de simulation; Faut-il generer un tableau exterieur a la boucle et comment indexer le signal en fonction de " l'itération" comme pour les  boucles While ou For.
    Merci pour votre aide et  à bientot.
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    ni.png ‏47 KB
    Sim.vi ‏119 KB

    Bonjour,
    Merci d'avoir posté sur le forum NI.
    Quand j'ouvre votre VI je n'ai aucun fil brisés sur la fonction Zero-Pole-Gain. Il est executable.
    Pour votre problème d'indexation, vous pouvez utiliser une variable que vous venez incrémenter à chaques tour de la boucle de simulation. Pour cela je conseille d'utiliser une Variable Globale Fonctionnelle comme celle jointe.
    Cordialement,
    Nicolas M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées Techniques LabVIEW 2012 : du 27 septembre au 22 novembre
    2 sessions en parallèle : Débuter a...
    Pièces jointes :
    FGV.vi ‏11 KB

  • SF300 and using Subnet Zero and All-Ones Subnet

    Anyone have experience using Subnet Zero and the All-Ones Subnet on the SF300 series switches?
    We have a scenario which we are using an SF300 as a Gateway Device.  We have a /29 broken up into two /30 subnets.  We have two routers which need to be isolated from each other, but use the same Internet service/circuit.
    We are in need of adding a third router which needs to be isolated from the other two. After requesting additonal IP addresses, our provider has claimed we need to use the Subnet Zero and All-Ones Subnet to make effecient use of the IP's which will ultimately give us the additional IPs we need.
    I am not familair with thsi practice or setup. Can anyone provide insight and/or if the SF300 series supports this?

    Hi Brian, this switch will not support an all-one subnet mask.
    -Tom
    Please mark answered for helpful posts

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

  • Disadvantages of using "0" zero as first value in a generated sequence

    Does anyone have any experience with the benefits/disadvantages of using a value of 0 "zero" as the first value generated in a sequence that is also populated in a table. My past experience has always used the values of 1 "one" as the first generated value from a sequence.
    Thanks

    Benefit: You get use one "more" number from the list of values that can possibly be generated by the sequence. If you are start from '1', you have missed out on '0' :-)
    Disadvantages: If any of the queries have predicate like "sequence_generated_column_value > 0" and that your sequence starts from zero, the record with sequence_generated_column_value=0 will not appear in result set for that query (assuming it satisfies other conditions).
    May be there are many mores benefits/disadvantages to add to this list :-)

  • Stopping a page from using Page Zero

    I have an Apex application (v 4.2) which uses a page zero, and one level navigation tabs. Is there any way to create a new page which still uses the navigation tabs, but doesn't inherit page zero?
    Or can I create a 'different' page zero and have some pages inherit that instead?

    Antilles wrote:
    I have an Apex application (v 4.2) which uses a page zero, and one level navigation tabs. Is there any way to create a new page which still uses the navigation tabs, but doesn't inherit page zero?
    What exactly are you trying to do? What do you mean by "one level navigation tabs"? Standard tabs are rendered by the page template, not by a region.
    To suppress a page zero ("global page" in new terminology) region, use a Current Language is not contained within Expression 1 condition on the global page region, and create a region with a different definition in that display position on the new page.
    Or can I create a 'different' page zero and have some pages inherit that instead?
    No, APEX currently only permits one global page for each user interface type defined for the application.

  • Can Lightroom use leading zeroes?

    My file naming convention is 3-digit with leading zeroes. This allows the files to naturally sort in the correct order. I cannot stand to see a list of files such as: 1, 10, 11, 12, 2, 21, 22, 23, etc.
    This is such a simple thing, but I don't seem to be able to get LR to do this for me. Bridge will do it... Hm-m-m-m-m.
    Oh. I'm on a Mac G4 Powerbook, CS3 upgrade and LR.
    Thanks,
    Kittie

    I don't keep the files I export or import them back into LR. I exported from an ordered collection and renamed them so they would "float" in order alphabetically for a slide show.
    If you are going to be using LR, won't you want to move your photos from iview? Why don't you post another question about iview. There must be people here who have converted from it. First, try a search of this forum for iview.
    I've found that if there is a photo taken within the same second, LR adds something, I think a -1 to the name.
    Metadata. There are some things written, even entire books on DAM (Digital Asset Management). I've had some experience cataloging my photos in other products so I kind of knew what I wanted to do in LR. Think through how you will want to view your photos, what you will want to search on, etc.
    For example, me. We do a lot of traveling. I want to be able to find all photos from a particular trip. I do folder by trip, so that works so I wanted a program that supported my own folder organization, which LR does. But folders don't identify a photo if it gets out of its folder, so I chose an IPTC tag to use to identify them. I chose Job Identifier after reading about the tags and what they are usually used for.
    Non-travel photos are foldered by date, mostly. So to find a picture of a particular flower or a particular person, I will need keywords. I also like the fact that you can order or find things by capture date in LR. That's because we are old and we have lots of photos from long long ago.
    I use all of the location fields. "location", city, state, country. I use "location" for let's say Grand Canyon National Park, which isn't in a city. Someone else noted here that they put something like that in city because it isn't in a city and it means you don't have to look two places for the "top layer" of that sequence of country, state, city/location. I think that's a good idea, but I'd already started, so I kept what I was doing.
    Some references from my notes.
    http://www.iptc.org/IPTC4XMP/
    http://www.controlledvocabulary.com/imagedatabases/iptc_core_mapped.pdf
    http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html
    http://www.ap.org/apserver/userguide/codes.htm
    http://www.dartmouth.edu/comp/about/projects/digitalmedia/images/resources/metadata-schema s.html

  • Using a Zero Up device

    Hi
    IM using a number of Zero up power suppliers throw a Zero up controller connected by GPIB.
    since I have to read different channels of the controller IM using the attached VI and initializing the communication each time.
    the problem is that every now and then the initialize VI gives me the following error:
    <ERR> nlZUP Initialize
    The ID Query failed.  This may mean that you selected the wrong instrument or your instrument did not respond.  You may also be using a model that is not officially supported by this driver.  If you are sure that you have selected the correct instrument and it is responding, try disabling the ID Query.
    what should i do??
    thanks
    Shai  
    Attachments:
    ZUP read.vi ‏21 KB
    nlZUP.llb ‏561 KB

    There is no reason to initialize/close every time. That's just a waste of time. The VISA session will remain available until you explicitly close it or you close out of LabVIEW. How are you running this VI? Are you using the "Run Continuously" button? If so, stop. That button should not be used that way.
    The error is being generated with the  "nlZUP chechInstrumentType" VI. That VI is fed a string from the "nlZUP setPSAddress" VI, and is fed the result of the ":MDL?; " command. My guess is that sometimes you're not getting the right string returned. This could be a communication error, or perhaps the instrument is busy, and the wait time for the response is too short. As I said, unless you're physically changing the instrument on the fly while the VI is running, there is no point in always asking what kind it is.

  • USE OF ZERO AND BLANK CELLS IN CALCS

    Hello Everybody,
    I'm making a new script logic that acumulates the values month by month, it means that february=januaryfebruary, march=januaryfeb+mar, etc. Everything was workin fine, until i had some values in blank in few months, in those cases the calc ignored them and stops the acumulation.
    For example if i have info only from jan to sep, the calc doesn't show any value for oct,nov and dec. What i want in those cases is that the data obtained for sep be the same in oct, nov and dec, because in theory the sum should be +zero(which is the value contained in blank cells right?)
    Does anybody knows why is this calc stopping at this level?
    Thanks in advance!

    Hi,
    Do you run the script from Data package? if not
    check
    XDIM_MEMBERSET is very important to fix the scope for the calculation.
    To avoid this system reaction you can change the coding and clearly define
    which account shall be taken into account when doing the calculation
    independent if one of the defined member has or has not changed its value.
    You do this via Memberset statements.
    other approach  is  YTD measures
    Hope this helps.
    Regards,
    Mehul
    Edited by: Mehul Shah on Dec 16, 2010 2:44 PM

  • Using of zero balance a/c ?

    Hi all,
    i am workig on ECC 6.0.
    my question is " why should we usd 'ZERO BALANCE G/L ACCOUNT' in ECC 6.0.
    what is the purpus and impartence of that in this version.
    Thanku

    This is so you can have balancing balance sheets
    There will be the occasion where a PC or BA can not be determined straight away.
    By posting to the zero balance account it will always mean that if you run a B/S report by PC or BA it will always balance.

Maybe you are looking for

  • OIM 11g Server Configuration Wizard Error - Cannot Connect to Oracle DB

    I appreciate any and all suggestions or thoughts on how to best continue troubleshooting this error that I am describing below. I am attempting to install Oracle Identity and Access Management Suite 11g on a Windows 7 machine…in following the install

  • Error in Career and Job= Skills Profile

    I have the following issue: In the application of Career and Job=>Skills Profile. When I want add a new qualification, the system display the following message of error: Root Cause The initial exception that caused the request to fail, was:    java.l

  • Running "Build 'em All" example Xcode project wiped out MediaCore folder

    I'm having a hard time setting up Xcode to properly compile the example code into a debug product build that eventually ends up in the MediaCore folder. I initially got it to work simply by clicking the 'Run' button on the 'Skeleton' and 'Checkout' p

  • XML (Add_field_section)

    I am confused as to using XML with Intermedia....Is there a way to feed an XML document into Intermedia and have it recognize the tags, or do I have to use the add_field_section command for each tag in the XML document....My XML documents have hundre

  • A DropDownList is not generated When generate of XML + XDP (=PDF)

    Hi, When I generate PDF from XML by the completed_PROJECT by a tutorial ("Working with the PDF Document Object"), I cannot display DropDownList well. I prepare DropDownList into <enum_item>tag in an <enum_list> tag in data.xml each, but what kind of