MathScript plot, how do I specify 2nd Y axis maximum and minmum?

x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);
plotyy(x,y1,x,y2);
axis([0,20,-200,200])
above script plot successfully a graph with require left y axis from -200 to +200.  However, how do I make the right y axis from -2 to +2?
Thank you in advance.

x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);
plotyy(x,y1,x,y2);
axis([0,20,-200,200]);
xlabel('Time (\musec)');
ylabel('Fast decay');
title('Multiple Decay Rates');
How do I write the 2nd Y title to 'Slow Decay'?

Similar Messages

  • How can I specify SMTP Email Server userID and password when using Email VIs?

    How can I specify SMTP Email Server userID and password when using Email VIs included in Internet Toolkit?

    Hi,
    A similar question was posted on Discussion Forums soem time back. Please see the link below.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C7B00000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    You would find the last post in the above thread quite useful where it has a link to OpenG code. I am also copying that link for your reference.
    http://www.openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools
    Please feel free to respond to this post with any questions/comments you may have.
    Regards,
    Ankita A.
    National Instruments

  • How to calculate the ratio between the maximum and minimum peaks of the two waves using two looping to find the value of SPO2?

    hello everyone,
    i'm rai from indonesia
    I have a final project about pulse oximetriy, I have some problems,
    how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
    My program image can be seen below predicament ?
    Attachments:
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB

    Hi rai,
    I would appreciate it as kind of respect for forum participants if you would clean up your VI before uploading it (or images of its block diagram)…
    That being said:
    - Your inner while loops each run exactly twice. Replace them with FOR loops!
    - Lots of unneeded operations, mainly induced by ExpressVI usage. Is there a reason to convert to DDT and immediately convert back to 1D array?
    - You already calculate some Min/Max values. Ratio is just a division of two values…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops?

    hello everyone,
    i'm rai from indonesia
    I have a final project about pulse oximetriy, I have some problems,
    how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
    My program image can be seen below predicament ?
    Attachments:
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB

    Hi Rai,
    You should post this into the LabVIEW forum rather than Real-Time since this isn't a Real-Time application. Your post will see more replies in the LabVIEW forum. 
    As far as your question is concerned, you can write the max and min from the respective loops to a local variable to send the data out of the loops to a third loop or just do the calculation in one of the loops. This would be ideal if you're trying to do this while the loop is running. 
    -Jayk
    Applications Engineering
    National Instruments

  • How to design block diagram for axi tpg and axi vdma on zedboard using vivado 2014.4 and sdk c application

    Hi,
    I am working in image processing project ,but currently i want to use tpg ip and vdma ip to write frame data in ddr3 on zedboard,please provide me vivado block design and sdk c application for that
     

    Please don't post the same thing multiple times. This one is fine:
    http://forums.xilinx.com/t5/New-Users-Forum/how-use-axi-tpg-and-axi-vdma/m-p/638588

  • How can i get 2nd week starting date and ending date in a month?

    please help me to query this.
    thanks in advance

    Hi,
    I assume the second week start the next monday after the 1st of the current month. End of week is the next sunday.
    If a week start monday, the second week of december start the 5th and ending the 11th :
      1  select 8-to_char(to_date('01'||to_char(sysdate,'MMYYYY'),'DDMMYYYY'),'D')+1 first_day2w,
      2         15-to_char(to_date('01'||to_char(sysdate,'MMYYYY'),'DDMMYYYY'),'D') last_day2w
      3* from dual
    SQL> /
    FIRST_DAY2W LAST_DAY2W
              5         11If we take august, the second week start the 8th to end the 14th
      1  select 8-to_char(to_date('01082005','DDMMYYYY'),'D')+1 first_day2w,
      2         15-to_char(to_date('01082005','DDMMYYYY'),'D') last_day2w
      3* from dual
    SQL> /
    FIRST_DAY2W LAST_DAY2W
              8         14HTH,
    Nicolas.
    Note that my nls_territory = FRANCE.
    if you're in America, first day of week is sunday, and last is saturday :
      1* alter session set NLS_TERRITORY='AMERICA'
    SQL> /
    Session altered.
    SQL> ed
    Wrote file afiedt.buf
      1  select 8-to_char(to_date('01'||to_char(sysdate,'MMYYYY'),'DDMMYYYY'),'D')+1 first_day2w,
      2         15-to_char(to_date('01'||to_char(sysdate,'MMYYYY'),'DDMMYYYY'),'D') last_day2w
      3* from dual
    SQL> /
    FIRST_DAY2W LAST_DAY2W
              4         10
    SQL> Message was edited by:
    N. Gasparotto

  • How to specify pairs of variabel names and values in OdiInvoke

    Hi,
    If you start the scenario from a web service, you are invoking the service OdiInvoke. When you look at the WSDL for this Web Service, you will notice that beyond the scenario name, version and the execution context, you can specify pairs of variable names and values. The WSDL for the web service as following:
    <xsd:complexType name="SessionRequestType">
    <xsd:sequence>
    <xsd:element minOccurs="0" default="true" type="xsd:boolean" name="Synchronous"/>
    <xsd:element minOccurs="1" type="xsd:long" name="SessionId"/>
    <xsd:element minOccurs="0" default="true" type="xsd:boolean" name="KeepVariables"/>
    <xsd:element minOccurs="0" type="VariableType" name="Variables" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="VariableType">
    <xsd:all>
    <xsd:element type="xsd:string" name="Name"/>
    <xsd:element type="xsd:string" name="Value"/>
    </xsd:all>
    </xsd:complexType>..........
    If i call this OdiInvoke web service from BPEL, From BPEL assign activity, how can i specify pairs of variable names and values? Example: i have variable 1 and value1, variable 2 and value2, how to assign them to pairs if variable names and values. so that after the assignment, the payload for assign activity in BPEL can be become as following:
    <Variables>
    <Name>variable1</Name>
    <Value>value1</Value>
    <Name>variable2</Name>
    <Value>value2</Value>
    </Variables>
    Thanks!
    Susan

    Try this way,
    In the expression builder copy the xml fragment to the target node. This will result in the below assign action in the bpel code
    <assign name="Assign1">
    <copy>
    <from expression="&lt;Variables>&lt;Name>variable1&lt;/Name>&lt;Value>value1&lt;/Value>&lt;Name>variable2&lt;/Name>&lt;Value>value2&lt;/Value>&lt;/Variables>"/>
    <to variable="outputVaribable"/>
    </copy>
    </assign>

  • How do I specify the right Y axis for an annotation in cwGraph?

    Hi,
    I'm useing MS 7.0 under LW/CVI 7.0 on Windows XP.
    I have a cwGraph in an ActiveX container with 4 plots on it. I'm using
    annotations, but when I specify the coordinates of the cwShape (or
    cwCaption) object, it always uses the Y axis
    of the first plot. So when I try to put an annotation on the 2nd plot,
    the Y coordinate is wrong (since it uses the Y coordinates of the first
    plot).
    I tried associating plots with the cwAnnotation object but it didn't seem to help.
    How could I associate an Y axis with one of these objects?
    Thanks in advance,
    svk

    Hi Phyllis,
    The two axes on a bar chart are the Category axis and the Value axis. The category axis consists, generally, of  a list of titles. Always text. For this reason, the Chart feature expects the Category axis data to be in a Header Column, usually Column A.  (Header columns always default to text format, unless forced to something other than Automatic or Text.)
    With your Category titles in Header Column A and your various parts of the value in columns B, C, etc., Select all the data columns and then Insert the Stacked Bar Chart. Your Categories should be properly displayed.
    Jerry

  • How can i specify the default application to save a read later doc in Instapaper

    I have an Instapaper account, so that I can mark some online web pages to 'read later' if I wish to do this. I have successfully put the Instapaper 'Read Later' borkmarklet on the dock of my iMAC.
       However, whenever, I come across a web page or blog that I wish to read later, and click the 'Read Later' bookmarklet on my dock, it throws up an error message that reads ' There is no default application specified to open the URL' and so I am now at a dead end.
    Can someone explain to me where and how I can find the default application to get round this problem. By the way, I did not find this problem with Instapaper's 'read later' bookmarklet on my old Windows PC, where I was able to store pages for reading later with this app, and also to transfer them automatically to my kindle through the wifi connection at home.
    I hope someone can assist... Or is there another way - (apart from Instapaper which worked okay with Windows)- to save web pages for reading later with MAC -
    Thanks

    This is pretty simple in Safari, in the upper left of Safari you will see an icon that looks like pair of glasses, this is where you collect webpages for you to read later. The feature is called Reading List and looks like:

  • How do I specify an external viewer for animation?

    I occasionally receive PDF files that have accompanying animations (.avi, etc) that Adobe acrobat reader 9.4.1 expects to play using an external viewer.
    On one of my computers (Linux, KDE), it launches xine.  On another (also Linux, KDE), it launches noatun.
    How do I specify which external viewer it should launch?

    This is handled through file associations defined in the OS. Adobe Reader is simply passing the file off to the OS.
    In your file manager/desktop, find a plain AVI file, right click on it to get the contextual menu. You should be able to set your preferred associated program from there.

  • How can we specify the Mailbox for Notes?

    In Mail.app, how can we specify the Mailbox for Notes (where the new notes will be resided)? It is now 'On My Mac'. I wish to change to my IMAP Mailbox so it sync with my iPhone by just checking email (not by syncing on iTunes).
    Thanks in advance.
    Message was edited by: Ekapon

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • How Can i specify multiple server names in rwservlet.properties  file?

    How Can i specify multiple server names in rwservlet.properties file without clustering?
    I am using oracle 10g Application server. we have 3 servers Repsvr1, RepSvr2 and RepSvr3. Now i need to configure rwservlet.properties file to point to these servers based on any running report. i got 3 keymap files with reports info.
    Sample entry in the key map file is:
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    rwservlet.properties file letting me to enter only one servername. Even though i merged all 3 keymap files into 1, still i have the server name issue. If i leave the server to the default name still i am getting the below error.
    REP-51002: Bind to Reports Server Repsvr1 failed. However, i know the default rep_<servername> would be used incase we dont have SERVER=<value> parameter in the rwservlet.properties file.
    If i specify the servername in the rwservlet.properties file then only Repsvr1 reports are working fine and other 2 server reports are giving the same error like
    REP-51002: Bind to Reports Server <<Server Name>> failed.
    how can i configure the info which will work all 3 reports. 2 Port servers are invoking using oracle forms and report server is invoking using ASP pages.
    If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error, whenever i am trying to integrate all 3 to workable i am getting binding error. if i exclude the server from rwservlet.properties still i am getting the same error.

    My RELOAD_KEYMAP setting is YES only.As i said If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error.
    keymap file entries
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    If i use http://server.domain:port/reports/rwservlet? cmdkey = key1 should bring the report from Repsvr1 and http://server.domain:port/reports/rwservlet? cmdkey = key2 should bring the report from Repsvr2, but i am getting an error from Repsvr2 saying that REP-51002: Bind to Reports Server repsvr2 failed.
    Only Servername Repsvr1 is in rwservlet.properties file. Now what is the best option to by pass the server from rwservlet.properties file and should be from keymap file. if i comment server name in rwservlet.properties file still i am getting REP-51002: Bind to Reports Server <<Server Name>> failed error for both keys.

  • How can I specify the default tab in a CHM Output?

    My company uses CHM-based help for some of its products. We build the CHM files from RoboHelp 9, and while these CHM files don't really have a full Index attached to them, the Index tab shows up in the output anyway. Unfortunately, we are suddenly seeing that when the CHM file is launched from our program, the Index tab is displayed by default. We'd rather have the Contents tab be the default look, especially considering that the Index does not exist.
    I have poked around into how you can specify a default tab for a CHM file, and the only information I have found suggests that using a CHM file creates a file (HH.dat) that specifies which tab should be displayed on a user-by-user basis, and that the last tab displayed when you close the CHM should be the first one displayed when you re-open it. While this is true if you open the CHM independent from the product, when you launch it from our program, it's all Index, all the time.
    So, my question is: How can I specify the default tab for a CHM file? Or, failing that, how can I excise the Index tab from my CHM output.

    Hi there
    This will be something up to your application developer to resolve. When s/he issues the call to open the CHM, there are parameters that may be used to always open with the desired tab "in front".
    Point your developer to the link below and advise that s/he is most likely interested in the section titled: Programming Tips.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to save data in a 4D array and make partial plots in real time?

    Hi, this is a little complex, so bear with me...
    I have a test system that tests a number of parts at the same time. The
    experiment I do consists of measuring a number of properties of the
    parts at various temperatures and voltages. I want to save all the
    measured data in a 4-dimensional array. The indices represent,
    respectively, temperature, voltage, part, property.
    The way the experiment is done, I first do a loop in temperature, then
    in voltage, then switch the part. At this point, I measure all the
    properties for that condition and part and want to add them as a 1D
    array to the 4D array.
    At the same time, I want to make a multiple plot (on an XY graph) of
    one selected property and part (using two pull-down selectors near the
    XY graph) vs. voltage. (The reason I need to use an XY graph and not a
    waveform graph, which would be easier, is that I do not have
    equidistant steps in voltage, although all the voltage values I step
    through are the same for all cases). The multiple plots are the data
    sets at different temperatures. I would like to draw connection lines
    between the points as a guide to the eye.
    I also want the plot to be updated in the innermost for loop in real
    time as the data are measured. I have a VI working using nested loops
    as described above and passing the 4D array through shift registers,
    starting with an array of the right dimensions initialized by zeroes. I
    know in advance how many times all the loops have to be executed, and I
    use the ReplaceArraySubset function to add the measured properties each
    time. I then use IndexArray with the part and property index terminals
    wired to extract the 2D array containing the data I want to plot. After
    some transformation to combine these data with an array of the voltage
    values in the form required to pass to the XYGraph control, I get my
    plot.
    The problem is: During program execution, when only partial data is
    available, all the zero elements in the array do not allow the graph to
    autoscale properly, and the lines between the points make little sense
    when they jump to zero.
    Here is how I think the problem could be solved:
    1. Start with an empty array and have the array grow gradually as the
    elements are measured. I tried to implement this using Insert Into
    Array. Unfortunately, this VI is not as flexible as the Replace Array
    Subset, and does not allow me to add a 1D array to a 4D array. One
    other option would be to use the Build Array, but I could not figure
    out if this is usable in this case.
    2. The second option would be to extract only the already measured data
    points from the 4D array and pass them to the graph
    3. Keep track of the min. and max. values (only when they are different
    from zero) and manually reset the graph Y axis scale each time.
    Option 3 is doable, but more work for me.....
    Option 2: I first tried to use Array Subset, but this always returns an
    array of the same dimensionality of the input array. It seems to be
    very difficult, but maybe not impossible, to make this work by using
    Index Array first followed by Array Subset. Option 3 seems easier.
    Ideally, I would like option 1, but I cannot figure out how to achieve
    this.
    Your help is appreciated, thanks in advance!
    germ Remove "nospam" to reply

    In article <[email protected]>,
    chutla wrote:
    > Greetings!
    >
    > You can use any of the 3D display vi's to show your "main" 3d
    > data, and then use color to represent your fourth dimension. This can
    > be accessed via the property node. You will have to set thresholds
    > for each color you use, which is quite simple using the comparison
    > functions. As far as the data is concerned, the fourth dimension will
    > be just another vector (column) in your data file.
    chutla, thanks for your post, but I don't want a 3D display of the
    data....
    > Also, check out
    > the BUFFER examples for how to separate out "running" data in real
    > time.
    Not clear to me what you mean, but will c
    heck the BUFFER examples.
    > As far as autoscaling is concerned, you might have to disable
    > it, or alternatively, you could force a couple of "dummy" points into
    > your data which represent the absolute min/max you should encounter.
    > Autoscaling should generally be regarded as a default mode, just to
    > get things rolling, it should not be relied on too heavily for serious
    > data acquisition. It's better to use well-conditioned data, or some
    > other means, such as a logarithmic scale, to allow access to all your
    > possible data points.
    I love autoscaling, that's the way it should be.
    germ Remove "nospam" to reply

  • How to make a 2nd player in this racing game.

    I'm using this tutorial to learn how to make games in Flash for a class, but it doesn't say how to make a 2nd player.
    If somebody can show me the code to make alternative controls (W,S,A,D) for a 2nd car that'd be fantastic!
    Thanks a lot,
    Dd
    http://www.emanueleferonato.com/2007/05/15/create-a-flash-racing-game-tutorial/

    if (_root["car"+who].code == "player") {           
    if (Key.isDown(Key.DOWN)) {
                   this["speed"+who] -= _root.backSpeed;
              //steer left - well, we could simply add or subtract a fixed angle (in degrees) to/from the car's rotation, but that's not good enough. In order to simulate a natural movement, steering must depend on speed, otherwise you will be able to rotate your car even if it's almost stopped and it will look like a propeller
              if (Key.isDown(Key.LEFT) && this["speed"+who]>0.3) {
                   _root["car"+who]._rotation -= _root.rotationStep*(this["speed"+who]/_root.maxSpeed);
              //steer right - you already know what happens here
              if (Key.isDown(Key.RIGHT) && this["speed"+who]>0.3) {
                   _root["car"+who]._rotation += _root.rotationStep*(this["speed"+who]/_root.maxSpeed);
    You basically have to make a second conditional clause that starts:
    if (_root["car"+who].code == "player2") {           
    if (Key.isDown(/*Insert KeyCodeValue of the Key you want to use*/)) {....
    The AS2 keycodes can be found here:
    http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001136.html

Maybe you are looking for

  • HP LaserJet P1102w not connecting to wireless

    We have a fairly new printer, P1102w, only three months old. It is now not connecting to the wireless anymore. I've tried to reconfigure the wireless connection but it cannot find my network SSID anymore. I attempted putting it in manually but no luc

  • New to Oracle 10g

    Hello, I have previously been working with Toad on Oracle 8i, now I have installed Oragle 10g and I am hoping to learn the built-in oracle tools. But it seems I can't get a good grip on how they work. I'm trying to find a tool where I can browse my t

  • How can i resend messages which failed with System Error

    hi Can any one please help me with 3 messages stuck in adapter engine ,they are failing with system error,I tried to resend them but still they failing with the system errorXI_J2EE_ADAPTER_XI_HANDLER.so can any body help me with this problem . thanks

  • Plant Maintenance Documentation

    Hi I'm trying to find an quick and easy way to document the changes I make in SAP PM. I make changes by request, and it would be helpful if I had a standardized report in pdf or txt,  generated om SAP that I could send to the end-user as a confirmati

  • Sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

    Hi Avi, Refer the earlier message below:: Now I have OC4J version 9.0.2. The JDK version is Java(TM) 2 SDK, Standard Edition Version 1.3.1 OS : Solaris I am trying to deploy the "How-To" example from the otn sample examples for JSP. It's a implementa