How does a global variable affect the runtime of optimisation-function fminsearch?

Hi,
my function "fmintest" needs 254s ~ 4min to finish calculation in Mathscript, while Matlab needs
3s!!! I need the sorfware for data processing in a real time measuring system, where the calculation have to be done within 5 seconds.
In the Mathscript-help I found the following (global -> details):
If you call this function from a MathScript Node, LabVIEW operates with slower
run-time performance for the MathScript Node. To optimize the performance of the
MathScript Node, remove this function from scripts.
How can I remove needed global variables in the fminsearch function handle? Is the system faster if I would/can remove the global variables?
How can I avoid Mathscript-breakdown after saving changes to m-files and restarting them again?
regards
Attachments:
ni3.7z ‏2 KB

Hi,
can you provid a VI and not only your m-files? It will be easier to help you!
Can the customer provide a VI that demonstrates this behavior, rather than just providing the m files?
Also, the Help file says fminsearch is not supported by the
LabVIEW Run Time engine, so please take that in mind. If you want to build an application you cant use this function.
Regards, RMathews

Similar Messages

  • How to change Global variable in the query

    Hi,
    I have 6 reports which is using 0PDT as a global variable and has single option as a property. Now I want to change this property and have multiple selection but I am not able to change its property.
    I am able to see all the filter variables from the query property and from there I am getting edit option to change but the "single selection" option is grey/disable which is preventing me to make change in this variable. Is there any way that I delete this variable and create a local variable which has date range option.
    This is affecting all my reports and all the report needs date ranges instead of single select option.
    Thanks,
    Shivani

    Shivani,
        You can change the restrictions with new variable(right click on required infoobject and choose restrict -->> choose variables -->> move existing variable from right to left and move  new variable. Then you can see only one variable.
    You can not delete any variable if is using in some queries.
    how to restrict:
    Srini<a href="http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm">Restricting Characteristics</a>

  • How does a corrupted file affect the vault update?

    If I would have updated the vault after the files got corrupted, wouldn't the corruption get updated as well? Wouldn't that defeat the purpose?

    I believe it's meant to only copy files that it knows have changed.
    I.e. old masters wouldn't get re-copied, but version updates, metadata changes, new imported masters would.
    Of course, many people here reported having a lot of problems with the Vault mechanism in version 1, but others seem to have no problem at all (suggesting a subtle system configuration difference.)

  • Webdynpro - how to add global variables and common proj to existing proj

    How to add global variable in either ViewController or CustomController.  We realise that codes must be added within the begin and end exction.  Codes outside that will be deleted when saved. 
    How can we add a common WDP project to an existing project?  We have actually added a common wdp project at the project references screen.  But during runtime, we encouter error.  The error is classNotFoundException.  The class is the class created in the common project.

    Hi.
    I think you need to assign ProB to ProA.
    Step1.
    Open propety of ProjectA.
    Step2.
    Select WebDynproRefrences
    Step3.
    Select Sharing references
    Step4.
    Choose add button.
    Step5.
    If your projectA named "testapp" and you are not using
    DC "local/testapp" is the proper name.
    I hope that it work!!!.

  • ABAP Program global variable print at runtime

    Hi,
      I have an abap program with more than 1000 global variables. I want to run the program and at a specific point show a report with names and runtime values of all the global variables in the program. Is there some system table which stores all the global variable names and source code? Kindly help.
    Satya

    Hello Satya,
    You can store all your global variables in one internal table.
    let's say your Itab contains 1000 fields. Now, if you want to retrive the name of the itab, you can use the system call.
    DATA: IT_COMP LIKE RSTRUCINFO OCCURS 0 WITH HEADER LINE.
    *-- Getting fields of internal table
      CALL 'AB_STRUC_INFO'
        ID 'PROGRAM'   FIELD SY-CPROG
        ID 'STRUCNAME' FIELD P_ITAB
        ID 'STRUCINFO' FIELD IT_COMP-SYS.
    After getting all your fields in it_comp table you can use field symbol to get the values of your fields.
    Regards,
    Reward points, if it is useful...!

  • How to specify a variable in the path prefix of an External HTTP (RFC) connection (in transaction SM59)

    Hi There,
    Please can someone tell me how to specify a variable in the  path prefix of an External HTTP (RFC) connection in transaction SM59?
    For example if my path prefix is /invoke/test/example?input=XYZ; how do I replace "XYZ" with a variable so that I can pass in any value after "=" ?
    Thanks,
    Brendon

    Hi,
    This is SAP Business one system administration forum. Please find correct forum and repost above discussion to get quick assistance.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • How does Adobe ExportPDF differ from the export feature in Adobe Acrobat Pro 9.0?

    How does Adobe ExportPDF differ from the export feature in Adobe Acrobat Pro 9.0?

    ExportPDF is based on a newer conversion engine than the one found in Acrobat 9.0.  They're similar in some respects, but ExportPDF is more advanced.
    -David

  • How to use bind variables in the following query

    CREATE OR REPLACE PROCEDURE MMDB.test IS
    sel_qtn VARCHAR2 (10);
    CURSOR PT_QUANTITY IS select * from mmdb.product_tree WHERE QUANTITY_CHECK ='E'
    AND run_id = 100
    a PT_QUANTITY%ROWTYPE;
    BEGIN
    FOR i IN PT_QUANTITY
    loop
    sel_qtn := i.quanttity-1;
    While sel_qtn>=1
    loop
    insert into mmdb.product_tree (BILLING_ACCOUNT_NO ,S_CODE) values (i.BILLING_ACCOUNT_NO ,i.S_CODE||'E');
    sel_qtn :=sel_qtn -1;
    End loop;
    commit;
    end;

    Don't duplicate threads: How to use bind variables in the following query

  • How to declare global variables using another global variable in ODI

    I am declaring a gloabal variable using another global variable.
    say for example:
    I have a global variable empid.
    I am decalaring another global variable empname in refreshing tab of global variables and the select statment is
    select empname from emp where empno = #GLOBAL.empid -------if i write like this i am getting error as invalid character.
    select empname from emp where empno = '#GLOBAL.empid'-------if i write like this i am getting error as invalid number.
    I have kept the datatype as numeric and action as non persistent
    Please help
    Thank you in advance.

    Hi,
    You cant test/refresh empname standalone.
    You need to create a new package drag and drop both variables and make them as refresh variable and execute that package and test.
    Flow,
    empid----> empname
    Thanks,
    Guru

  • HT201270 In layman terms, what the heck does updating your carrier settings mean and how does it effect me in the real world?

    In Layman terms, what the heck does updating your carrier settings mean, and how does it effect me in the real world?

    No offense, but what carrier?  what data and what service? 
    I get a bogus window hovering in my itunes page, telling me I have to update information, that I don't want to manage. 
    I am not upset or unappreciative of your feedback, quite the opposite, I can't believe anyone actually monitors peoples frustrations. 
    I just want to make sure I don't allow information about me that is not necessary.  I just want to listen to music and have a phone and have an ipad. 
    Everything else about apple is way to propriatory. I don't want to do anything that isn't very simple. 
    Most importantly, there never seems to be any (human being) that can answer a telephone call anymore. 
    Contact us, means...send us an email about something you don't know anything about, and I don't even know that questions to ask.
    I am not allowed to be ignorant.  If I am I wait days for answers.....

  • How does one add folders to the E-mail App?

    How does one add folders to the E-mail App?

    Select your email under Account, tap Edit at the top then New Mailbox at the bottom. This will only work if you have an IMAP email account.

  • TS1702 How does one get rid of the stocks from Yahoo Finance on the notifications pull down bar on iPhone 5?

    How does one get rid of the stocks from Yahoo Finance on the notifications pull down bar on iPhone 5?

    If you mean you don't want to see the stocks at all in notification center go to Settings>Stock Widget and turn Notification Center to Off.  If you mean you want to remove some of the individual stocks shown, open the Stocks app, tap the "i " on the bottom right, tap next to the stocks you want to remove, then tap Done.

  • How does someone earn points in the Apple Support Communities?

    How does someone earn points in the Apple Support Communities?

    Hi mariksmit,
    mariksmit wrote:
    Too bad most guys i replied to found solutions but didn't acknowledge it.
    That happens. Many Original Posters don't reply. Just keep helping.
    When I get a thank you (without points) that gives me a buzz. With points, a bigger buzz.
    Regards,
    Ian.

  • HT201269 Gave my iPhone 4 away to someone w/ a 3GS, so how does service get activated on the new device? All docs transferred already via iCloud.

    Gave my iPhone 4 away to someone w/ a 3GS, so how does service get activated on the new device? All docs transferred already via iCloud.

    That person needs to contact their cellular carrier.

  • [Solved] How does one go about changing the hostname in arch nowadays?

    Everything I've seen on the subject references /etc/rc.conf, which I believe is no longer used.
    I've updated /etc/hostname, but when hostname -f does not return the expected.
    Last edited by mreiland (2013-07-14 21:09:07)

    mreiland wrote:How does one go about changing the hostname in arch nowadays?
    Please see "man archlinux".
    Also, I can never remember if hostname is one of those things you need to reboot for...
    Last edited by drcouzelis (2013-07-13 16:24:10)

Maybe you are looking for

  • Portal Runtime Error in Performance Overview

    Hi Experts , I am getting portal runtime error while accessing performance overview and this error is occurring in test system not in prod. I have only passed our custom parameter in "ViewGroup" and "ViewID" , which comes under property Editor of Per

  • Balance Brought Forward Customer Statement

    Hi there, everyone Our company would like to print customer statements in a balance brought forward format. By "Balance Brought Forward" I mean that the statement starts with an Opening Balance (being the previous month's closing balance), then refle

  • SQL Loader and Oracle 11g

    Hello, Im receiving an sqlldr: not found error. Im getting ready to talk with our System Admin about the situation. Before I do I wanted to make sure that SQL Loader (sqlldr) is an available add-on for the Oracle 11 client. A co-worker mentioned that

  • PhotoShop Elements ...Editing PSD files

    My clients often supply me with layered PSD files.  Their text is in a separate layer.  I need to modify the text.  Is Elements the right software for this?

  • Is the End Near ?

    Report confirms dismantling of Apple forum staff By AppleInsider Staff Published: 03:00 PM EST Apple Computer has decided to do away with its discussion support team, a group of forum hosts that have monitored and moderated its user discussion boards