How do I create an executable with arguments that executes once and terminates

I'm just starting with LabView, so I'm sure this issue has been address somewhere already.  I just can't locate the answer.
I am running version 6i (I may be able to get 7 or 8).
I need to create a command line executable program with parameter input that executes only once and then terminates.
This is for instrument control (sets the signal generator frequency, level, RF on/off and arms the Trigger).  I have written a simple VI that works from within LabView (programs the instrument when the Run button is pressed).  I have further managed to perform an Application Build to create an executable however, the application continues to run, waiting for the Run button to be pressed.  Also, I need to know how to pass parameters to this executable (freq, level, RF on/off, trigger arm).
This executable will (eventually) be called repeatedly by a Matlab file.
Thanks,
D

LabVIEW 7 added a property to get a command line argument. For older versions see http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DA5B56A4E034080020E74861.
I'm not sure I understand you problem with the Run button. If you set the execution mode to Run When Opened from VI Properties, it should execute once whenever it's called. I think that when building an executable, it changes the property to this if it's not already set. If the application does not have this set, it will not be running at all. I'm assuming that you are talking about the Run button on the toolbar and not a run Boolean that you've created on the front panel.
Since you have the app builder, your other option is to create a DLL. If you can call a DLL in Matlab, then that would probably be simpler.
Message Edited by Dennis Knutson on 11-28-2005 02:46 PM

