Launch of a VI dynamically

I try to run a VI dynamically using VI server. The VI works well when it is used in the LabVIEW (LV2010sp1) development environment, but throws an error 7 when built as an executable file.

I included the VI to be launched within the "Always include" section of the specification to build and think I've adjusted my paths properly to explain the differences between a VI and an EXE file. What am I do wrong here?

Hello

I think that you have not added the vi Looper in the support directory. Check the image below.

I think this should resolve your problem.

Kind regards
Nitz

(Bravo to give good answers, mark it as a Solution If your problem is resolved)

Tags: NI Software

Similar Questions

  • Problem with XControl and remote debugging

    Can you make a connection of remote debugging to an EXE or DLL that uses an XControl?  So far, my experiences would indicate the answer is no, but I find that surprising and have seen no earlier mention of it in bug reports or in the forums.  When trying to connect to the DLL with XControl, I get the error 'fatal error occurred during the operation, close the connection' dialog box.  I'm just connection of the local machine, not on the network.

    My real application is a rather elaborate DLL that is called from a Visual Studio 2008 C++ application and launches the LV panels dynamically.  I realized that my DLLs that include panels with XControls do not allow debugging remotely for you connect while dll without XControls works very well.  It is the only difference between the two projects.

    I've simplified it to a simple test program that merely updates an indicator in a timed loop.  I created two versions of the VI, which updates a digital single and the other who updates an XControl (which itself is a simple digital-only model change XControl of dropping a digital indicator on the FP of façade and update a local variable to it in the event of modification of data).  Then I built these two screws in the exe files and tried to make a debugging connection to each after the launch of the EXE.  Of course, the application with the XControl Gets the above mentioned error dialog box.  Any ideas on why this is happening?

    I have attached the sample project that generates the two EXEs.  One is called debugging with XControl Test and another test of debugging without XControl.  My worm. LV is 9.0f2.  Here's the very simple diagram showing the problem:

    I saw that this problem has been fixed in LV 2010 SP1:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/12560

    Look for the CAR ID 238566 to the fixed bug list.

  • Default value loading the page fragment (jsff)

    Hello

    I use jdev 11.1.2.3.0 and I have an application that has a main page with links to launch fragments in a dynamic region.

    I use a session bean to populate the dynamic region

    One of the fragments has a selectoneradio control that is bound to a lookup table.

    The selected value is used to power a bean, who calls a stored procedure to create a record that is used elsewhere.

    I find that if you open the fragment and select one option other than the first item and go to an another jsff by clicking on a different link, then navigate back, still the previously selected item is selected, as opposed to the question that I would be default.

    I've been Googling away, but did not found a snippet of code that allows me to reset, or return to the first element in the set default control.

    Any suggestion would be appreciated.

    Yes, automatically send has been set to true.

    I found a solution to my problem, but it won't work for everyone.

    Because the list of items is linked, but the control itself doesn't have to be, I was able to set the default value directly in the value property of the control.

    Old code...

           
                               label = "#{bindings." SupplierSystemsLookup1.label}.
                               required = "#{bindings." SupplierSystemsLookup1.hints.mandatory}.
                               shortDesc = "#{bindings." SupplierSystemsLookup1.hints.tooltip}"id = 'sor1 '.
                               layout Binding = "#{backingBeanScope.SupplierChange.optSystems}" = "horizontal" "
                              

    inlineStyle = "margin: 0px 0px 15px 0px;" autoSubmit = "true" >

    New Code...

           
                               label = "#{bindings." SupplierSystemsLookup1.label}.
                               required = "#{bindings." SupplierSystemsLookup1.hints.mandatory}.
                               shortDesc = "#{bindings." SupplierSystemsLookup1.hints.tooltip}"id = 'sor1 '.
                               layout Binding = "#{backingBeanScope.SupplierChange.optSystems}" = "horizontal" "
                               inlineStyle = "margin: 0px 0px 15px 0px;" autoSubmit = "true" >
             

    Kind regards.

  • Why my Adobe Encore has stopped working since I upgraded to Windows 10?

    When I try to launch again through the dynamic link in Adobe Premier, I get an error message "failed to initialize the Quicktime. Please try reinstalling Quicktime. "I follow this teaching, but the error just return. Does anyone else have this problem? And, an easy solution, I hope! Kind regards.

    To the question in your title... Still is 2012, WELL before Win10, if you're lucky, it works in all the

    An idea that MAY work to install or run some programs in Windows old 10

    -http://www.tenforums.com/tutorials/15523-compatibility-mode-settings-apps-change-windows-1 0 - a.html

    For your problem of dynamic links, simply export it to Premiere Pro using a preset that is appropriate, such as MPEG2-DVD for DVD creation and import the files again (MPEG2-DVD preset creates two files, audio & videos, that is, still takes to creating DVDs)

  • Groovy Script error - launch of workload dynamically

    Hi all

    I'm trying to plan kickoff to load dynamically to help after the groovy script

    com of the packaging. LoadPlan.OdiTool;

    Import oracle.odi.core.OdiInstance;

    Import oracle.odi.core.config.MasterRepositoryDbInfo;

    Import oracle.odi.core.config.OdiInstanceConfig;

    Import oracle.odi.core.config.PoolingAttributes;

    Import oracle.odi.core.config.WorkRepositoryDbInfo;

    Import oracle.odi.core.persistence.transaction.ITransactionStatus;

    Import oracle.odi.core.persistence.transaction.support.DefaultTransactionDefinition;

    Import oracle.odi.core.security.Authentication;

    Import oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker;

    Import oracle.odi.domain.runtime.loadplan.OdiLoadPlan;

    Oracle.odi.domain.runtime.loadplan.OdiLoadPlan import. *;

    Import oracle.odi.domain.runtime.loadplan.OdiLoadPlanStep;

    Import oracle.odi.domain.runtime.loadplan.OdiLoadPlanStepContainer;

    Import oracle.odi.domain.runtime.loadplan.OdiLoadPlanStepSerial;

    Import oracle.odi.domain.runtime.loadplan.finder.IOdiLoadPlanFinder;

    Import oracle.odi.domain.runtime.loadplan.OdiLoadPlanSchedule;

    Oracle.odi.runtime.agent.invocation import. *;

    Oracle.odi.runtime.agent.invocation.StartupParams import. *;

    Import oracle.odi.runtime.agent.invocation.LoadPlanStartupParams;

    import java.util.HashMap;

    import java.util.Map;

    public class CustomLoadPlan {}

    Public Shared Sub main (String [] args) {}

    String Master_User = 'Master_User;

    String Master_Pass = "Master_Pass";

    String WorkRep = "WORKREP";

    String Odi_User = "myuser";

    String Odi_Pass = 'mypass ';

    MasterRepositoryDbInfo masterInfo = new MasterRepositoryDbInfo (Url, driver, Master_User, Master_Pass.toCharArray (), PoolingAttributes()) new;

    WorkInfo WorkRepositoryDbInfo = new WorkRepositoryDbInfo (WorkRep, new PoolingAttributes());

    OdiInstance odiInstance is OdiInstance.createInstance (new OdiInstanceConfig(masterInfo,workInfo));.

    Authentication auth = odiInstance.getSecurityManager () .createAuthentication (Odi_User, Odi_Pass.toCharArray ());

    odiInstance.getSecurityManager () .setCurrentThreadAuthentication (auth);

    ITransactionStatus trans = odiInstance.getTransactionManager () .getTransaction (new DefaultTransactionDefinition());

    Officer of RemoteRuntimeAgentInvoker = new RemoteRuntimeAgentInvoker ("http://localhost", "myuser", "mypassword".toCharArray ());

    Map paramsValues = new HashMap();

    LpProps properties = new Properties ();

    LoadPlanStartupParams startupParams = new LoadPlanStartupParams (paramsValues);

             

    LoadPlan research

    OdiLoadPlan odiLoadPlan = (odiInstance.getTransactionalEntityManager () .getFinder (OdiLoadPlan.class)) .findByName (planName) (IOdiLoadPlanFinder);

    Implementation of the Plan of care

    ExecutionInfo res = agent.invokeStartLoadPlan (planName, 'GLOBAL', startupParams, "," WORKREP", lpProps, 1);

    }

    And get the following error

    org.codehaus.groovy.runtime.InvokerInvocationException: oracle.odi.runtime.agent.invocation.InvocationException: http://host.com:port/OracleDIAgent:org.apache.commons.httpclient.ProtocolException: The Host of the server.com has not responded to a valid HTTP response

    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)

    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)

    at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1302)

    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:759)

    at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:271)

    at groovy.lang.GroovyShell.run(GroovyShell.java:513)

    at groovy.lang.GroovyShell.run(GroovyShell.java:170)

    at oracle.odi.ui.groovy.GroovyScriptRunInstance.run(GroovyScriptRunInstance.java:228)

    Caused by: oracle.odi.runtime.agent.invocation.InvocationException: http://host:port2/OracleDIAgent:org.apache.commons.httpclient.ProtocolException: The Host of the server.com has not responded to a valid HTTP response

    Any idea a pointer what is wrong in the script. Please note that my Agent is up and running, I am able to launch the studio ODi LoadPlan. I am also able to join annex to load the plan through the groovy script. So looks like something wrong in the script.

    Any help is greatly appreciated.

    Thanks and greetings

    I was able to solve the issue myself. It was two minor problems.

    (1) agent was running over HTTPS not http like I was trying in the script.

    (2) the name of the agent must be column of the Web Application context, rather than the column name set Agent screen.

    After the correction of these two options, I was able to launch the Plan of loading of the groovy script.

    7 regards thanks

  • How to add a link to the html area to launch a dynamic action?

    Hey, guys:

    I need to add a link to a region of html hyper (I wish it could be a button :(), the value of the items in this region is loaded by a process of pl/sql before loading the header. And this link must trigger a dynamic action to update the database. I know how to add a link Super in this region, but how to define this link if I can launch a dynamic action by clicking on this link, could someone give me a hint?

    Thank you very much in advance.

    Sam

    Published by: lxiscas on April 11, 2013 17:04

    When I said updateRec I was just a name. Using the class alias_ncic will produce exactly the same result.
    Learn more about what you're trying to do, I wouldn't do that with DA at all. I would probably do the link send page and launch a process that call your PL/SQL. But if you must do a DA I'll try to explain a technique below.

    When you say

    Then, I pass two values of two hidden variables:

    P216_H_NCIC_APPROVE_TABLE_NAME---> "SOR_ALIAS".
    P216_H_NCIC_APPROVE_KEY_VALUE---> #ALIAS_ID #.

    Your link not pass anything because you never actually call the link, you have a DA of the substitution of the link action.

    So... try something like that. Use it for your link attributes:

    onclick="return false;" class="alias_ncic" title="NCIC Approve" id="#ALIAS_ID#" rel="SOR_ALIAS"
    

    This defines two attributes more to enter the values you need to.

    In yourself DA action on a.alias_ncic add two actions to "set the value.
    1.
    Action: Set
    Set Type: Javascript
    JavaScript expression: this.triggeringElement.getAttribute ("id")
    Assigned items: P216_H_NCIC_APPROVE_KEY_VALUE

    2.
    Action: Set
    Set Type: Javascript
    JavaScript expression: this.triggeringElement.getAttribute ("rel")
    Assigned items: P216_H_NCIC_APPROVE_TABLE_NAME

    Now you have your values defined.
    Make sure that in your PL/SQL Execute Code action you both of these elements in the field "Page to go" so that they values are actually passed.

    That should do it.
    Thank you
    -Jorge

    Published by: jrimblas on April 29, 2013 16:49

  • Dynamic link manager repeatedly crashes when you try to launch applications of CC

    Whenever I try to run most of the applications of CC, the application crashes and become unusable for a few minutes. When it crashes varies slightly between applications (first Pro and After Effects crashes at launch, Photoshop crashes soon after the presentation of the main window, etc.). I checked the console after noticed what had happened repeatedly and seeing the following message, repeat once per second (with a number of instance iteration):

    10/27/13 3:56:13.725 PM com.apple.launchd.peruser.501[258]: ([0x0-0x5b05b].com.adobe.dynamiclinkmanager.application[537]) Job appears to have crashed: Abort trap: 6
    10/27/13 3:56:13.773 PM ReportCrash[514]: Saved crash report for dynamiclinkmanager[537] version 7.0.0 (7.0.0.0) to ~/Library/Logs/DiagnosticReports/dynamiclinkmanager_2013-10-27-155613_lrflew.crash
    

    I downloaded the log mentioned in the console here: http://pastebin.com/iWBiykSP

    I use a Macbook Pro retina, 15-inch, late 2013, running Mac OS X Mavericks (10.9).

    Someone else has similar problems? Y at - it an update that I don't know about dynamic link manager that resolves this problem? Should I submit a bug report for it?

    Hi, I had the same problem you do, and I couldn't find any workingsolution on the net.

    UnUntill I tried to do

    And all the problems I had are gone.

  • Launch of Lightroom 6 is not. error: "can't find the access point of the procedure _crtCreateSymbolicLinkW in the MSVCR110.dll dynamic link library.

    It says: "cannot find the access point of the procedure _crtCreateSymbolicLinkW in the MSVCR110.dll dynamic link library. What can I do? I have already uninstall and then reinstall the software...

    It is indeed a microsoft problem, check here:error "did not find the entry point _crtCreateSymbolicLinkW - Microsoft Community .

  • SpeedGrade crashes on launch, standalone and dynamic links, ideas?

    I tried reinstalling and using the application of the cleaner. I've deleted preferences. I don't know what else to try. I used to work properly.

    System:

    Mac Pro

    OS X 10.10.3

    6 core Intel Xeon 2 x 2.4 GHz

    32 GB 1333 MHz DDR3 ECC

    ATI Radeon HD 5770 1024 MB (x 2)

    I don't know what all that means, but maybe this will help - there is more if you wish:

    Process:sgmacosx [3375]
    Path:/ / Applications/Adobe SpeedGrade 2014/Adobe SpeedGrade CC 2014.app/Contents/MacOS/sgmacosx CC
    Identifier:Adobe. SpeedGrade
    Version:8.2.0 (8.2.0)
    Update information:Adobe SpeedGrade CC 2014-0 ~ 51
    Code type:X 86-64 (native)
    Parent process:??? [1]
    Responsible:sgmacosx [3375]
    ID of the user:70 s

    Date/time:2015-04-28 16:26:40.462-0500
    OS version:Mac OS X 10.10.3 (14D136)
    Report Version:11
    Anonymous UUID:BB8CDD89-3F7B-59EB-BF04-4C5C33E8E224

    Time since started awake: 27000 seconds

    Discussion crashed:5 dispatch queue: com.apple.root.default - qos

    Exception type:EXC_BREAKPOINT (SIGTRAP)
    Exception codes:0 x 0000000000000002, 0 x 0000000000000000

    Request for clarification:

    __CFTypeCollectionRetain() called with a NULL value. probably a collection has been corrupted *.

    Sometimes Sg has had problems with double-card graphic machines. Have you tried to disable an and then see if Sg begins? I looked at the discussions here in the past where they went to a single card, got it working there... and then understood that the issue was to get the other card. That is why I ask. Your computer MUST be running Sg beautifully.

    Neil

  • Dynamically call a demon or an actor VI in TestStand

    Hi all

    The context:

    • I have a non-reentrant VI that must run in parallel to a sequence
    • This VI is opened and closed several times during the tests.
    • I close the VI sending him a pending request as it closes.

    It seems to me that there are two ways to start the VI:

    • Have TestStand call a LabVIEW VI that launches the dynamic VI. This could be the static node in the CGRA or an invoke node using a ref VI.
    • Use the asynchronous step "Run VI" in TestStand type.

    Right now I use the step "Run VI" asynchronous. I do not use the option "Reserve loaded live for execution", and once from time to time I get the crash 'TestStand sequence editor has stopped working ".

    My questions:

    1. With regard to memory management, which is the best way to put in place my use case? Is it better to have LabVIEW make the dynamic call or TestStand call dynamic?
    2. What is the difference in between both of these memory management works?

    Thanks a lot - suggestions are appreciated.

    Mr. Jim

    Let us know how it goes with the movement of the sous-suite.

    Basically the call run VI Asynch just dynamically create a sous-suite and qualifying in a new thread.  You can view it in the definition of step Type in one of the PreSteps.  But using the subsequence you eliminate the part of the dynamic generation of it (I've seen topics with, similar to what you describe).

    Good luck

  • launch of vi VI

    Pretty simple, I have a vi (main VI) who gather all data and an another vi which process the data.  I would like to have a button that opens once pressed the other VI.

    Thank you

    Roddy

    R & D

    LV2009

    It must break down the problem into two parts: respond to a button and launch a VI.

    The first part is easy, as is to use a structure of the event (assuming that you have the full or higher development system). There are provided with LabVIEW examples that show you how to use a structure of the event. Just search for "event-driven".

    The second part depends on what kind of "launch" you want to do. If you just want to pass the control to the other VI then you just need to have the Subvi on the block diagram of VI calling when you process the key event. Just then the data into it through terminals of the Subvi. If, on the other hand, this another VI must execute as caller VI then you must start the VI dynamically using VI server. This will launch the second VI and then returned to the caller so that now runs the two screws. You can do this using VI server with something like this:

  • Secondary asynchronous dynamic distribution

    Hello

    A little, I have a problem with the help of screws of class member in a secondary school.  Take a look at this project, I joined to the VI for an example of what I'm trying to do (in LV 2011).

    Basically, I want to decide based on a user selection what Viewer I'll run and throw in a secondary school.  The user can change this during the operation of the program.  I decided to do the various viewers all the members of a class so that I can add new viewers and don't forget that all are compatible.

    Here's the question.  If I want to use the function of VI run asynchronously, I can't do this with dynamic distribution terminals (limitation in LabVIEW).  So, I did a pitcher that incorporates a static distribution terminals.  I call this launcher using the function to run asynchronously, and then the Launcher I runs the specific instances through dynamic distribution.  It works, and I can verify that the screws run with screw open their facades when they are run.  But I can't seem to get a reference to this VI which is launched via the Launcher to put in my main VI high school.

    I have a workaround, you can see in the other method used to launch screws in the example.  Selects directly using the name of the class member.  The data is passed to the VI using the method of control value.

    As I said, I have a solution to the problem.  But I wonder if there is a better way to do it.  So, if anyone knows how I can launch a VI of asynchronously and place its façade in a school I would like to hear about it.  Thanks to LabVIEW gurus.

    BTW, how easy you can solve your problem is to create a temporary queue, pass it in to the call of the CGRA (with static VI passing it in the dynamic), then you have the dynamic VI post its own Ref to the queue.  The calling code will wait in the queue for the reference, and then destroy the queue.

  • passage of queue to dynamically called VI

    In my application, I have two screws. IIn a VI I create a queue and then I spend the Ref. of the queue for the other VI and launch this VI dynamically.

    While running any VI can stop regardless of the status of the other VI.

    but as soon as I stop the VI who created the queue. the Ref. of the queue becomes invalid. and dynamic VI cannot use the queue more

    I want to the queue to be eliminated that after I explicitly call has queue function.

    How can I achieve that

    Hey Tushar,

    You can create a "functional Global ' which encapsulates the function Create tail and buffer the reference to the queue in a registry to offset.  The VI may have two modes of operation: CreateQueue and ReadReference.  The top-level VI he would run in Design Mode, and the VI dynamically saying would just continue to use the playback mode.  Since this VI remains a VI performance left even after the parent process ends, the queue reference, allocations will remain valid.

    See you soon!

  • Passing parameters to dynamically loaded screws

    Hello

    I have a data acquisition application that uses an analog input, PCI-Hardware.
    With this material I enjoy different channels and display them in audio
    In operation 'Preview' I enjoy 4 channels and display them in 4 audios.
    I have therefore a quarter of the maximum sampling for each channel.
    Operation 'zoom' I only enjoy a channel (at the material max sampling rate)
    and display the data in the selected channel (the other channels are igored in zoom mode)

    My idea is to launch the different screws according to the mode (overview, zooom).
    I could imagine, that a good approach to perfom this task calls different screws
    of the main program.

    Unfortunately, I do not understand how to pass parameters to the VI if I call them
    using knots "reference open VI", "call for reference" and "close reference VI.
    I tried to understand the Labview "Example of dynamic load", but it's too complicated for me.
    Can someone give me a simple example to dynamically load the screws or y at - it white papers
    or nugets on this topic?


  • Load a dynamic VI and keep in memory after execution

    Hi guys,.

    I use a strange setting that I have to follow a set of rules.

    My problem is the following:

    I have a main VI (which is compiled into an EXE file) that dynamically loads and executes a Subvi (the Subvi is not compiled into the EXE file). Calls Subvi has overall functional which is called only by dynamic screws, where the global is not a dependency of handmade VI and it is not compiled into the EXE file either. As you can see already, when I call my Subvi dynamic for the first time (for example it behaves like a SET function), it will define the functional global; then, when the dynamic Subvi execution stops, it releases the global functional VI. So if I call another sub - VI dynamic as a function of READING, he will not retain the information specified by SET Subvi.

    I'm not allowed to do the subVIs or global one functional dependence of handmade VI and it can not be compiled into the EXE file, so what I have to do is load the Subvi Dynamics somehow and either keep in memory even when the execution ends, or keep the functional global in memory after the first call.

    Anyone know how I would be able to do this?

    Help is appreciated,

    Drazen

    Drazen,

    When ' a VI dynamic calls functional overall for the first time, launch an another dynamic VI (Holder.vi) who has the functional overall as a Subvi.  Holder.VI does nothing except wait until the hand VI is called dynamic screws as long as Holder.vi is in memory, it will also keep the functional global in memory.

    I have not tried this, but think that it will work.  It of a little awkward, but must have a minimum size and impact on CPU resources.

    Lynn

Maybe you are looking for

  • FCPX can not find some of my files

    Can anyone help please?

  • Upgrading the Bios on Satellite A30

    Can someone tell me please how can I update my bios apparently Toshiba seem to be wrong. OM my Satellite A30 using XP Pro I started having the blue screen everytime I turn on and he told me that there is something missing or incorrect in the Bios and

  • Using time capsule secure airport on WAN

    How can I access my Airport Time Capsule remotely?  What I need to 'allow the Setup program on Wan' or can I access it using a VPN and activation of the sharing feature?  If I WAN configuration is it secure?

  • Error code 802000E on the x 64-October Windows malicious software removal tool (KB890830) 2010

    Hello Need help on a problem installing update.  The next update just will not be can not be installed: X 64-October Windows malicious software removal tool (KB890830) 2010 and Update security for Windows 7 for x 64-based systems (KB981957) I really

  • I ball clarao tv T18 does not work

    I use Home Basic Windows 7, until yesterday my i ball claro tv t18 works correctly, but suddnely when today I boot my laptop and run the program, it say windows cannot start this program and closes automatically... Please helpi ball clarao tv T18