How to create executable that uses mathscript? (LabVIEW 8.2)

Hello all, I have a rather lengthy algorithm developed in MATLAB that needs to be ported to LabVIEW 8.20, with the restraint of having to execute my code in under half a second. If I use the MathScript node/window, I can get the code to run in ~100ms by compiling it in the window and then running the VI. If I don't compile the code before running it, it takes approximately 16 seconds each time I run it, plus some hang up time after it finishes, as if it is closing something. However, it seems that I have to recompile every time I load the project or close/reopen the MathScript Window. My first question is if there is anyway around this, like saving the compiled code to be used if the program is closed and reopened. But in the end, the whole thing must go in an executable. I saw that in 8.20 MathScript code can be built into executables, but the executable that results still takes 48 seconds to run each time. Is this unavoidable? In the build specifications, I've checked the Enable MathScript Support box, and included the code file in the Dynamic VIs/Support Files category and have tried all the options under Additional Exclusions in the build spec window. By compiling the code in the MathScript Window and clicking Save All in the Project Window, there is an option to save a VI that the script seems to have created, which I have also tried to include in the build but received the same results. Any help at all would be greatly appreciated. Thanks in advance,
Chris

Hi Janell, thanks for responding.
The exe does not run any faster if I run it multiple times. I've only
ever run it three times in a row, however, before giving up on that
build.
I've attached a zip of the project folder that includes the m file and
the project/VI files. The exe is also in there in the folder 'Cueing'.
I did make a simple MathScript program that added two numbers and it
ran fine, both using a function call and the MathScript window and just
putting the code in the MathScript node. Both implementations had no
problems, neither did the exe's using either method.
Thanks,
Chris
Message Edited by ChrisReeves on 07-26-2007 01:41 PM - Well, I don't know if I will be able to attach the exe since the site is timing out on me when I try to upload it. It might just be too big.
Message Edited by ChrisReeves on 07-26-2007 01:44 PM
Attachments:
Cueing.zip ‏130 KB