Similar Messages

  • How do I create an Application with Automator that will open files in Photoshop Elements 11 and run an action?

    Here's what I'd really like the Script to do when I select one main folder:
    Look through all the subfolders, find all the PNG files and convert them to TIFFs, replacing the original PNG files.
    Open the converted TIFF files in PSE 11.
    Run an action on them in PSE 11 (which I already created that adds a white fill layer below the TIFF file.)
    Save each file in their original location and Close each file.
    Import them into LR.
    Anybody?  Bueller?  Bueller?
    If that's not possible, I'd love an Automator action that can convert the PNG files to TIFFs that can be viewed in LR 4.4.  If I convert them in PSE 11, LR can view them, but if I convert them using Automator, LR cannot.
    Thanks so much for any help you can provide.
    -Jen

    LabVIEW 7 added a property to get a command line argument. For older versions see http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DA5B56A4E034080020E74861.
    I'm not sure I understand you problem with the Run button. If you set the execution mode to Run When Opened from VI Properties, it should execute once whenever it's called. I think that when building an executable, it changes the property to this if it's not already set. If the application does not have this set, it will not be running at all. I'm assuming that you are talking about the Run button on the toolbar and not a run Boolean that you've created on the front panel.
    Since you have the app builder, your other option is to create a DLL. If you can call a DLL in Matlab, then that would probably be simpler.
    Message Edited by Dennis Knutson on 11-28-2005 02:46 PM

  • How do I create an MPG2 with Compressor that is neither 16:9 or 4:3?

    I have a quicktime movie, exported from FCP which is 1280X800. I need to create an MPG2 also at 1280X800.
    How do I do this?
    Compressor only seems to create a 16:9 or 4:3 MPG2 regardless of the original source file.
    Thanks.

    A program Stream.
    It's for a BrightSign video player (HD210) http://www.brightsign.biz/products/hd210.php
    The Program Stream MPG2s that I create with Compressor work fine with the player but I just can't find a way of changing the dimensions to 1280X800.
    Thanks.

  • How can we Create a Media with all the OS,Applications and drivers with cutomize settings in MDT to automate the deployment

    Hi,
    I need to Create a media along with all the packages (OS,Drivers, Applications and customized settings) through MDT for the windows 8.1 deployment.
    Can someone guide me?
    Shailendra Dev

    Hi,
    Here are 3 great links to get you started:
    http://technet.microsoft.com/nl-nl/windows/dn481547
    http://c-nergy.be/blog/?p=3968
    http://windowsitpro.com/windows/create-windows-7-media-deployment
    This should provide you enough information to do what you want.
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • Creating a job with arguments

    Hi,
    This might sound really remedial, but can someone explain to me how I go about creating a job with arguments with programs. It errors out when I try to use DEFINE_PROGRAM_ARGUMENTS and when I try to use SET_JOB_ARGUMENTS_VALUE. Maybe it's the order I do it in. Any directions would be much appreciated. Thanks!
    Tony

    Hi Tony,
    Almost any internal error is an Oracle bug and you should report this to support.
    This is definitely not supposed to happen and I haven't seen this error before, do you have a test case throwing the error ?
    Using program arguments should be fairly straightforward. Here's a simple example with two varchar2 arguments
    -- create a stored procedure with two arguments
    create or replace procedure myproc (arg1 in varchar2, arg2 in varchar2)
    is BEGIN null; END;
    -- create a program with two arguments and define both
    begin
    dbms_scheduler.create_program
    program_name=>'myprog',
    program_action=>'myproc',
    program_type=>'STORED_PROCEDURE',
    number_of_arguments=>2, enabled=>FALSE
    dbms_scheduler.DEFINE_PROGRAM_ARGUMENT(
    program_name=>'myprog',
    argument_position=>1,
    argument_type=>'VARCHAR2',
    DEFAULT_VALUE=>'13');
    dbms_scheduler.DEFINE_PROGRAM_ARGUMENT(
    program_name=>'myprog',
    argument_position=>2,
    argument_type=>'VARCHAR2');
    dbms_scheduler.enable('myprog');
    end;
    -- create a job pointing to a program and set both argument values
    begin
    dbms_scheduler.create_job('myjob',program_name=>'myprog');
    dbms_scheduler.set_job_argument_value('myjob',1,'first arg');
    dbms_scheduler.set_job_argument_value('myjob',2,'second arg');
    dbms_scheduler.enable('myjob');
    end;
    Hope this helps,
    Ravi.
    -Ravi

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • How do I create an xControl with multiple inputs and outputs?

    Hello,
    i am trying to write a new Xcontrol Element. In the data model I can create data types using the cluster to create compound types, eg an int and an int array. But how do I create an xcontrol which has multiple data inputs and outputs?
    Kind Regards

    Limping_Twerp wrote:
    Alright: I see: An xcontrol is either an input OR an output. How do I achieve an output? Secondly: So you are saying the only Elements that can have multiple inputs and outputs are VIs?
    Can you take a few steps back and explain what you are actually trying to do. SubVIs and Xcontrols have nothing in common and it is not clear why you even try to compare them side by side (e.g. in terms of the number of connectors).
    Your questions about input or output tell us that you seems to have some misconceptions about xcontrols. Xcontrols are like regular controls, except they have some built-in intelligence that you can program. Most front panel object can be either controls or indicators and the same is true for Xcontrol. You create an Xcontrol, and after placing it on the front panel you can decide if it should be a control (where the code reads the value) or an indicator (were the code writes values to it). When you define the xcontrol facade, you also need to program how the visuals change if it is changed from control to indicator or vice versa.
    As a first step, you should opend the example finder and look at some xcontrol examples.
    Again, what are you actually trying to do? 
    LabVIEW Champion . Do more with less code and in less time .

  • How do I create a track with just controller MIDI data in it?

    How can I create a track with just MIDI controller data in it? 
    For example: I'd like to create a track that issues a bank change/patch change and sets the default volume for that track, and that's it.
    I can then use this setup as a template for future projects.
    How can I do this?
    It seems like LPX will not allow me to enter any controller data into a track without first defining a region. However, it seems that LPX also won't allow me to create a region with just controller data in it. 
    Ideas?
    Thanks
    -Mike

    Soniq2 wrote:
    How can I create a track with just MIDI controller data in it? 
    For example: I'd like to create a track that issues a bank change/patch change and sets the default volume for that track, and that's it.
    I can then use this setup as a template for future projects.
    How can I do this?
    Let me qualify, I'm using Logic 9, not upgrading for various reasons.
    Is this for an external Instrument? If so it's very easy to do using the inspector, but first you have to create an instrument in the environment. (at least in L9 and the way I do it, which is old school)  Here's an example of an external instrument setup in the Environment.
    A multi Instrument is created, channels 1, 2, 3, & 9 are active. Patch names are entered, format for bank change is selected. (just happens I selected channel 14 to open the patch names).  This Instrument will now appear in the arrange page, and you can set patch change, bank change, volume & pan.

  • How can I create a solution with Livecycle

    I work for a high school and we have about 12 pdfs that we need parents to read/scroll through, then 10 (different) pages that we want them to print, complete and return to the school.  Finally, we want them to see a "Thank you, you have done all you have to do" type screen.  We want to make it as user friendly as possible so I was thinking...
    Reading pages, 1 at a time with next at bottom.
    Click next and it takes them on.  When they get to printing pages 1 print button prints all pages we need them to print. Click next, and it takes them to optional print pages.
    Click next and it says, thank you.
    How can I make this happen if I already have all the pdfs?
    Help please.
    John Dent
    [email protected]

    Thank you soo much.  A few questions?
    They weren't created in designer but could I just import all of them?
    How do "build the structure" for the naviagtion?
    Where/how do you add the script.
    Thanks again,
    John Dent
    Date: Fri, 30 Jul 2010 07:01:08 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I create a solution with Livecycle
    I assume that all of these PDFs were created in Designer. If so you can add any buttons that you want to appear on every page (Next, Previous) onto the Master page then there is script you can add to the buttons to actual move the pages (xfa.host.pageDown() and xfa.host.pageUp()). The Prin button can be added to the specific page and you can pass the page numbers that you want to print as a parameter to the print command. Lastly when you get to the last page and the click Complete you can display a messageBox with your Thank you message.
    Hope that helps
    Paul
    >

  • How can I create a query with tables in INFOSET?

    Dear Gurus,
    How can I create a query with tables in INFOSET?
    Just tables and fields INFOSET?
    Kind Regards,

    Hello
    Check following SCN Article for your understanding/reference:
    - [Using Infoset Query ,SAP Query and Quick Viewer|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10eab7af-0e54-2c10-28a5-87b47adbe1a5]
    Regards
    JP

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How can i create a button with a dynamic picture?

    How can i create a button with a dynamic picture using
    mcLoader.loadClip
    I did create one with it doesnt seem to be working. It loses
    all its
    functions (eg onPress onRelease)
    Thanks

    I solved thep roblem anyway creating a mc.. then creating
    another MC withing
    the first MC and i change the picture on the second MC. And i
    apply the
    propierities to the first MC , and works
    If i have troubles with mu sistem on the future I will use
    yours!
    Thanks!
    "the fleece" <[email protected]>
    escribi� en el mensaje
    news:e67i88$jlf$[email protected]..
    > the image loading will remove any properties or
    functions the mc had.
    >
    > you need to apply them in the onLoadInit function
    >
    > mclListener.onLoadInit = function(target_mc:MovieClip) {
    > target_mc.onRollOver=blah blah
    > };
    > var image_mcl:MovieClipLoader = new MovieClipLoader();
    > image_mcl.addListener(mclListener);
    > image_mcl.loadClip(blah, blahblah);
    >
    >

  • How can I create a video with effects using my ipad?

    How can I create a video with effects (sepia, B&W, Negative, oval or any other shape borders) using my ipad?  I would Like to keep a higher res and also be able to shrink it down to email or send in a MMS. Or should I just upload it to my PC and mess with it there? Some of the apps I have are very easy to use compared to the learning curve needed for video editing software.
    Thanks

    Thats the Problem . . . how many apps do I have to try until I find the one I want? I noticed a few will render the video thus losing its original size. When I went to edit it more in iMovie the video was smaller--not good. And what software do you suggest, Templeton, for the PC? I love the apps because they are easy. I dont have hours to mess around on a software to figure out if its something I want. Im looking for simplicity. Maybe Ill get more into it later. I just want to record simple video of my playing the guitar for self analysis and create a short video for family and friends.
    Apps:
    iMovie
    CinemaFXV
    VideoFix
    Cartoonatic
    Video illusion
    VidEditor
    Software:
    Windows Movie maker (wont accept .mov files)
    After Effects (Too little time, so much to learn)
    Wondershare (Very easy but little choices)
    VideoPad (Again. Few choices)

  • HOW CAN I CREATE A GROUP WITH MY CONTACTS FOR TEXTING

    HOW CAN I CREATE A GROUP WITH MY CONTACTS FOR TEXTING

    Olga, this is not a default feature in iPhone. You need a 3rd party application. I have created a free one, Easy Group, for group texting and group emailing.
    http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

