Gain and phase margins from simulation data

Dear forum members,
Is it possible to display the Gain and Phase Margins from a Control and Simulation Loop ?
I have a simple SISO control loop (P+I controller) and this is subject to a unit step input.  I can display the output response graph via a Collector but cannot figure out how to display the Gain and Phase Margins from within the Control and Simulation Loop.
I note that there is a CD Gain and Phase Margin.vi that looks like what I need since it provides Gain and Phase Margin output however I cannot figure out how to interconnect this vi to what I have in the Control and Simulation Loop.
If anyone can assist or provide guidance it would be appreciated.
Regards,

Is your simulation linear or nonlinear ? You mention it is has a PI controller (linear without saturation / anti-windup), but not the simulated process being controlled.
Gain and phase margin work on linear *models*, not on the data that a simulation loop produces.
If you have a nonlinear model it will need to be linearised about an operating point first.
Remember - use the open loop system (control and process) to calculate the gain and phase margin, but they give the stability of the closed loop system.
This looks like a good reference if you need more info / examples:
http://www.ni.com/white-paper/6450/en
Consultant Control Engineer
www-isc-ltd.com

Similar Messages

  • How do I get date and time component from a DATE object?

    Hi All,
    I need to get date and time separately from a DATE object, does
    anyone know what function I should call? GetDate()? GetTime()?
    I need this in a SELECT statement.
    Thanks in advance and looking forward to your early reply.
    Regards.
    Gladywin
    30/11/2001

    Hello,
    See following SQL.
    select to_char(sysdate,'dd/mm/rrrr') today_date,
    to_char(sysdate,'hh24:mi') now_time
    from dual
    Adi

  • How to get Week,Month and Year details from a date column

    Hi frenz,
    I've a column like tran_date which is a date column..... I need the next week details based on this column and so on...
    I need month and year details as well based on this tran_date column.... can any one tell me how...
    Thanks in advance

    My example for objects:
    create or replace type date_object as object
      centure number,
      year    number,
      month   number,
      day     number,
      hour    number,
      minute  number,
      second  number,
      daypart number,
      week    number,
      constructor function date_object(p_dt date)
        return SELF as result
    create or replace type body date_object is
      constructor function date_object(p_dt date)
        return SELF as result
      as
      begin
        SELF.centure:= trunc(to_char(p_dt,'YYYY')/100);
        SELF.year:=    to_char(p_dt,'YYYY');
        SELF.month:=   to_char(p_dt,'MM');
        SELF.day:=     to_char(p_dt,'DD');
        SELF.hour:=    to_char(p_dt,'HH24');
        SELF.minute:=  to_char(p_dt,'MI');
        SELF.second:=  to_char(p_dt,'SS');
        SELF.daypart:= p_dt-trunc(p_dt,'DD');
        SELF.week:=    to_char(p_dt,'IW');
        return;
      end;
    end;
    select date_object(sysdate),
           date_object(sysdate).year
    from dual;Regards,
    Sayan M.

  • Ovi Mail and Outlook 2010; from/subject/date field...

    I'm using Outlook 2010 version for my home laptop and tuesday evening all incoming mails missed information for sender, subject and the date/time fields. Connecting to Ovi mail by browser, all these information is existing on mails.
    Is there has been change on server setup after moving to Yahoo servers??

    Mail messages always include more headers than are normally shown by the mail client. Sometimes people may wish to examine the full set of headers to check the veracity of a message, or to determine its actual origin, and generally when trouble-shooting. You control whether or not you see them with menu View/Message/Long Headers, or you may have a button for it on your toolbar.
    AK

  • Remove Characters from a Date

    What are some ways that I could remove the hyphens, semicolons, periods, and empty strings from a date (in a single expression)?
    If I have a date (returned from GETDATE()) as follows:
    2014-09-15 16:53:09.253
    I want to remove the non-numeric characters and return this:
    20140915165309253
    Can REPLACE be used to identify more than one character pattern to replace?
    Thank you for your help!
    cdun2

    Another way, don't remove at all, begin with just the requisite dateparts and datenames. Although either way works fine, this way gives you absolute control over how you render.
    In this example, the "from sys.messages" is not part of the answer, I just included it to recreate a test to compare speeds.  It ends up having the same speed/execution plan/actual CPU time used either way. 
    The "Right()" functions are required, because for example, if the time is 8:03, the "03" is presented as just "3", so you have to force it to render as "03" with the Right function.  The DatePart(month) is the
    only one returning an integer result, so that must be cast as Varchar, the DateName() functions return a string, although unfortunately with leading zeroes removed.
    Select Datename(year, SysDateTime())
    + Right('0' + Cast(DatePart(month, SysDateTime()) as varchar(2)) , 2)
    + Right('0' + DateName(day, SysDateTime()), 2)
    + Right('0' + DateName(hour, SysDateTime()), 2)
    + Right('0' + DateName(minute, SysDateTime()), 2)
    + Right('0' + DateName(second, SysDateTime()), 2)
    + Right('0' + DateName(ms, SysDateTime()), 3) , sysdatetime()
    from sys.messages sm1
    Select REPLACE(REPLACE(REPLACE(REPLACE(CONVERT(VARCHAR(30), GETDATE(), 121),'-',''),':',''), '.',''),' ',''), sysdatetime()_
    from sys.messages sm1

  • Can We Change Realized gain and loss account in system option Receivables

    Hi All,
    As part of our month end processes we are posting a manual journal each month to clear this GL account down to a nil balance.
    Looking at the activity they all look to be automated AR postings on foreign currency transactions.
    Is there any way we could get these to automatically post into account 01.2201.4901 instead of 01.9000.9757? This would save us having to do the manual journal and avoid the situation of missing any which we did last month.
    Regards,
    Raju.

    Hi Raju,
    option 1
    You can change the Realized Gain and Loss Account from the System options form in Receivables, but this will be effective only for all new transactions that are going to get created and not for the existing one ...
    Option 2
    If you do not want to modify the system options, you can override the values at the accounting time frame by configuring an Accounting Derivation Rule for the Realized Gain and Loss Journal Line Type. Again this would take effect on new transactions only
    Option 3
    You can disable 01.2201.4901 and state its replacement is 01.9000.9757 in General Ledger module, so whenever system would use the replacement account for automatic processing ....
    You have to keep running the Accounting analysis report in General ledger for the account string 01.9000.9757 every month to cross check whether you have passed all Manual Journal Vouchers to make the balance NIL ... i am not sure whether there is any other way of performing a cross checking and minimizing the time that is being consumed at present ....
    Regards,
    Ivruksha

  • Reading From Master data failure

    I have enhanced 0VENDOR_ATTR with ZTERM field from LFM1 table and everything is working fine ...I have added ZPMNTTRMS as an attribute in 0VENDOR and loaded the data its working fine .But when I was using this ZPMNTTRMS in a DSO and say read from master data and took the source field as 0vendor ...then Iam not able to see the values for this info object...Ofcourse 0VENDOR is loading fine....Can any one let me know what is the issue here ? / Is there any routiene / some code needs to be written some where to get the ZPMNTTRMS values in DSO ...Please advice ASAP...
    regards

    hi nw2004s,
    have you performed change run ?
    rsa1->tools->apply attribute/hierarchy change run (or RSATTR)
    hope this helps.

  • Calendar...list function shows only events for date select instead of events from that date forward.

    Calendar list function shows only events for date selected....instead of events for date selected and events forward from that date.  Is there a setting change needed?  Help!

    Hi,
    Did you check that your universe object referring "Date of Completion" has Date data type?
    Can you also provide the BOE verson you are using?
    I remembered that the calendars were not displayed in XIR2 version.
    Didier

  • How to read and save complex data (amplitude and phase) from pna E8361C

    Hi, all,
    I installed the PNA series driver to my PC. And I got wavefrom from the PNA but always the amplitude. How can I get also phase info from the PNA and save it to my text file?

    I did installed the driver for that PNA, I can select the format such as amplitude or phase, but I can only see one of them at one time.
    Could it be seen and save simultaneously?

  • EDGE SIMULATOR CAN'T READ DATA FROM SIMULATION.XML

    HI,
    i have installed the SES(10.1.3) and before that Application server 10.1.3 .
    I have followed all the steps given at the following link
    http://www.oracle.com/technology/obe/1013/fusion_middleware/integration/ses/configuringsimulator/configuresimulator.htm#t1
    It works works well till step 16 and edge is restarted successfully , I exit from enterprise manager by logging out and then logging in again for edge
    and then when i click on monitor events then it gives me nothing in the row( no data, no time , no id) just blank row...
    Mean it does not read data from Simulation.xml file
    my file (Simulation.xml) is residing in F:\oracleAS\10.1.3.1\OracleAS_1\j2ee\home\applications\edge\edge\config folder where 'edgerserver.xml' is residing.
    edgeserver.xml contains all driver details i guess.
    Can anyone help me to cope with the problem.
    thanks :-)

    Atlast i have overcome my problem , in order to read data from simulatin.xml file one has to change the "log level" in general settings to monitor and it will work .
    other options for log level are , error , warning, notify and debug etc .
    so change it to log level , then login as enterprise manager, restart edge , log out from emanagaer and again login to edge and click on monitor tab , u r done :-)

  • Hi, I'm new to Labview...​How do I export Data to a spreadshee​t from an agilent 8510c using labview 6 and the VI from the NI site?

    Hi, I'm trying to export data to a spreadsheet from an Agilent 8510c to a laptop(Win XP) using a PCMCIA-GPIB card, Labview 6 and the VI from the NI site. How do I do this? Ideally I'd like the Magnitude and Phase Data, as pairs for each frequency point, but the Real and Imaginary pairs can work just as well. Any help would be greatly appreciated.

    When you say the "VI from the NI site", I'm going to assume that you mean the HP8510C driver. If that's the case, then VI called HP8510C Application Example should be your starting point. It returns two 1D arrays - real raw data and imaginary raw data. These can be combined with a Build Array function and the resulting 2D array can be wired to the Write to Spreadsheet File function. This will create a tab or comma separated file that Excel or any other spreadsheet program can import. The very simplest program would look something like the attached picture. You may need to modify the instrument program to suit your requirements but this should get you started.
    Attachments:
    HP8510C_and_Spreadsheet_Write.jpg ‏5 KB

  • Report Builder Wizard and Parameter Creation with values from other data source e.g. data set or views for non-IT users or Business Analysts

    Hi,
    "Report Builder is a report authoring environment for business users who prefer to work in the Microsoft Office environment.
    You work with one report at a time. You can modify a published report directly from a report server. You can quickly build a report by adding items from the Report Part Gallery provided by report designers from your organization." - As mentioned
    on TechNet. 
    I wonder how a non-technical business analyst can use Report Builder 3 to create ad-hoc reports/analysis with list of parameters based on other data sets.
    Do they need to learn TSQL or how to add and link parameter in Report Builder? then How they can add parameter into a report. Not sure what i am missing from whole idea behind Report builder then?
    I have SQL Server 2012 STD and Report Builder 3.0  and want to train non-technical users to create reports as per their need without asking to IT department.
    Everything seems simple and working except parameters with list of values e.g. Sales year List, Sales Month List, Gender etc. etc.
    So how they can configure parameters based on Other data sets?
    Workaround in my mind is to create a report with most of columns and add most frequent parameters based on other data sets and then non-technical user modify that report according to their needs but that way its still restricting users to
    a set of defined reports?
    I want functionality like "Excel Power view parameters" into report builder which is driven from source data and which is only available Excel 2013 onward which most of people don't have yet.
    So how to use Report Builder. Any other thoughts or workaround or guide me the purpose of Report Builder, please let me know. 
    Many thanks and Kind Regards,
    For quick review of new features, try virtual labs: http://msdn.microsoft.com/en-us/aa570323

    Hi Asam,
    If we want to create a parameter depend on another dataset, we can additional create or add the dataset, embedded or shared, that has a query that contains query variables. Then use the option that “Get values from a
    query” to get available values. For more details, please see:http://msdn.microsoft.com/en-us/library/dd283107.aspx
    http://msdn.microsoft.com/en-us/library/dd220464.aspx
    As to the Report Builder features, we can refer to the following articles:http://technet.microsoft.com/en-us/library/hh213578.aspx
    http://technet.microsoft.com/en-us/library/hh965699.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • TS3988 My wife bought an iPad Air and synced contact from our PC (Outlook), now all our contacts in Outlook have gone and we have to go to iCloud to get them, and even then they are a bit jumbled. How do I get my data back onto my PC?

    My wife bought an iPad Air and synced contact from our PC (Outlook), now all our contacts in Outlook have gone and we have to go to iCloud to get them, and even then they are a bit jumbled. How do I get my data back onto my PC?

    If you can see the iCloud contacts in Outlook, you can copy them back to your PC by selecting all the contacts (click one, then press Control-A), then drag and drop the selected contacts to Contacts under My Contacts on the left sidebar of Outlook.
    If you want to copy your calendar back to Outlook, select your iCloud calendar on the left sidebar of Outlook, switch to the list view (select View from the ribbon, then click Change View>List), select your events (click on a single event, then press Control-A), then control drag and drop them to Calendar under My Calendars on the left sidebar.
    Then you can sign out of iCloud on the iCloud control panel and your local copies will still be there.  If you want to add your iCloud email account back to iCloud, you can do this with these settings: http://support.apple.com/kb/HT4864.

  • 've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    iPhones require a SIM for activation.
    Put the device in DFU mode (google it) and restore via iTunes.

  • I have plugged my iphone into my mac computer to restore the phone and it restored then went to the start menu as a new phone does then asked if i wanted to resync from uploaded data from a previous save, then i pressed resync. and now it doesnt work.

    I have had this problem before but apple didnt know how to fix the problem so they replaced the phone.
    I plugged my Iphone into the computer and went into Itunes and restored the phone because it wasnt working properly. it saved my data and then when it turned itself back on after the restore it was at the main menu when u get a new phone and have to set it up, so i went along and did the normal selections as i did when setting up the phone and when it got to where you choose to set up as a new iphone or restore from previous date with data i chose the restore option, it then said i had no service and the sim card was not compatable for the phone, i turned the phone off and it still says the same thing, im not sure what to do and im very annoyed with how it has happened a second time and ive only had the new phone for about three to four weeks now if that.
    what do i do?

    I went back to iOS 7 and my backup file is restoring but when its done nothing is on my phone still and only takes 11-15 minutes to restore the backup instead of taking 25+ minutes like usual so I guess the backup is corrupted. How can I fix this?

Maybe you are looking for