It is possible to pass arguments to a VI uses "Open VI reference.

I am modifying pre-existing code. (I say this, because there are many other ways to work around this problem, but I'm stuck with what I have)

I have a large project that is compiled into an EXE file.

Within this project, it uses the 'Open VI reference' in VI that is bundled in the compiled exe file.

All good, no?

Well, here's the question:

Is it possible to include arguments of open type of command line with a "reference VI"?

Where I can say "Something.vi / Option: Foo".

I tried many variants such as

' Something.vi-/ Option: Foo ".

even tried variations such as

"C:\MyLVProgram.exe\Something.vi Option:Foo".

(Interestingly, quite there no error when you do "C:\MyLVProgram.exe\Something.vi" when executing the VI reference opened.)

This exe is deployed in a system that has only installed the runtime.

My current environment is LV 8.6.1. (I know it's old)

It seems that the antiderivative of LabVIEW recognizes only the paths, and in all other cases, I get an error

Error 1026 to invoke the node in Something.vi-> MakeSomething.vi

Possible reasons:

LabVIEW: VI Reference is not valid.

Any ideas?

You can only send command line arguments to an executable with the system Exec.  If you want to pass data in VI, then use the asynchronous call with run.

Tags: NI Software

Similar Questions

  • You need to pass arguments to the Sub - VI which runs in parallel to the main vi.

    Please help me.

    I can pass arguments to a subvi using "call-by-reference-node" but the sub - vi will not work in parallel.  I can also run my sub - vi in parallel using "invoke the node", but then cannot pass arguments.  I can't understand how to merge these two concepts.

    When I open the reference VI, I specify the strict type, using call-by-reference-node.  When I use call node, I don't specify the type.  It seems that specifying the type strict guard screw run in parallel, but also seems necessary to pass arguments.

    I apologize for my absence of a deeper understanding of this and appreciate any help you can give me.

    Chris

    You must invoke 'Ctrl Val.Set' node.

  • Is it possible to pass an argument to the function triggered by an event handler?

    Hi all
    Try to migrate my way of thinking in AS2 to AS3/CS4.
    OK, I have 2 buttons on the stage. Each button almost did the same thing, so I want to create a unique function, and each button calls this function even (we'll name this function 'Navigate')... However, the function will have to end up doing something different dependent on which button was clicked.
    If, previously, in AS2, I would have added the code on the buttons themselves with methods we (release) (see the SAMPLE CODE 1)

    Thus, each button calls the function efficiently navigate and transmits a different image to the function tag.
    Now, I try to recreate this feature in AS3. As you know, it (release) has been abolished (still do not know why), but we must now use event handlers, so I'll try to find a way to pass a different image to the function label argument to navigate. Currently, I can achieve that by using a switch statement to test which button has been clicked and act accordingly (see the SAMPLE CODE 2).

    In this simplistic example, this works very well, but in the real world, I have more than 2 buttons and the function navigate would probably much more complicated...
    So I would be able to pass an argument (as in the AS2 example) to the function to navigate... maybe in the addEventListener() method? I tried, but got compile errors (see the EXAMPLE CODE 3):

    The issue of the $ 1 Million:
    Is it possible to pass/change dynamically an argument to a function that is triggered by an event listener? (Or is the event that triggered the function the only argument you have?)
    If this is not possible, I would like to hear how you people it would handle (other than to have a switch with 12 cases in there)?

    I found a few solutions that I'll post below for prosperity...

    You can create a dictionary indexed by the targets of future events and store information in there you want to associate with them. Then the Navigate function check that the dictionary to get its parameters:

    Code.
    Button1.addEventListener (MouseEvent.CLICK, navigate, false, 0, true);
    Button2.addEventListener (MouseEvent.CLICK, navigate, false, 0, true);

    var buttonArgs:Dictionary = new Dictionary();
    buttonArgs [Button1] = "FrameLabel1";
    buttonArgs [Button2] = "FrameLabel2";

    function Navigate(e:MouseEvent):void {}
    gotoAndStop (buttonArgs [e.target]);
    }

    This to me, is about the same amount of work than writing a long, but a bit more elegant switch statement, I guess.

    I had a little trouble understanding the following solution, because I did not quite understand important information about event listeners. The addEventListener () method requires a function as the 2nd argument passed to it.
    It didn't quite click on until someone reminded me: Navigate is a function... Navigate("FrameLabel1") is a callfunction...

    So by writing simply navigate, I'm not actually calling the function when calling the addEventListener method, I'm just providing the event with a reference the name listener. Then, when the listener is triggered, the listener will call (and pass a MouseEvent argument to) navigate the function.

    Conversely, by writing Navigate("FrameLabel1") as 2nd argument, the event listener trys to run the function navigate both the addEventListener method is instantiated. And, since then, in this example, the function navigate returned as ": Sub" a compilation error would occur because as I said, an event listener requires a function as 2nd argument data type. This would be essentially as written addEventListener (MouseEvent.Click, Sub, false, 0, true)
    However, there is a way to get around this... basically, instead of setting the function navigate as returning an empty data type, you define a function to return data type and then nest another function (which actually contains the actions you want to run) on the inside.

    Button1.addEventListener (MouseEvent.CLICK, Navigate ("FrameLabel1"), false, 0, true);
    Button2.addEventListener (MouseEvent.CLICK, Navigate ("FrameLabel2"), false, 0, true);

    function Navigate(myLabel:String):Function {}
    return function(evt:MouseEvent):void {}
    gotoAndStop (myLabel);
    }
    }

  • How to pass arguments to the SQL Script in command prompt

    I don't know about the ' & nom_de_variable "to request a value in the command line.

    But, how can I pass arguments from the command line for the following script to the command - prompt

    Example:

    ex_proc. SQL

    CREATE OR REPLACE PROCEDURE ex_proc (employee_id NUMBE IN)
    IS
    v_emp_id Number (38);
    BEGIN

    v_emp_id: = employe_id;

    UPDATE emp_employee SET sal = 2000 WHERE emp_id = v_emp_id;

    END;
    /


    call_ex_proc. SQL

    Appellant for procedure above:

    BEGIN

    ex_proc (100); -The employee id is 100.

    END;
    /

    Here are the General controls that we use to run the scripts above-

    SQL > @ex_proc.sql

    SQL > @call_ex_proc.sql



    But my requirement is to pass the employee id as an argument in the command line as.
    SQL > @call_ex_proc.sql 100

    Is it possible to pass command line arguments?

    Usually this question start with reading documentation, wouldn't it?

    Solomon Yakobson showed you the method gross and unreadable.

    You will use best

    set = '& 1' '.

    -use & in the rest of the code

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Passing arguments to a custom class of MC constructor

    I have problems with the Builder for a custom class linked to a MovieClip library.

    I have a MovieClip in my library called circle, which is related to the com.shapes.Circle class. I want the contstructor of class circle to take 2 arguments, xScale and yScale:

    public function Circle (xScale:Number, yScale:Number) End Sub

    However, if I try to call it from code, for example ball circle = new Circle (3.14,2.0); , I always get a 'number of Incorrect arguments. Waiting 0 " error.

    Is it possible to have a custom class linked to a MovieClip that can take arguments, or Flash not allow this? I had asked about this before and thought I figured out, but look at it now, I apparently had not thought of it and has resorted to a workaround sloppy; I'm hoping to fix now.

    Library items cannot have constructor arguments, because the user can drag on the stage and in this way has no way of passing arguments. If you wat to initialize instances, define public void init() where you can add as many arguments as you want.

  • Passing arguments to the script

    Hello

    I have created a dialog box load the files in the folder and when I click the button I run another script of command StartScript (...)

    How can I pass arguments to the script (the paths of files)?

    Thank you

    Hey OzShimon,

    As long as you use a tiara predefined global variables (T1, T2,...)  you'd be fine. You can also define user variables (.) SAV files) or even to declare your own global variables with: call GlobalDim ("Myname").

    These variables are not re-initialized until you restart the script engine. So just change 'obj' for T1 your test should work

    ' Dim obj

    Void Button1_EventClick (ByRef This)

    T1 = "Hello World".

    Call ScriptStart("C:\Users\Oz\Desktop\test.vbs")

    End Sub

    * the script code (test.vbs):

    Call MsgBox (T1)

    Kind regards

    Javier

  • How to passing arguments to an exe

    Hai Everbody

    I know that LabVIEW has the ability to call an exe file created in different platform, can I know how to pass arguments to the special exe (which is located in another platform) via LabVIEW... I wish someone could help me out of this

    Thanks for your answers, I found the solution... As the exe is in .net, I used the syntax for the command line arguments in .net...

  • Is it possible to pass variables in FledgeController?

    We have some environment variables that change instance of Simulator, and it would be better that we could transmit in the Simulator, rather than having to write them to a file in the application to read running. Is it possible to pass variables in the FledgeController so they can be used as the app system environment variables?

    I don't think it's possible to pass via a command line.  But you can store this value in a file on your hard disk, Simulator one card micro SD and read the file in your application (although you mentioned that you do not want to).

    If you install via a JAD file, you can add the parameter to your JAD file and access them from your application.  But it's probably more complicated than to write a file.

  • Is it possible to pass parameters through eventlisteners?

    Hi all!

    Inside of a .fla file I have a few buttons, and each button will be tween a different image to the scene. All images are off the stage in the same x and position there and I just need to interpolate the coordinate x.

    Now, I am working with a document class external where I'm holding all my features and I'm stuck with interpolations. I'm willing to stay away from the tween flash engine and I'm working with tweenLite.

    My question is: is it possible to pass parameters through eventListeners so I can use something like this inside my docClass?

         public function animeThis (e:MouseEvent, mc:MovieClip, ep:int):void { //ep stands for endPoint.
         TweenLite.to(mc, 2, {x:ep});
         }
    

    If possible, how can I write the listeners if it's going to pass the event to be listened to AND these settings? And how to build the function so it will receive these settings and the event?

    If this is not possible, what is the best approach to do this?

    Thanks again!

    Hey Rafael,.

    Oh, it's too overwhelming to use a function to pass parameters to another function?

    It's completely legitimate way of dealing with things. Your original question was about passing additional params with the events - that's why I responded with the example of the custom event.

    Much depends on the needs of the application and architecture.

  • Dynamically Open VI and him pass a parameter to the dynamically open VI

    I want to open a vi dynamically, at the same time I have to pass a parameter to the dynamically open VI. Is it possible to do?

    Thank you

    Chrystelle Roy

    Passionate about LabVIEW

    Check here https://zone.ni.com/reference/en-XX/help/371361M-01/lvconcepts/dynamic_loadcall_vis/

  • Is it possible to partition the hard drive by using software like Partition Master, install XP and an earlier version of Office on the new partition?

    Partitioning of a Windows 7 computer

    On a laptop Windows 7 HP, it is possible to partition the hard drive by using software like Partition Master, install XP and an earlier version of Office on the new partition? I know I can run Win7 XP mode, but many prefer a base XP environment. Yes, I have new copies unregistered XP and Office 2003.

    TIA,

    Steve

    Besides Partition Master you can also use Windows 7 "Disk Managment" to shrink the partition of Windows 7, create a new partition of the space "unallocated", and then do a formatting NTFS "Full".

    Installing dual Boot with Windows 7 and XP
    (Read each method in this article and that fits your needs)
    http://www.SevenForums.com/tutorials/8057-dual-boot-installation-Windows-7-XP.html

    EasyBCD allows to appear more user-friendly boot menu:
    http://NeoSmart.NET/DL.php?id=1

    J W Stuart: http://www.pagestart.com

  • How is it possible that my favorite web browser, (trust) using the / offers WOT? What has gone wrong? I'm disappointed / / Thomas, Germany

    How is it possible that my web browser favorite, confident using the / offers WOT? What has gone wrong? I'm disappointed / / Thomas, Germany

    Tomew64 said

    The problem I was Mozilla proposed this add, resp. create the possibility for download. Have not, they check the possible risks?

    Mozilla did not this WOT extension, just like the vast majority of Extensions housed at addons.mozilla.org. Many Mozilla rendering Extensions have Mozilla or Mozilla Labs as the author.

  • is it possible to redown load from microsoft and use my original key to validate thnx paul t instead of the original operating system was 32 x 64 bit

    I loaded Windows 8, which was not working properly could not recover my windows 7 has requested a second reinstall windows 7 again, but it installs only 32 bits instead of the original operating system was 32 x 64 bit is possible to redown load from microsoft and use my original key to validate thnx paul

    Redownload or resume

    Method 1:

    When you buy Windows 8 an email with the download link and purchase details will be sent to your email address that you use to purchase / register your product, you can simply access email and use the download in link to the re - download to your computer.

    Method 2:

    Here are the links that will help you to download Windows 8.

    Note: Please refer to option 4 in the first link below and download the correct version of second link and use the product key of windows 8.

    http://Windows.Microsoft.com/en-GB/Windows-8/buy-Windows-8-online-FAQ

    http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only

    Hope this will help you. Please do not hesitate to meet any other assistance and we will be more than happy to help you.

  • is it possible to buy two licenses CC photographer using the same e-mail account?

    is it possible to buy two licenses CC photographer using the same e-mail account?

    You can buy only one subscription to an electronic ID/address adobe which can be activated on both computers.

    Kind regards

    Hervé Khare

  • Today I bought a new Mac that does ' t have a cd/dvd drive. I also bought Adobe photoshop elements 13. Is it possible that I can install this without using the provided disks? Help, please

    Today I bought a new Mac that does ' t have a cd/dvd drive. I also bought Adobe photoshop elements 13. Is it possible that I can install this without using the provided disks? Help, please

    http://www.Adobe.com/downloads/other-downloads.html can help

Maybe you are looking for