Calling another program

Is it possible to call another program (vlc media player in my case) in a VI???I dont want to use the Active X control for playin videos as it does not have much playback functions...

Use the System exec.vi to launch any executable from LabVIEW in your case VLC player.  Provide the required inputs path, command line args so that you can obtain the desired functionality.
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

Similar Messages

  • Calling another program from the current program

    Hi all,
    In our requirement we are calling another program from our current program .
    In the current program( from which we are calling ) we are giving file name in the selection screen
    and when we run the current program we are successfully going to other program but our main requirement is to higlight the file name which we had given earlier .
    Note :  The called program doesnt have any selection screen.

    HI
    use EXPORT and IMPORT key words for passing data from one program to another program.
    as the called program is available in the same session you can use above key words which means you are accessing ABAP MEMORY.
    You can also use SET and GET key words which means SAP memory
    take F1 help there are examples tooo and detailes explanation abou the same
    Regards
    Ramchander Rao.K
    Edited by: Ramchander Krishnamraju on Dec 24, 2008 7:05 AM

  • Calling another program and waiting for output

    Hi,
    I'm writing a program that passes a file created for an application called Net Sim but has to wait for the output. Net Sim lies in another directory from the java files and I don't know how to call the program with the file created as a parameter, such as:
    ns2 network1.tcl
    where 'ns2' is the dos command to run net sim and 'network1.tcl' is a file passed as a parameter to the program.
    I've tried
    try{
    Runtime r = Runtime.getRuntime();
    r.exec(" <directory> ");
    }catch(IOException e){
    System.out.println("Error " +e);
    This doesn't work though and I could use some help, as well as how to save the file created by the program in another directory.
    Finally, I need to know how to make the program wait for the output from net sim which is a file I intend to use. Can I do this with a while loop etc.?
    I thank you in advance for any help,
    Regards,
    Gary.

    Here's an article from JavaWorld describing some of the pitfalls when using Runtime.exec() that might help you:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Call another program in first program

    hi,
    i need to perform to call another report in my current report. so how am i going to do so?
    how report work:
    the report are going to run as background job. once the report run, it will send out the report in text file to user. and then i want it to trigger report 2. report 2 work the same, it will send another text file to user.
    and the parameter for both the report is on current date only.
    so how am i going to code in my first report program, to call the second report program, and to execute it?
    thanks
    Edited by: ben leen lee on May 14, 2008 3:57 AM

    Hi, 
    clear: d_JOB_COUNT.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            JOBNAME  = d_JOBNAME
          IMPORTING
            JOBCOUNT = d_JOB_COUNT.
        submit ZFI_AGEWISE_PERFORMANCE
        VIA JOB d_JOBNAME
        NUMBER  d_JOB_COUNT
        with IKUNNR   IN r_id
        with s_vertn  in S_VERTN
        with s_hkont  IN S_HKONT
        with IBUDAT   eq IBUDAT
        with P_BUKRS  eq P_BUKRS
        with s_umskz  in s_umskz
    *with R1 = R1
        WITH R2 = R2
    *with r3 = R3
        WITH P_SESS = P_SESS
        AND RETURN.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            JOBNAME      = d_JOBNAME
            JOBCOUNT     = d_JOB_COUNT
            STRTIMMED    = 'X'.
    Reward Points

  • How to call another program as root in servlet

    In my servlet, I want to call another background programs (writeen in c) to do some tasks and gather the output of them as the output of my servlet. Is there any way to do so like Suexec in apache.
    Thanks

    sorry I forgot mention that the c program required the caller had root privilege.This is the problem I facing now.
    Thanks

  • Make a Java program call another program??

    Is there a way to make a Java program execute another program?

    Why dont we demonstrate:
    Program (Windows-based) Calculator.exe
    Code:
    try {
    Runtime.getRuntime().exec("c:/windows/calc.exe");
    } catch(IOException e) {}

  • Can LabView start/call another program such as QuickTime?

    Hi,
    I want to use my LabView program to start up another program. Is this possible? If so how is it done?
    The program I have in mind is QuickTime. Will I be able to pass the name of the file I want it to play as an argument and specify where the new window will open?
    Thanks,
    Dave.

    Hi
    You could also place an ActiveX-container in a vi. So you can select a file and set the window position.
    Just have a look at the simple attachment.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    quicktime.vi ‏25 KB

  • Calling another program with in a program

    Hi experts,
            i want to call a program (second) from the first program. The problem is that the first program is called during the update task. so i think we cant use the submit statement.
    Thnak you in advance.
    Arul
    Edited by: arul m on May 6, 2009 12:36 PM

    Hello,
    Try this FM
    TH_IN_UPDATE_TASK
    check this
    http://help.sap.com/saphelp_nw04/helpdata/EN/fa/f23c15330411d5992100508b6b8b11/content.htm

  • Unable to call another program in servlet

    Hi,
    I'm developing a Java program in Netweaver. It is a servlet program. External server will call this servlet program to pass the value in and then i use the value and pass to a stateless session bean. But now i'm required to make some change but in certain condition, it will use the value and pass to another servlet in another server.
    So i had changed my code as below.
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              String xml_response = "";
              String msg = request.getParameter("message").trim();
              FileReader fread = null;
              BufferedReader bread = new BufferedReader(new FileReader("D:\\filter.txt"));
              String line;
              ArrayList moList = new ArrayList();
              while((line = bread.readLine())!=null)
                    String[] moNum = line.split(",");
                    for(int i=0; i<moNum.length;i++)
                          moList.add(moNum<i>);
            bread.close();
               try {
                   xml_response = "700";
                   response.setContentType("text/html");
                   PrintWriter out = response.getWriter();
                   out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
                   out.println("<status>" + xml_response + "</status>");
                   out.close();
                            if (moList.contains(ms)) {
                        response.sendRedirect("http://192.168.1.1:50000/adapter/msgtext?sms=" + sms + "&moid=" + mo_id + "&msisdn=" + msisdn);
                            } else {
               } catch ......
    I have a xml to response to the server that pass me the value. Need that to inform them i had received the msg. So now i not sure the error is it caused by the XML part. I already close it but when i try to run this i get this error message.
    #com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/AdapterWSEAR#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#J2EE_GUEST#0####9f7f9e100bc411debf5b001a6467cb54#SAPEngine_Application_Thread[impl:3]_30##0#0#Error##Plain###application [moadapter] Processing HTTP request to servlet [SendMOText] finished with error. The error is: java.io.IOException: Bad file descriptor
         at java.io.FileOutputStream.write(Native Method)
         at java.io.DataOutputStream.writeBytes(DataOutputStream.java:254)
         at net.emisolutions.controller.adapter.servlet.SendMOText.doPost(SendMOText.java:163)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    #com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/AdapterWSEAR#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#J2EE_GUEST#0####9f7f9e100bc411debf5b001a6467cb54#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/System/Server/WebRequests#Plain###application [moadapter] Processing HTTP request to servlet [SendMOText] finished with error.
    The error is: java.io.IOException: Bad file descriptor
    Exception id: [001A6467CB54005E0000475100001A740004649841331F6F]#
    #com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/AdapterWSEAR#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#J2EE_GUEST#0####9f7f9e100bc411debf5b001a6467cb54#SAPEngine_Application_Thread[impl:3]_30##0#0#Error##Plain###application [moadapter] Cannot send an HTTP error response [500 Application error occurred during request processing. (details: java.io.IOException: Bad file descriptor)]. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: The stream is closed.
         at com.sap.engine.services.servlets_jsp.server.runtime.client.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:170)
         at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:135)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendBodyText(HttpServletResponseFacade.java:996)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.writeError(HttpServletResponseFacade.java:987)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.sendError(HttpHandlerImpl.java:973)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleGeneralException(HttpHandlerImpl.java:878)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.processError(HttpHandlerImpl.java:869)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:412)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Appreciate if anyone can help. I tried to google and find the error message that is given but unable to find it. What i think of is the XML that cause error. Any idea for this?
    Thanks.

    Solved.
    The XML caused the problem. I need to include the XML in the if statement instead of outside.

  • Calling another program from a Dynpro screen

    Hi,
    We have a custom screen to create an equipment. When users click on Save, the screen flow goes into BDC and creates the equipment.
    After the equipment is created, we need to execute another custom program to create Measuring points.
    How can I call this custom program and still get back to my equipment master screen?
    I have coded it as follows but the result is the end result of the measuring point screen and not my original equipment master screen.
    SUBMIT ZCREATE_MEASURING_POINTS USING SELECTION-SCREEN '1000'
                      WITH SELECTION-TABLE rspar_tab
                      AND return.

    I have coded it as follows but the result is the end result of the measuring point screen and not my original equipment master scree
    Does it mean that you end up in list output of measuring custom program? If so, you have to export this resulting list to memory, which will suppress showing it.
    SUBMIT ZCREATE_MEASURING_POINTS USING SELECTION-SCREEN '1000'
    WITH SELECTION-TABLE rspar_tab
    EXPORTING LIST TO MEMORY
    AND return.
    This way you will be back on calling program.
    Regards
    Marcin

  • Calling another program in the print program through FORM ENTRY

    Hi All,
    Have a requirement that I need to submit the program with variant to a print program.
    But it is giving dump "Statement "SUBMIT" is not allowed in this form" while executing through VF04.
    I have tried by using CALL FUNCTION  "func" in update task .Inside the "func"  in I have coded the logic of
    submit program using selection-set VARIANT.
    Even then while executing through VF04 got the dump "DYNPRO_SEND_IN_BACKGROUND" and "POSTING_ILLEGAL_STATEMENT ".
    Kindly advise to resolve the issue.

    Hi,
    PLease make sure that u r using both smartforms and report..
    Once the function called the report program, whether control back to the print program..
    Using debugger please check..
    put a break-point in your program and find where that dump is arised..
    whether u want report only or smartform only...
    If the same problem arises again,
    Paste your report program code inside the print program instead of using SUBMIT..
    let me know what the issue u r facing
    regards
    vijay

  • How to call another program from LabVIEW?

    Hi!
    Is there anyone that can answer my question? I have found a similar thread where the user needed to call labVIEW from some program but I want to do the opposite.
    I made a program in labVIEW that communicates via COM-ports (serial communication) with the processor I use at the job (Ubicom´s IP2022).
    Now I want to add more funcionality to this program. I want to be able to program re-program IP2022 through this LabVIEW application.
    The programming is done via an Ethernet-dongle. I start a program called IP2kProg, I write the ip-address of the dongle and the program-file (.elf) downloads at this address. But how can I do this from
    LabVIEW, do I need to open IP2kProg or can I send some values to it via LabViEW?
    Ant suggestions?
    Thanks, Amir

    Amir,
    There are couple of options:
    1.  If your IP2kProg program has a command-line interface, you can use LabVIEW's System Exec.vi and send the commands and parameters to it. 
    2.  If the IP2kProg has an API / exported functions, you can call them from LabVIEW using the Call Library Function Node. 
    Hope this gives you some ideas. 
    -Khalid

  • Call another  program in a program

    Hi friends,
                 In my program i have push button when i press that it should go to tcode'cje0' and there is parameter which is a report where we ennter the report name in that transation. I should fill that with rep name "112SAPKL", Than it should display the final screen.All the things should be done in the main program itself. When i press push button final should display.
    Rewarded if useful.
    Advance thanks
    siva kumar.

    Hi
    Use SUBMIT to call the report
    If you know the transaction code then use CALL transaction
    Regards
    Shiva

  • Adobe 9 - Installer issue - Calls another program installer?

    I can download the program and run the installer just fine. The problem starts when the installer calls ACMSETUP.EXE which calls a startup of my 16-BIT Microsoft ODBC Installer program. I'm not even sure why it's still on my machine, but it is. The Adobe installer seems to be calling it from somewhere and even if I cancel the ODBC install, the Adobe program fails out with no install.
    Anyone see this?

    I recommend the Acrobat forums. CreatePDF is something quite different. You should also contact the PC supplier for your install disk, it's their job to provide it to you. Good luck!

  • Calling a report program in another program.

    can we call on report program in another report program. If yes, please give me the right syntax. Thanks in Advance.

    Hi,
      Use SUBMIT AND RETURN statement. In below given codes,
    I'm sending an internal table t_spfli to a memory id abc. After that I'm calling another program by using SUBMIT <program name> AND RETURN.
    Check these two programs
    PROGRAM 1
    REPORT  z_abap_memory.
    DATA:
      w_carrid TYPE spfli-carrid,
      BEGIN OF fs_spfli,
        carrid LIKE spfli-carrid,
        connid LIKE spfli-connid,
        fltime LIKE spfli-fltime,
      END OF fs_spfli.
    DATA:
      t_spfli LIKE
        TABLE OF
              fs_spfli.
    SELECT-OPTIONS:
      s_carrid FOR w_carrid.
    START-OF-SELECTION.
      PERFORM get_spfli.
      PERFORM disp_spfli.
    AT LINE-SELECTION.
      IF sy-lsind EQ 1.
        EXPORT t_spfli TO MEMORY ID 'ABC'.
        SUBMIT z_ABAP_MEMORY1 AND RETURN.
      ENDIF.
    END-OF-SELECTION.
      PERFORM disp_spfli.
    *&      Form  get_spfli
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_spfli .
      SELECT carrid
             connid
             fltime
        FROM spfli
        INTO TABLE t_spfli
       WHERE carrid IN s_carrid.
    ENDFORM.                    " get_spfli
    *&      Form  disp_spfli
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM disp_spfli .
      LOOP AT t_spfli INTO fs_spfli.
        WRITE: / fs_spfli-carrid,
                 fs_spfli-connid,
                 fs_spfli-fltime.
             HIDE:
        fs_spfli-carrid,
        fs_spfli-connid.
      ENDLOOP.
    ENDFORM.                    " disp_spfli
    PROGRAM 2
    REPORT  z_abap_memory1.
    DATA:
      BEGIN OF fs_spfli,
        carrid LIKE spfli-carrid,
        connid LIKE spfli-connid,
        fltime LIKE spfli-fltime,
      END OF fs_spfli,
      fs_fl LIKE fs_spfli.
    DATA:
      BEGIN OF fs_flight,
        carrid LIKE sflight-carrid,
        connid LIKE sflight-connid,
        fldate LIKE sflight-fldate,
      END OF fs_flight.
    DATA:
      t_spfli LIKE
        TABLE OF
              fs_spfli.
    DATA:
      t_fl LIKE t_spfli.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    IMPORT t_spfli FROM MEMORY ID 'ABC'.
    t_fl = t_spfli.
    SELECT carrid
           connid
           fldate
      FROM sflight
      INTO TABLE t_flight
      FOR ALL ENTRIES IN t_spfli
    WHERE carrid = t_spfli-carrid
       AND connid = t_spfli-connid.
    LOOP AT t_flight INTO fs_flight.
      WRITE: / fs_flight-carrid,
               fs_flight-connid,
               fs_flight-fldate.
    ENDLOOP.
    Regards
    Abhijeet

Maybe you are looking for

  • Do I need to unlock my iPhone 4S to use it in India????

    I'm going to India in a month and wanted to know if I need to unlock it to use it there. It's the iPhone 4S from Verizon Wireless. And no it's not factory unlocked. Thanks for all your help.

  • Best way to handle cascading values of ingredients?

    I have a new problem in handling ingredients for a recipe. This group of ingredients has items which need to cook for 5,4,3,2 or 1 minute.  Each item is an XML node. Users can select any combination  of these ingredients, which is then stored in an X

  • Program GFW_PROG_TIME_AXIS convert to "true" line chart example.

    Please disregard...took two days but I have succesful GFW line chart...  I found a single customizing method call in error...now wiping egg from face....  )

  • Incorrect colors after importing a Canon XTI RAW image into LR

    I've been using LR for about a week now and love it. However, it does a poorer job of rendering RAW images (and therefore also exporting to JPG) than Canon's Digital Photo Professional. LR image have a sickly yellow+green for skin tones vs. Canon's i

  • Plain text ASCII format file

    This may be slightly off-topic, but I'm hoping maybe someone knows the answer: I received a license for the Messiah animation suite as part of a one-time offer, and it says to paste the License text "into a text file... (this file must be a plain tex