Mathscript- pre compile and passwords

Has there been any method to pre compile a Mathscipt to shorten run time?  If one wants to demo a Mathscript program and has to wait 30+ sec for it to compile, it sure reduces the impact.
Another question, is there a method to reset passwords ( especially related to Mathscript login) when passwords were never set to begin with.
CEK

Hello CEK,
The compile time of a script (or function) in MathScript increases exponentially with respect to the number of lines in the script.  We recommend limiting each script to about 40 or 50 lines so that the compile time is reasonable.  You can create functions out of parts of your file to break it into smaller pieces.  If this is still a problem, you can create the VI on a separate computer with the full script.  Then simply copy the VI to the demo computer and open it rather than recreate the VI.  As ttrr notes, make sure both computers have the same version of LabVIEW installed.
As for the security menu, this is not part of MathScript.  You may have more luck asking your question in the regular LabVIEW forum.  If you wish to password protect the VIs you've created (with MathScript nodes or otherwise), go to File >> VI Properties.  Select the Protection category and then click "Password-protected."
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

Similar Messages

  • The file '/foo.aspx' has not been pre-compiled, and cannot be requested

    Hi All
    I am using odp .net to access oracle data. I have also added oracle.dataaccess in my asp .net references. Everything works fine in my development and when I run the code through debugger. However, when I deploy the project in IIS, it gave me following error...
    "The file '/foo.aspx' has not been pre-compiled, and cannot be requested
    This is pretty generic error and I found out this is related to .Net assemblies.
    By further investigation, I found that oracle.dataacess.dll is not present in the bin directory of a deployed web site. I am not sure why .net is dropping that dll in the deployment wizard.
    Did anyone encounter this problem before?
    I got a workaround for now that manually copting dll into the bin directory of deplyed web site. However, I am looking for more robust and technical answer..
    The strange thing is I have been deploying the web site the same way for last 8 months and never encountered this problem.
    thanks a lot..
    Message was edited by:
    amazon

    If you add a reference to Oracle.DataAccess at design time it will be added as an assembly definition to web.config. Then you don't need a copy in your bin dir and it will be found in the GAC.
    Eric

  • Referenced native libraries getting pre-compiled and then throwing exception

    Hi I have an issue in the universal app. I am referencing Nokia.Graphics.Imaging.dll and WindowsPreview.Media.Ocr.dll in the universal app project. Everything compiles and runs on every device I tested it with. The problem is that after some time NGen kicks
    in and pre-compiles my DLLs, including the native ones. These DLLs then get corrupt and next time I run the app I get BadImageFormatException due to an attempt to load the <nativelibrary>.ni.dll. Is this a bug of NGen? When I delete these <nativelibrary>.ni.dll
    files the app runs again.

    Hi, unfortunately, I was not able to simulate this behavior in another project so far. Here
    http://uloz.to/xRShw487/precompiled-zip are NGENed files from our application (_not_working folder) and from a filter-manager sample (_working from different_app). As you can see for some reason Lumia.Imaging.ni.dll
    in our app has only 796kB, while from the other app it has 1235kB.
    The NGEN log file looks ok to me:
    03/23/2015 15:18:24.272 [11796]: 1>    Compiling assembly C:\Program Files\WindowsApps\app\Lumia.Imaging.Managed.DLL (CLR v4.0.30319) ...
    03/23/2015 15:18:24.350 [11796]: ngen returning 0x00000000
    03/23/2015 15:18:25.334 [24168]: 1>    Compiling assembly C:\Program Files\WindowsApps\app\WindowsPreview.Media.Ocr.winmd (CLR v4.0.30319) ...
    03/23/2015 15:18:25.365 [24168]: ngen returning 0x00000000
    03/23/2015 15:18:25.444 [8036]: 1>    Compiling assembly C:\Program Files\WindowsApps\app\Lumia.Imaging.winmd (CLR v4.0.30319) ...
    03/23/2015 15:18:25.725 [8036]: ngen returning 0x00000000
    Once I delete Lumia.Imaging.ni.dll and WindowsPreview.Media.Ocr.ni.dll, the app starts working again. Lumia.Imaging.Managed.DLL seems to be OK and does not cause any troubles, maybe because it is managed, while both of the problematic DLLs are native already.
    Hi LVolf,
    >>I am referencing Nokia.Graphics.Imaging.dll and WindowsPreview.Media.Ocr.dll in the universal app project
    How did you add these references in your project? Basically, the NuGet package is the easiest way, for example:
    See the
    NuGet documentation for all the ways you can download and install the NuGet package in your project. To install the package from within Microsoft Visual Studio, do the following:
    1.In Visual Studio, select PROJECT | Manage NuGet Packages.
    2.In the Online section, select nuget.org. Search for 
    Microsoft.Windows.Ocr.
    3.Click Install.
    4.Select BUILD | Configuration Manager to change the build configuration of your project from
    AnyCPU to x86, x64, or  ARM.
    5.If Intellisense does not work after you have installed the NuGet package, unload and reload the Visual Studio project. In Solution Explorer, right-click the project and select
    Unload Project. Then right-click the project again and select 
    Reload Project.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Ntop pre-compiled for Snow Leopard?

    I was looking for a network traffic monitor and found ntop promising. Unfortunately the 3.2 version -the only binary version I found for Mac- is too old and does not work on Snow Leopard. I have tried to compile ntop 3.3.10 but without success (libraries missing even if Xcode installed, etc.). Does anyone know where I can find a decent ntop version pre-compiled and fully working on SL?

    If you're brave, MacPorts has a later version of ntop. It requires installing MacPorts and all its associated cruft, thought.
    (IMHO a better solution would be to find what those dependencies are and get a local build working. Given the nature of ntop there are some significant dependencies so it might take a little time but you'd certainly learn from the experience. )

  • HT201240 I have a new macbook pro that did not have a disk, OS X was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., so how do i

    I have a new macbook pro that did not have a disk, OS X lion 7.3.4 was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., now there is some mysterious administrator name and or password??

    See #5
    Step by Step to fix your Mac

  • What is the Advantage and Disadvantage of Pre-Compiled JSP

    Hi All,
    What is the advantage and disadvantage of using pre-compiled JSP

    Pro:
    By pre-compiling your JSPs you don't need a java compiler on the server - just a jre.
    The result? No java compiler on the server means a potential security hole patched - people can't just write and deploy jsp's willy nilly on the server.
    You KNOW that all your JSPs compile before you visit them - because you have compiled them all :-). It won't fail because of a stupid spelling miskate that prevents compilation. That doesn't mean they will run without error of course...
    Con:
    Compiling the JSPs ties them to a particular server - unless you take the runtime along with them.

  • How to pre-compile jsp and deploy to tomcat

    Hi All,
    I wuld like to know how to pre-compile JSPs and deploy to tomcat. I am using ANT tool to build and deploy the war file.
    Thanks in Advance.
    Regards,
    --Nagesh.                                                                                                                                                                                                                                                                                                                                               

    for Tomcat 5.0 (You'll need to edit to fit your needs)
        <path id="jsp.classpath">       
            <!-- point classpath to directory containing jasper-compiler.jar and
                   jasper-runtime.jar -->
            <fileset dir="C:\tomcat\common\lib">
                <include name="**/*.jar"/>
            </fileset>
            <fileset dir="C:/tomcat/common/endorsed">
                <include name="**/*.jar"/>
            </fileset>       
        </path> 
        <target name="jsp" >
        <!--
             The Ant JSPC task doesn't work with Tomcat 5.0
             so in the meantime we need to define our own task.
          -->
        <taskdef name="jspc50" classname="org.apache.jasper.JspC">
            <classpath>
                    <path refid="jsp.classpath"/>    
            </classpath>
        </taskdef>
        <jspc50 outputDir="${build.classes}"
                package="jsp"
                uriroot="${project.dir}/web/webApp"
                webXmlFragment="c:/web.xml"
                verbose="9"
                validateXml="false">           
        </jspc50>
        <javac srcdir="${build.classes}/jsp"
               destdir="${build.classes}"
               debug="true"
               optimize="false"
               includes="**/*.java"
               source="1.4">
                <classpath>
                    <path refid="classpath"/>
                    <path refid="jsp.classpath"/>
                </classpath>          
        </javac>
    </target>    More information can be found here :
    http://www.onjava.com/pub/a/onjava/excerpt/AntTDG_chap8/index1.html?page=last

  • How do I retrieve bookmarks and passwords from a Windows backup, after OS re-install?I have a full Windows backup of my machine, pre re-installl

    I had to reinstall Vista 7 OS. I have a full Windows backup of my machine, prior to the re-installation. How do I retrieve the bookmarks and passwords from the backup? I understand they're stored in various files a ".default" folder in C:\users\username\appdata\roaming\mozilla\firefox\profiles. When I try restoring the folder, the files get skipped... When I try browsing for the individual files, I don't see them!

    Many thanks for your responses... After a little scouting on the web, I have found THE solution... This is all due to the way Windows 7 Backup works, and will NOT let restore apps...
    ("File restore in Windows7 is not designed to restore back applications. This is because the application state is spread across potentially multiple folders, files & registry. Windows7 file backup is not aware of where all the state is spread to be able to restore the entire application accurately as such information is internal to the application. Restoring application partially might corrupt the application and render the application unusable. So we do not allow restoring applications from file backup.
    In case files under C:\Program Files etc. are chosen for restoring, we block restoring files from backup to such locations as it might cause the applications to not function.'')
    What one has to do when restoring is to NOT attempt to restore to the original location, but to select the radio button which allows you to type a path where you want the files restored and type in the path of the original location!!! Then select copy and replace...A little quirky (and tedious), but it works!

  • Getting -90031 (can't find function) error from Mathscript node when running executable, but works when I run the pre-compiled VI

    I have set the Mathscript preferences 'Path' and 'Working Directory' parameters to the folder containing my scripts, and it works when
    I run the VI, but I get a -90031 error when I run the executable.
    What am I doing wrong?

    Hi Umars,
    I had the same problem. In my case it turned out that it was caused the surrounding code. Plus the error
    message was missleading. I got the error message -90031 (unknown symbol CalcWelchCorr2) for the
    following piece of code:
    ecorr= 1;
    if setup & src== 1
       for lag= 1:50
       rho=  CalcWelchCorr2( lag, win );
       if rho > 0.001, ecorr= [ecorr; rho]; else, break; end
    end
    CalcWelchCorr2 is a user defined function located in the MS search path. The problem was caused by the
    "break" in line 5. Actually this line was marked by some little warning symbol. Eventualle I modified the code
    to get rid of the break
    ecorr= 1;
    if setup & src== 1
       lag= 1; rho=  CalcWelchCorr2( lag, win );
       while rho > 0.001 && lag <= 50
          ecorr= [ecorr; rho];
          lag= lag+ 1; rho= CalcWelchCorr2( lag, win );
       end
    end
    and voila, the executable worked fine.
    However, I had to check all my VIs ( > 200 !) for similar errors which gave me headaches.
    Why does the application builder doesn't produce some appropriate error message ?
    E.g. "Line xxx in MathScript node in VI xxx cannot be executed"? Currently you get the
    impression that the application was build successfully but eventually you get strange errors
    or even erroneous results. Keep in mind that tracking down bugs in the final application is
    much more difficult that in LV. Also the error message produced by the executable was not
    helpfull at all.

  • Capturing weblogic username and password for use in my console extension

    Hi,
    I have developed a console extension as a war file and it needs to capture the Weblogic username and password so internally it can use the class MBeanServerConnection that needs these during connection. I have therefore created the standard <login-config> <auth-method>FORM</auth-method> ... stuff in the web.xml to output a logon.jsp when my war is accessed in the hope of capturing username and password. My intention is that these would appear in addition to the standard logon that appears when the Weblogic console is 1st accessed.
    However, my console extension logon.jsp does not appear and I think it’s because there is only one logon needed and this is when the main Weblogic console is accessed because my console extension is subordinate to the main Weblogic console.
    Therefore, how can I get my console extension logon.jsp to appear so I can capture the Weblogic username and password?
    Thanks,
    Dave.

    One approach that might work is to write a look and feel console extension that modifies the console's login jsp (vs trying to have a second login jsp).
    http://download.oracle.com/docs/cd/E15523_01/web.1111/e13745/rebrand.htm#i1070459 describes how to write look and feel extensions.
    Basically, you instantiate the look and feel extension template, hand-edit login/LoginForm.jsp, then build and deploy the extension.
    One tricky part is figuring out how to pre-compile the jsps. Here's part of a build script I've used for look and feel extensions. Let me know if you need a sample look and feel extension.
    <project name="sample-look-and-feel" default="build">
    <dirname property="this.dir" file="${ant.file.sample-look-and-feel}" />
    <property environment="env" />
    <property name="src.dir" value="${this.dir}/src" />
    <property name="build.dir" value="${this.dir}/build" />
    <property name="webapp.dir" value="${build.dir}/webapp" />
    <property name="jspc.dir" value="${build.dir}/jspc" />
    <property name="samplename" value="sample-look-and-feel" />
    <property name="wlhome.dir" value="${env.WL_HOME}" />
    <property name="consoleapp.dir" value="${wlhome.dir}/server/lib/consoleapp" />
    <property name="deployment" value="${build.dir}/${samplename}.war" />
    <target name="build">
    <!--
    Make a temporary directory that we will compile the jsps from.
    It includes the console's web.xml (which has the jspc configuration),
    the sample's jsps, and any console taglibs the sample's jsps use.
    -->
    <copy todir="${jspc.dir}">
    <fileset dir="${consoleapp.dir}/webapp">
    <include name="**/struts.jar" />
    <include name="**/standard.jar" />
    <include name="**/beehive-netui-tags.jar" />
    <include name="**/skeleton_taglib.jar" />
    <include name="**/render_taglib.jar" />
    <include name="**/l10n_taglib.jar" />
    <include name="**/*.tld" />
    <include name="**/web.xml" />
    </fileset>
    <fileset dir="${webapp.dir}">
    <include name="**/*.jsp" />
    </fileset>
    </copy>
    <!--
    Compile the jsps out of the temporary directory.
    Put the generate files into the extension's wabapp.
    -->
    <java classname="weblogic.servlet.jsp.jspc20" fork="true" failonerror="false">
    <arg line="-noexit" />
    <arg line="-d ${webapp.dir}/WEB-INF/classes" />
    <arg line="-webapp ${jspc.dir}" />
    <!--
    <arg line="-verboseJspc"/>
    <arg line="-debug"/>
    <arg line="-keepgenerated"/>
    -->
    <classpath>
    <pathelement path="${wlhome.dir}/server/lib/wlw-langx.jar" />
    <fileset dir="${consoleapp.dir}/APP-INF/lib">
    <include name="*.jar" />
    </fileset>
    <fileset dir="${consoleapp.dir}/webapp/WEB-INF/lib">
    <include name="*.jar" />
    </fileset>
    <pathelement path="${java.class.path}" />
    </classpath>
    </java>
    <!-- Remove the temporary directory now that we're done with it. -->
    <delete dir="${jspc.dir}" />
    <!-- Package the extension -->
    <jar destfile="${deployment}" basedir="${webapp.dir}" />
    <!-- remove the webapp directory now that the webapp is built -->
    <delete dir="${webapp.dir}" />
    </target>
    </project>

  • Pre-compiled JSPs getting re-compiled by the server

    For our project we are using wlappc to pre-compile JSPs and generate EJB classes. We are using the split directory format, so this is what the task looks like -
    <target name="appCompile" depends="init" >
    <delete dir="${ear.dist}" />
    <mkdir dir="${ear.dist}" />
    <wlpackage srcdir="${ear.src}" destdir="${ear.build}"
    toDir="${ear.dist}" />
         <wlappc source="${ear.dist}" verbose="true" classpath="${classpath}" />
    </target>
    After this, we are using wldeploy to deploy the application to another server.
    This is how the task looks like -
         <target name="beadeploy" depends="init" >
         <wldeploy action="deploy"
              source="${src.dir}/dist/myapp.ear"
              name="myApplication" remote="true"
              user="${deploy.username}" password="${deploy.password}"
              verbose="true" adminurl="t3://${deploy.host}:${deploy.port}"
              upload="true"
              debug="true" targets="${deploy.target}"/>          
         </target>
    The problem that I am facing is that, even after re-compiling the JSPs, they get compiled again by the server when accessed for the first time !
    We using Weblogic 8.1.2.0. Can you please provide a soplution for this ?

    Hi,
    The following steps help you troubleshoot why you may be having problems with JSPs recompiling:
    1. When invoking jspc, your classpath must contain the same release, service-pack, and any temporary patches as the servers you wish to deploy on. Otherwise, the Server will read the JSPs as being compiled on a different version of the WebLogic, and will recompile them all.
    2. You should invoke jspc from the root directory of your open-directory exploded) WebApp or specify -webapp) and use the -d option to deploy the generated classes to the WEB-INF/classes directory. You can then archive these JSP classes into a JAR if you wish from the WEB-INF/classes directory.
    3. The JSPs should then be deployed either individually to the WEB-INF/classes/jsp_servlet directory or in a JAR file under the WEB-INF/lib directory.
    4. One other thing that could cause JSPs to be recompiled is if the timestamp of the class is different from that of the source.
    Also, if your ant classpath is different from whatever WLS-related classpath entries you use to run WLS, this may cause problems, too.
    -- Prasanna
    Prasanna Yalam

  • Pre-compile JSPs before deploying

    Hi All,
    what is the best way to pre-compile my JSPs and then bundle them together into
    a .war file, then deploying it ???
    I have like 100 jsps that i wanted to precompile and wanted to package them together
    into a abc.war file, which i can further deploy to my WLS6.1 server ?
    I have another instance of WLS8.1 that i wanted to do the same thing ?
    can somebody please advise me something and how to do this ?
    This is on Production environment.
    -steve

    Steve, you're correct, the output jsp .classes are insterted into the war
    file if compilation is successful.
    "steve" <[email protected]> wrote in message
    news:404f7e99$[email protected]..
    >
    Hi Raja,
    Thanks for your reply. does this ant task wlappc compiles the .war fileand then
    repackage into the same .war file ?
    am i correct ?
    please advise .....thx, steve
    "Raja" <[email protected]> wrote:
    Both option are will work. I am using wlappc ant task to compile my war
    file prior
    to deployment.
    <target name="appc">
    <wlappc
    source="C:\abc\abc.war"
    />
    </target>
    Coming to deployment you can either write ant task to deploy using
    console.
    Example
    of ant task for deploying from a windows dev machine into remoteproduction
    box.
    Admin server need to be running for deploy to be successful.
    <target name="sun-deploy">
    <wldeploy action="deploy"
    source="C:\projects\abc\abc.war"
    name="myapp"
    user="weblogic"
    password="weblogic"
    verbose="true"
    adminurl="http://xyz:7001"
    debug="true"
    targets="myserver"
    upload="true"
    />
    </target>
    "steve" <[email protected]> wrote:
    Hi All,
    what is the best way to pre-compile my JSPs and then bundle them
    together
    into
    a .war file, then deploying it ???
    I have like 100 jsps that i wanted to precompile and wanted to package
    them together
    into a abc.war file, which i can further deploy to my WLS6.1 server?
    I have another instance of WLS8.1 that i wanted to do the same thing
    can somebody please advise me something and how to do this ?
    This is on Production environment.
    -steve

  • ITunes prompting me for an old ID and password to play purchases made with my new account

    I have been purchasing music with my current ID since 2007. I have recently noticed though that some music bought with this account will no longer play unless I give a password for an old account (pre-2007). Luckily I have receipts so can prove which account was used. In "Get Info", the old account name is given even though in the receipt, it shows that it was bought with the more recent account.
    Anyone had the same issue? Suggestions on how this happened and what to do next?
    I am a former MobileMe user but not sure if that has anything to with it.

    If you know the account's id and password then you should be able to authorise that account on your Mac's iTunes via the Store > Authorise This Computer menu option - you can have more than one account authorised on a computer's iTunes.
    You won't be able to play them with your new account, all content from the store is tied to the account that downloaded it.

  • Username and password not automatically filled in

    The problem I have with Firefox is that when I log in to one of my email services (I use two different ones).
    In the past when I opened the log-in page my login and password (saved in FF) were already filled in so I just had to click "log in" button - it still is that way on the other email service. I had it set up this way for years, since many FF versions back (I have automatic updates on in FF so it is always up to date). Recently I was changing my passwords and I got confused when updating saved password so I decided to delete saved passwords for one of the email services and just logged in typing the password in manually and clicked 'save password' when FF password manager asked me. From that point on when I open the log in page from my bookmarks, the details are not there anymore, so I have to click on 'username' field to get the autocomplete list, choose my login name (there is only one) and then the password gets filled in and I can log in, so it's not the issue of password not being saved or filled in for my login but the fact that these details are not filled in from the point I open the login page from bookmarks, like it used to be and like it still is with the other service (for which I didn't delete and re-save password).. Now this might not be a big deal you might think but it is really annoying that I have to do extra step just to log in to my email especially that I log in to it frequently during the day and that I like things to work the way they are supposed to.
    I have tried removing cookies for that website, deleting and re-saving the bookmark (with fields already filled with details), deleting all saved password for that website and saving it again and nothing seemed to help.
    I will appreciate any help if anyone has the solution. Please do not suggest alternatives like using add-ons or using email client etc.
    Not sure links are allowed but this is the link to the screenshot showing and describing the problem:
    http://screencast.com/t/TKWVVogzmqI
    I'm on win 7 pro 64, latest Mozilla 29.0.1

    OK. I tested it with the name and password in the bug report.
    This looks like a problem with the submit URL.
    The form uses a submit URL action="/login.html"
    <pre><nowiki><form action="/login.html" method="post" name="login" id="loginForm"></nowiki></pre>
    There runs a script that changes this to a secure version
    <pre>loginForm = $('#loginForm').attr('action', 'https://profil<i></i>.wp<i></i>.pl/login.html'),
    </pre>
    That makes the Password Manager not working properly.
    It should work if you open the login page via a secure connection https://profil.wp.pl/login.html
    You can also use the Saved Password Editor extension to edit the form and modify the submit URL to use <b>http://profil<i></i>.wp<i></i>.pl</b> to make the Password Manager work.
    *Saved Password Editor: https://addons.mozilla.org/firefox/addon/saved-password-editor/

  • I cannot download a programme as it is not accepting my administrator name (my name) and password (I know my password is correct)

    I am currently in Ghana and am trying to download a programme to make my modem work. 
    When i download a new program or go to update spotify for example, in order to allow the changes my mac requires me to enter the administrator name and password.
    I know the password as when i log into my computer on use this works.
    However when the tab comes up to download/etc the name for the administrator does not come up, and so i copy the name that it says on the system preferences accounts information. this does not work (it is my name).
    I
    cant download snow leopard as i need a digitial copy which isnt in store online - and dont wanna send it to ghana.
    Please help??

    If the machine was upgraded to Lion 10.7.x by the original owner then you bought an illegal license of Lion and also of any other applications that the seller  said came pre-installed, this assumes the seller did not include original install media. In that case you need to contact the seller for the original install DVDs that came with the machine re-install up to Snow Leopard 10.6.8 and then purchase Mountain Lion ($20) and the applications you want or need. If the seller cannot come up with the original install discs then you can buy them from a nominal cost from AppleCare..

Maybe you are looking for