Similar Messages

  • How to create a filter using mathscript transfer function in labview

    Dear all,
    I am currently designing a filter in labview using a Mathscript looping. The filter can be represented in transfer function. I have attachted the transfer function equation together with its value and the desire frequency vs. amplitude graph that I should obtained from it. Also, following are the transfer function written in Matlab.
    B1= tf ([57.5221845],[1 51.017077 205.1868]);
    B2 = tf ([1 0],[7.6991]);
    B3 = tf ([1 0],[14.32433403]);
    B4 = tf ([1 0],[137.6017]);
    F = B1 * ( (1+B3)/((1+B2)*(1+B4)));
    plot(F)
    I have also modify the coding as Labview Mathscript does not support the Matlab coding "tf" as transfer function to "bilinear"
    Problem I am facing are:
    1) Unable to display the graph of the filter in labvie.
    2) Unable to have sinewave as an input to the filter.
    3) The output cannot be display in graph format. 
    Hope to have the soonest reply from you guys. Many thanks in advance 
    Solved!
    Go to Solution.
    Attachments:
    transfer function.jpg ‏18 KB
    Weighting Filter.vi ‏266 KB

    Thank you again for offering to help me in writing the code.
    I suppose that I should do a frequency sweep on the transfer
    function to prove that it behave as the sample graph. Example, if I have an input sine
    wave with the frequency of 8.8Hz passing through the transfer function filter, the
    output that I should be getting is 1 according to the transfer function graph
    and of cause the frequency range of my input sine wave would only be between
    the ranges of 0.5 Hz to 30 Hz.
    Attachments:
    Weighting FilterTest1.vi ‏53 KB

  • Tips on transferring LV executable that uses Field Point Serial to another PC

    I have been trying to transfer an LabVIEW compiled executable  from one PC to another
    The executable references 2 field point serial banks.
    After hours of frustration I think I have it pinned it down to the fact that (at least for me) It is not possible unless LabVIEW is invoked on the target machine.
    Only if I start LV 2010 and configure a field point control on it then LabVIEW can refer to the Bank. After that I can have it refer to the correct IAK file and the executable will work. 
    However IF I try to transfer from another machine without starting LabVIEW on the target machine it simply will not work for me.
    It seems that I have to load a FIeld point control on a block diagram of a new machine then configure it to get dialogs to come up specifying
    how to select the proper configuration. I do not see any of this help in MAX
    Id much rather have a way of setting up in MAX than having my EXE work right away. Instead my workaround is to
    start LabVIEW and configure a field point control to get it set up proiperly.
    This means I may have to install yet another version of LabVIEw to get the exe to work again and its getting tiresome.
    I use INI files for the serial port settings. Its the field point software that has me going in circles.
    If anyone have any experience or tips for transferring an executable that uses fieldpoint serial (FP-1000) from one PC to another PC
    without having to invoke LabVIEW to configureit I would be interested in hearing from you. Thanks
    PS Target machine has LV2010   MAV ver 4.70f4
    Executable compiled in LV 2010
    Source Machine has LV 2010 SP1  MAX ver 4.7.6
    Executable compiled in LV 2010 SP1
    My next move is to upgrade the target to 2010 SP1 and try again but it has already taken me days to transfer this one program
    and I still cant figure out how to do it so I might just wait and see if there is any interest in helping me first.
    Thanks again!

    I have been to these KnowledgeBase links and what is so frustrating about it is that I have have not seen anything that was not already done
    automatically when I created the executable on the source machine and transferred the executable to the target machine.
    http://digital.ni.com/public.nsf/allkb/734179A2A6779C4286256C4C0069C5F4
    http://digital.ni.com/public.nsf/allkb/2DC46E07FAA0A5EF86256F35006E9AE5
    http://digital.ni.com/public.nsf/allkb/0E9001A8C84CD89486256DE80073F198
    MY FP version is 6.07 on both machines.
    The dll is where its supposed to be on the target machine in a Data subfolder under the main application (exe) folder
    The IAK file is created in MAX with the designations identical to what is the source machine.
    The EXE is now partially working (somehow) but I am trying to find out the exact procedure for next time so I can write it down for future reference..
    EVen though the target application now 'sees' the Field point banks the utility I added into the exe to allow user to configure a front panel Field Point control
    (should it be required) does not work. Instead when I try to browse configure the control in the executable I now get this error dialog.
    This must be the root of all my troubles.
    I am now attempting to resolve this by installing LV2010 SP1  and DCD_NOV10 on the target machine so that it matches the source machine.
    (If I am going to re-install Fieldpoint I might as well install the whole Device Driver CD)
    I hope this solves this issue once and for all.
    Your knowledge base insists that if the field point versions are the same on both machines and if the DLL is where it is supposed to be and if the IAK file is loaded and saved
    this should work. It did not and still does not fully work. If I can find the exact reason I will report it in this thread.
    Attachments:
    ni-FP-error.GIF ‏16 KB

  • How to create a login interface in labview PDA module?

    How to create a login interface in labview PDA module? So that it checks with a list of usernames and passwords and allow to go to another VI?
    Anu

    Anu,
    I've attached a really short example that does something like what you're talking about.  It just compares the user's username and password a pre-determined username and password and then "logs the user in" based on that comparison.  Like Greycat said, you probably want to store this username and password info in some sort of file on the PDA that's in an encrypted format for both security and flexibility of your application.
    I hope this helps,
    Justin D.
    Applications Engineer
    National Instruments
    Attachments:
    LoginVI.vi ‏17 KB

  • G'day.  I am using iMovie 11 and need to clear disk space.  How can I do that using an external drive, leaving me the option to go back and make changes or access old events or projects from that external drive?

    G'day.  I am using iMovie 11 and need to clear disk space.  How can I do that using an external drive, leaving me the option to go back and make changes or access old events or projects from that external drive?

    The slightly bigger question is whether you want to move all movie content to the external drive (essentially meaning that drive will always need to be attached when you're working with your videos), or whether you just want to archive older videos off to the external drive.
    If you want to move all videos, then just move the 'Movies' folder in your home directory to the external drive, then create an alias of the external 'Movies' back in to your home directory. Now the 'Movies' icon in your home directory will point to the external drive and everything will just work (as long as the external drive is attached when you launch iMovie)
    If you want to archive older movies then each Movie should have its own subdirectory within your Movies folder. These can easily be moved off to the external drive, and moved back should you ever need to work on those movies again.

  • How to Create Shared Storage using VM-Server 2.1 Red Hat Enterprise Linux 5

    Thanks in advance.
    Describe in sequence how to create shared storage for a two guest/node Red Hat Linux Enterprise using Oracle 2.1 VM Server on Red Hat Linux Enterprise 5 using command line or appropriate interface.
    How to create Shared Storage using Oracle 2.1 VM Server?
    How to configure Network for two node cluster (oracle clusterware)?

    Hi Suresh Kumar,
    Oracle Application Server 10g Release 2, Patch Set 3 (10.1.2.3) is required to be fully certified on OEL 5.x or RHEL 5.x.
    Oracle Application Server 10g Release 2 10.1.2.0.0 or 10.1.2.0.1 versions are not supported with Oracle Enterprise Linux (OEL) 5.0 or Red Hat Enterprise Linux (RHEL) 5.0. It is recommended that version 10.1.2.0.2 be obtained and installed.
    Which implies Oracle AS 10.1.2.x is some what certified on RHEL 5.x
    I think it would be better if you get in touch with Oracle Support regarding this .
    Sorry , I am not aware of any document on migration from Sun Solaris to RH Linux 5.2 .
    Thanks,
    Sutirtha

  • How to Create inspection that assign to Purchase Order / Material Document

    Dear QM Master,
    I am using QA01 to create inspection lot but can any master tell me , How to Create inspection that assign to Purchase Order / Material Document ?
    Appreciate.
    Thank you.

    Hello,
    When you create an inspection lot manually, you cannot reference an original document (for example, a goods receipt document, an order, or a delivery note).
    In QA01 you can create inspection lot manually for all inspection lot origins except the following:
    10 - Delivery to customer with sales order
    11 - Delivery to customer without sales order
    12 - General delivery
    13 - Repetitive manufacturing
    14 - Plant maintenance
    You can also refer this link
    http://help.sap.com/saphelp_47x200/helpdata/en/2d/3519d8448c11d189420000e829fbbd/frameset.htm
    Please check and revert.
    Regards,
    Priyanka

  • How to create crystal reports using MSDE 2000?

    Post Author: S_Muhilan
    CA Forum: Deployment
    Hi,
    I am using Crystal report 8.5. My Database sqlserver 2000. I generated reports and are working fine.
    Now I want to use MSDE 2000 instead of Sqlserver 2000 due to license factor.
    My application is developed in VB 6. The all the parts of the application is working fine except the report.
    All reports produced Database DLL error.
    So I opened the report and try to verify the database. But it gives pdssql.dll not found. Database error.
    After this error, I tried to create a new report and found that there is no option for MSDE 2000 database selection under more database.
    I usually select Sql server 2000 database under More Database option of location wizard.
    How to create crystal reports using MSDE 2000?
    Is it due to crystal report 8.5 verison problem? I also have crystal report 11 licensed copy.
    Please give me the good solution as early as possible
    RegardsS. Muhilan

    To use the inproc RAS SDK with CR.NET, you'd have to purchase either (1) Crystal Reports XI Release 2 Developer edition, and apply Service Pack 2 or above, or (2) Crystal Reports 2008 (not Crystal Reports Basic that comes with Visual Studio 2008).
    Sincerely,
    Ted Ueda

  • How to create a queue using CVP with ICM script(Comprehensive mode)

    Hello Guys,
    I would like to know how can I configure a queue in a comprehensive mode using micro-app at CVP + ICM environment. I work with UCCE at least 2 years, so I know how to create a queue using UCCX and/or IPIVR (I do a queue application using UCCX Editor and at ICM I use the Run external Script component), but at CVP I don't know how to create a application at Call Studio and how to call this application at ICM Script Editor to run this queue if there aren't agents available.
    Can someone help me to understand how can I do that?
    I attached the ICM Script using micro-app. This script runs ok, I call to a Route pattern and CVP route request ICM, so ICM run the script, but if there are no agents available the call drops, so I would like to know how can I create a queue to hold the call and to come back to a available agent.
    Regards,
    Eric Zapparoli
    Unified Communications
    Wittel

    Out of the check mark in the queue to skill group node you go to another run external script node, then you loop into that over and over again until the call is answered.
    david

  • How to create executable jar files??

    how to create executable jar files??
    thx :)

    Using JAR Files to Deploy
    http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava2/jar.html#jar

  • How to create Crossword Puzzle Using adobe captivate

    Hi, 
       how to create Crossword Puzzle Using adobe captivate
    Thanks
    Raja

    Hi Darrell!
    I've develeppoed a scrubber starting from the modification JackPister made to your code:
    http://forums.adobe.com/message/4802851#4802851
    I would like that scrubber can move in a circular path and it actually moves, but doesn't scrub... :-(
    Any idea!
    Many thanks in advance for your support!
    Davide

  • How to create a session using call transaction method.

    hi , this is nagaraju,
    How to create a session using call transaction method.

    Hi,
    About Data Transfer In R/3 System
    When a company decides to implement the SAP R/3 to manage business-critical data, it usually does not start from a no-data situation. Normally, a SAP R/3 project comes into replace or complement existing application.
    In the process of replacing current applications and transferring application data, two situations might occur:
    •     The first is when application data to be replaced is transferred at once, and only once.
    •     The second situation is to transfer data periodically from external systems to SAP and vice versa.
    •     There is a period of time when information has to be transferred from existing application, to SAP R/3, and often this process will be repetitive.
    The SAP system offers two primary methods for transferring data into SAP systems. From non-SAP systems or legacy system. These two methods are collectively called “batch input” or “batch data communication”.
    1. SESSION METHOD
    2. CALL TRANSACTION
    3. DIRECT INPUT
    First step for both the methods is to upload the data to internal table. From Internal Table, the data is transferred to database table by two ways i.e., Session method and Call transaction.
    Session is intermediate step between internal table and database table. Data along with its action is stored in session i.e., data for screen fields, to which screen it is passed, the program name behind it, and how the next screen is processed.
    When the program has finished generating the session, you can run the session to execute the SAP transactions in it. Unless session is processed, the data is not transferred to database table.
    A technique similar to SESSION method, while batch input is a two-step procedure, Call Transaction does both steps online, one after the other. In this method, you call a transaction from your program.
    SESSION METHOD
    Data is not updated in database table unless Session is processed.
    No sy-subrc is returned.
    Error log is created for error records.
    Updation in database table is always synchronous
    CALL TRANSACTION
    Immediate updation in database table.
    Sy-subrc is returned.
    Errors need to be handled explicitly
    Updation in database table can be synchronous Or Asynchronous.
    Regards,
    Sruthi.

  • How to create a complain  using  FM "CRM_ORDER_MAINTAIN"

    Hi experts,
    How to create a complain using FM "CRM_ORDER_MAINTAIN" and to capture the complain id which is auto generated.
    Please help me finding solution
    Thanks
    Aisurya

    hi
    try to create complaint manually and before save it go into debugging mode (\h in command window) and press save. debugging window opens and put a break point at function module CRM_ORDER_MAINTAIN. this will help you to identify the information that has to be sent to the FM to create a complaint. write code according to the information you found and after that call , CRM_ORDER_SAVE function module  to save the transaction. in this fm  ET_SAVED_OBJECTS you can find the newly created transaction id.
    for new complaints you can use GUID_CREATE FM to create new guid and you can give this value to FM as you find and also to the CRM_ORDER_SAVE fm. call BAPI_TRANSACTION_COMMIT finally. hope it helps you.

  • How to create the material using outbound IDOC

    Hi all,
    how to create the material using outbound IDOC.

    Hi..
    follow the steps...
    1) create a partner profile for material
    2) create a material
    3) go to transaction BD10 , give material no  and then execute.
    4) go to transaction WE02 to chk the status.
    if you want to send Outbound idoc automatically once the material is cretaed then use change pointers concept.
    please get back  to me if you need any assisstance further.
    Regards,
    Lokeswari.

  • How to create sub domain using java ?

    how to create sub domain using java ?
    for example:
    name1.domainname.com
    name2.domainname.com
    is it possibe ?

    You don't do that using Java.
    Consult the documentation of the application server in question how to configure it. If you're using for example Tomcat 6.0, then you should be consulting this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html].

Maybe you are looking for