Maybe you are looking for

  • How to check the hardware vendor of a particular device

    Hi every one in the recent interview i have taken he asked me a question like how to check the hardware vendor of a particular device ex: hard disk ,nic card ,ram Thanks in Advance.......

  • "Cannot Connect to iTunes" Error iOS 6.0.1 Have tried everything! Got advice?

    I have iPhone 4S. Just updated to iOS 6.0.1. I'm getting the very common "Cannot Connect to iTunes Store" error when I try to download anything in the App Store. I have tried EVERYTHING to resolve it and nothing works. Here is what I have tried so fa

  • Problem with authorized computers

    I currently have 2 computers and my iTunes account says I have 4 authorized computers. Is there any way to reset the authorization number, and then just re-authorize each computer? Because even if I deauthorize both computers, it says I have 2 comput

  • Can Coldfusion Report Builder Lock .MDB Files?

    I have been seeing an issue where an .mdb file will be locked into a read only mode state. There is no .ldb lock file on the object, but when I open the DB up a banner pops up at the top stating it is in read only mode. While it is in this mode it ca

  • ITunes rearranges my playlists ALPHABETICALLY when burning to CD !

    When I carefully put together a playlist from my library...I put the individual songs in a specific order. But when I click on 'burn disc' it automatically rearranges the songs into ALPHABETICAL order ! How to I get it to leave the songs on the playl