Two nonlinear fitting's function in one

We bought the LabView 6.1 and I have no clue
how to make the Lev-Mar work (and many other
functions as well).
There are some tasks in the 'getting start' manual
that tells you step-by-step of doing things.
I appreciate any body can tell me how to 'write'
a Lev-Mar from clicking the first buttom step-by-step.
Anyway, before that, I copied an Lev-Mar example
for my simple task. It works OK. But when I use
two in the same vi, it seems when I change one
function/derivative, it change the other one too.
My question two: How to make 2 or more different
function/derivatives in the same vi?
Thanks.

Hi, Jeremy:
Attached is a made-off example of the problem.
Two set of time-amplitude data are from hardware.
They have to be fitted with differene function.
These two Lev-Mar must be inside one same vi as the
parameters are needed for following processing.
These two Lev-Mar's function/derivatives are
obviously different and must be present in this same
vi file. By clicking on Lev-Mar's Hierarchy >> Diagram
we can see the function nodes for function & Deveritives.
How to 'save' these two different function & Deveritives?
By the way, how to replace the MatLab box into
function node in my attached example?
(It's easy to cange MatLab output variable's type,
but I couldn't change the output variable's type.)
Attachments:
Lev-Mar-Question2.vi ‏99 KB

Similar Messages

  • Nonlinear fit model function

    Hi, I'm trying to use a custom fit - fitting modified error function to the provided data. 
    For the nonlinear fit I need a model fitting function VI, which I created from template (attached LM_erf_model.vi). 
    I have a problem connecting the reference for the attached function to f(x,a) input of the Levenberg-Marquardt
    nonlinear fit VI - I can't create the proper reference and end up with
    You have connected a refnum of one type to a refnum of another type and both types are members of some class hierarchy, but there is neither a simple up cast nor type cast between the two classes. 
    What's the proper way of creating the reference for this model function to be used in marquardt test .vi?
    Regards
    Michal 
    Message Edited by mdwuznik on 01-29-2009 01:07 AM
    Solved!
    Go to Solution.
    Attachments:
    LM_erf_model.vi ‏121 KB
    marquardt_test.vi ‏16 KB

    It is typically much easier to place a static VI reference on the diagram, then
    right-click...browse for path...point to the model VI
    right-click the static reference and make it strict (red star)
    hook it up the the nonlinear fitting VI, ignore the coercion dot.
    Your model functions is overly complicated. Index array is resizeable, so get the three parameters before the loop at once. No need to index the same element with every itreation of the loop. I would recommend not to use a formula express VI.
    Do you have some typical data?
    Message Edited by altenbach on 01-28-2009 05:50 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    modelFnc.png ‏4 KB
    modelfnc2.png ‏7 KB

  • Two button with single function

    I want to create two buttons for single function and one button for one function. For example, I click button1, the screen will show "clicked1"
    If I clicked button2, the screen will show "clicked2". If I click button1 and then click button2, it will show "two button are clicked". However, it does not work in two button with single function. What is the problem? Here is the code.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    if (isClicked&&isClicked1){
              trace("two buttons are clicked");

    It works but I want the screen only shows the "isClicked" only when I click button1. But now when I click button1, "isClicked" and "two buttons are clicked" show at the same time.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    button1.addEventListener(MouseEvent.CLICK, onClick3);
    button2.addEventListener(MouseEvent.CLICK, onClick3);
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    function onClick3(evt:MouseEvent):void{
              trace("two buttons are clicked");

  • Auto-populate of SHELL_shellName_shell Upper form DE only functions in one single-instance project shell.  The DE in the BP Upper Form needs to auto-populate in two separate single-instance shells.  How can I get this DE to autopopulate in both?

      The Unifier environment
    contains two single-instance project shells, INF and PBS, and two multiple-instance child project shells, INFS and
    PB.    There is a single instance, non-workflow
    business process, ‘Project Information’ that contains a data element in the
    upper form definition, Project ID.  The Project ID is set to auto-populate from the multi-instance “INFS”
    project shell attribute, which is populated manually. 
    Issue:  The auto-populate functionality for the
    Project ID ‘Shell_shellName_shell’ data element within the single-instance
    Project Information BP only functions within one of the shells, either
    INFS or PB, but not both.  The INF and INFS shells are currently deployed
    to production, PB and PBS shell are not.
    It is critical that Project ID ‘Shell_shellname_shell’ data element is populated correctly in the
    Project Information upper form of both shells, INFS and PB,
    because that data element is referenced by multiple business processes and
    integrations. 
    The attribute form definitions for both single and multiple instance project shells are identical.  The Project ID utilizes the same data
    element ‘SHELL_shellName_shell’ as is defined in both shell attribute forms
    (INFS and PB). 
    The data definition source is a Unifier system-level variable, SYS Shell
    Name (String, 128, Text Box)
    Potential Solutions:
    1. Create a Project ID DE of another data type which can
    be successfully auto-populated from either shell.  Drawback: all BPs and integrations which
    reference Shell_Shellname_shell will need to be rewritten.
    2. Investigate converting the Project Information single-instance
    to a  multi-instance BP, and create a
    separate instance for each single-instance shell type.  Same Drawback as Option #1, but with additional
    rework.  Most likely Project Information
    would have to be recreated as a new BP.
    Not sure that this option would even work.
    3. Create a separate Project Information BP for PB.  Drawback:  Two separate BPs for Project Information would
    need to be created.  All existing BPs
    refer to Project Information, so this option could potentially invalidate the
    ability to use the existing BPs in the PB shell.

    Was it really necessary to post the whole API description?!?
    Locale[] locales = Locale.ENGLISH();ENGLISH is not a method in class Locale, so do not add the braces "( );".
    Also, the constant ENGLISH is not an array, but just a single Locale object.
    You didn't say what your problem was. What do you want to achieve with your program and what is it that you don't understand?

  • Can I run two seperate PID functions in one VI

    I need to controll two different valves. THey must be run by a PID function. Can I run two seperate PID modules? If so do they need to be in the same while loop?
    Solved!
    Go to Solution.

    Hi,
    yes, you can run 2 PID functions in one VI.
    No, they don't need to be in the same loop.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can i  use Two DSO 's in Function module

    hi experts,
    Can i  use Two DSO 's in Function module  .That FM is used for Layout
    I actually  want to  fill one DSO Refering the Data in Another DSO.
    Regard
    Naresh.

    In the first way the DSO's are usually called shared libraries or DSO libraries and named libfoo.so or libfoo.so.1.2. They reside in a system directory (usually /usr/lib) and the link to the executable program is established at build-time by specifying -lfoo to the linker command. In the second way the DSO's are usually called shared objects or DSO files and can be named with an arbitrary extension

  • 2 functions with one cursor or.. 1 function with 2 cursors?

    Hi friends,
    I hope you help me to decide is this easy question:
    Actually I have 2 functions. Both are the same more or less: Both get data from USERS table. (In the users table there are several columns, I'm interested in "code" and "description")
    Function1 have a cursor which obtain data and orders by code,
    Function2 have a cursor which obtain data and orders by description.
    That's the only difference.
    I want to "optimize" the code so I was thinking on creating only a function.
    To do the same in one only function I thinked on passing a parameter i.e.: p_ordertype to know which would be the order ("C" for code or "D" for description)
    In that function I would have two cursors and I would ask for the parameter to execute one "FOR...." or the other.
    The question: Would it be really effective? I think that if I have 2 cursors in a function... I would cosume more memory than if I would only have one cursor.. (because I think data selected from cursors is parsed to memory when you invoke the function, before the 1st instruction after the BEGIN is executed, isn't it?)
    Would it be better 2 functions with one cursor each one or... one function with 2 cursors?
    Thanks in advance for your opinions.
    Jose.

    Hi again Todd,
    there's a problem with you solution :
    Imagine you have the following users:
    usercode - userdescr
    1 - ALAN
    2 - RICHARD
    3 - DANI
    12 - CHARLIE
    20 - BARRY
    If we pass a 'C' as p_ordertype (to obtain the list like above, ordered by usercode) , the result would be:
    1 - ALAN
    12 - CHARLIE
    2 - RICHARD
    20 - BARRY
    3 - DANI
    Do you understand what i'm trying to explain?... I hope that... I tried with
    ORDER BY DECODE(p_ordertype,'C',usercode,'D',TO_NUMBER(userdescr));
    but it doesn't works...
    More ideas?

  • Trackpad two- and three-finger functions not working

    Everything was fine last night, but when I turned on the computer this morning, the trackpad is not working correctly. Cursor movement with one finger feels different than normal (a bit sluggish) and two- and three-finger functions such as scrolling, enlarging, and navigating forward and back do not work. I have tried letting the computer sleep first, rebooting, shutting down and turning back on, and the trackpad firmware update from last November (which it said I did not need to update) and nothing has worked. The trackpad menu in the System Preferences offered nothing as well. I have not updated to Snow Leopard.
    Thanks in advance for your help.

    Hi
    I had the same problem specially after carrying out the last update 4.3 the battery was draining very fast y. In addition to that the phone freezing initially for few minutes then for almost a day and finally continuously.
    I did almost every thing but replacing the handset and non worked.
    As a final attempt to fix the problem before I replace the unit and get a new one was to
    1. connect the phone to the my computer (Mac)
    2. Launch iTunes
    3. Restore the phone to factory setting (with the 4.3) upgrade.
    Of course I lost every thing my contacts all of my apps and phone settings. But it worked it has been two days now the phone didn't freeze and the battery life is even better than before.
    Note:
    1. All of my contacts, note, calendar, emails were backed up using my company exchanger
    2. Before restoring I listed all of the apps that were installed and I reinstalled them one by one all over again.
    Try this solution and I hope it works with you.
    Regards
    Ana Al Khanajri
    iPhone 4   iOS 4    

  • I have two iphones in my house hold one syncs with my MAC Itunes the other doesn't is there a setting that casues the Iphone to stops syncing with Itunes?

    I have two iphones in my house hold one syncs with my MAC Itunes the other doesn't is there a setting that casues the Iphone to stops syncing with Itunes?

    You need to start over with Music. On the iPhone Music screen uncheck sync music. Also, on the Summary screen uncheck "Manually manage music and videos", then sync and it should clear off your phone.
    Next, choose the music you want to sync. If you want to fit more on check "Convert higher bit rate songs to 128 kbps AAC". This will reduce quality slightly, but it won't be noticable unless you are using $300 headphones.

  • There are two transactions ZJPVCS303 and ZJPVCS303_US for one single Report

    When run as a batch program, (currently this is the case), or withT-Code ZJPVCS303 the selection screen is unchanged (except for additional sales area above)
    - When run as T-Code ZJPVCS303_UL (UL stands for Upload) the selection screen is changed.  The unix file option is no longer available, and the user is able to upload a local file (in the same format as the current unix file, but tab delimited) to the program for processing.
    Requirements:
    There are two transactions ZJPVCS303 and ZJPVCS303_US for one single Report.
    ->When ZJPVCS303 Transaction is executed, the file is uploaded from the Application
      server to SAP R/3. The selection screen parameters would be:
      Logical Filename:
      Sales Organization:
      Distribution Channel:
      Division:
    ->When ZJPVCS303_US Transaction is executed, the file is uploaded from the Presentation Server
      to SAP R/3. When this transaction is executed, it should not have the 'Logical
      Filename' parameter anymore on the selection-screen. Instead it should only have
      Local File name on the presentation server:
      Sales Organization:
      Distribution Channel:
      Division:
        The same thing is applicable for the other transaction ZJPVCS303. When transaction ZJPVCS303
    is executed, it should not have the 'Local Filename' parameter anymore on the selection-screen. Instead it should only have
    Logical Filename:
    Sales Organization:
    Distribution Channel:
    Division:
    So how should I make these parameters invisible depending on the transaction codes execution.
    I have an idea of using MODIF ID, LOOPING AT SCREEN...MODIFY SCREEN.
    I have an idea of using SY-TCODE.
    EX:
    AT SELECTION-SCREEN OUTPUT.
    IF SY-TCODE = 'ZJPVCS303'.
    LOOP AT SCREEN.
    IF SCREEN-GROUPID = 'GRP'.
       SCREEN-INPUT   = 0.
       SCREEN-INVISIBLE = 1.
       MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ELSEIF SY-TCODE = 'ZJPVCS303_US'.
    LOOP AT SCREEN.
    IF .....
    ENDLOOP.
    ENDIF.
    ENDIF.
    But I am not able to get the output which I require. Please help me out.

    Hello Rani
    Basically the transaction determines whether upload starts from application server (AS) or presentation server (PC). Thus, you will have the following parameter:
    PARAMETERS:
      p_as_fil          TYPE filename   MODIF ID unx,  " e.g. Unix server
      p_pc_fil          TYPE filename   MODIF ID wnd.  " e.g. Windows PC
    AT SELECTION-SCREEN OUTPUT.
      CASE syst-tcode.
    *   transaction(s) for upload from server (AS)
        WHEN 'ZJPVCS303.
          LOOP AT screen.
            IF ( screen-group1 = 'UNX' ).
              screen-input = 0.
              screen-invisible = 1.
              MODIFY screen.
            ENDIF.
          ENDLOOP.
    *   transaction(s) for upload from local PC (PC)
        WHEN 'ZJPVCS303_US.
          LOOP AT screen.
            IF ( screen-group1 = 'WND' ).
              screen-input = 0.
              screen-invisible = 1.
              MODIFY screen.
            ENDIF.
          ENDLOOP.
       WHEN others.
       ENDCASE.
    Regards
      Uwe

  • TS3899 I have set up two email accounts on my iphone4, one with tiscali, my ISP, and the other on gmail. I am able to receive emails on both accounts, and can send emails from my gmail account, but am "Unable to Send Email" from my tiscali (talktalk) acco

    I have set up two email accounts on my iphone4, one with tiscali, my ISP, and the other on gmail. I am able to receive emails on both accounts, and can send emails from my gmail account, but am "Unable to Send Email" from my tiscali (talktalk) account. I get the error message "A copy has been placed in your Outbox. The sender address "name"@tiscali.co.uk was rejected by the server".

    Hi apmichael,
    If you are having issues sending email from one of your mail accounts on your iPhone, you may find the following article helpful:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Regards,
    - Brenden

  • I am trying to install windows 7 to my Macbook pro with bootcamp but every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7", any solutions ?

    Hi, I am trying to install Windows on my MacBook Pro with bootcamp. Every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7". I did this before using the same computer and the same hard drive so I am not sure why this is happening now but did´t happen then. Any solutions ?

    Was your Bootcamp info.plist manipulated to change any options?

  • Two separate copies of iTunes on one computer?

    Can I have two separate copies of iTunes on one computer? In Windows XP, I would like one copy on one user login, and a discrete different copy on another user login. My computer is not letting it install twice. How do I do this? Thanks!
    Dell   Windows XP  
    Dell   Windows XP  

    iTunes: How to share music between different accounts on a single computer
    http://docs.info.apple.com/article.html?artnum=93195

  • Can you use two different apple ID's on one Ipad?

    I would like to use two different apple id's on one IPAD.  One apple ID is for work and the other is for personal use.

    Read this.
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
     Cheers, Tom

  • How do I merge two valid, purchased iTunes accounts into one so all my music is in same account?

    I have two valid, purchasd iTunes accounts.  Older iPod has some great music, I just got a new iPad and set up second iTunes account, bought some more iTunes items for that account.  Just discovered iCloud.  Now I want to put all my music from both accounts onto the cloud so I can access it on all my apple devices.   Can't seem to add from one account to the other.  Can sign onto the new account wiht my old iPod, but it will not let me sync without erasing all the music on the device.  How can I merge these two accounts into one?
    PS  Makes you wonder how helpful support is when the usernames "Frustrated," "really frustrated," and "Help!!!!" are all taken...lol

    HeyStupid wrote:
    how do I merge two valid, purchased iTunes accounts into one so all my music is in same account?
    You cannot. iTunes pruchases remian tied to the account they were purchased with.
    I just got a new iPad and set up second iTunes account,
    Why?
    Remove your info from new account, update old account as needed and use that.

Maybe you are looking for

  • Mail Client Program that can be acessed from eithers Mac or PC OS.

    I am using a macbook (loving it) {ver 10.4.10) on which I've installed Windows XP SP2 using Boot Camp. I need both these OS's as there are 'those programs' at the work place that require the Windows OS. While setting up the dualboot on the Macbook, I

  • LDAP Authentication in Siebel integrated OBI

    Hi, We have OBI integrated in Siebel through Symbolic URL. We want to implement LDAP Authentication in OBI. Can anybody tell me the high level steps on the Siebel side which we need to do for supporting LDAP Authentication. thx, parag

  • Flash 14.0.0.125 crashes on Firefox 30.0

    This is the latest combination that crashes on my system (Vista). I have disabled RealPlayer, and have the latest GPU drivers. Some suggested fixes involve disabling protected mode. Isn't this like solving the problem of a tight seat-belt by removing

  • Import CDs with remote disc drive

    My laptop has security installed that prevents exporting to remote devices-eg hard drives. The CD player is a plug-in to a UBS port. Whenever I try to play a CD I-Tunes will not play it and I get a message saying that burning to the CD is not permiss

  • How to replace keyboard on Satellite A30?

    I have a replacement keyboard layout for the Satellite A30 but I have no idea how to start replacing and removing the broken one. Any help will be much appreciated. Thanks in advance!