Arguments with executable en C

Hello, how to launch an executable created from an en C program that requires the call to a variable fichier.dat (UN argument)? Thank you in advance.

Hello

If you want to launch an executable from LabVIEW, then use the VI command system. You can put your arguments into standard input or then you can create a .bat file which run exe and arguments.

Kind regards

Tags: NI Software

Similar Questions

  • Adobe Premiere Elements 12: not compatible with EXECUTE-programm for my monitor detected an update is necessary.

    I got the message during the opening of a new project in Adobe Premiere elements 12: not compatible with EXECUTE-programm for my monitor detected an update is necessary. I tried several updates but windows7 does not detect an update. What can I do?

    Update your graphics driver.

  • FORALL with EXECUTE IMMEDIATE

    Hi all

    I'm using Oracle 11 g Release2.

    I need to use the forall with EXECUTE IMMEDIATE statement and the content of string inside EXECUTE IMMEDIATE is a SELECT instead of the usual DML statement.

    Objective: In this SELECT statement, I'll be passing of data using the "USING" clause in FORALL statement

    When I try to use it, am getting error found "no DATA".

    Please advice if I use FORALL and EXECUTE IMMEDIATE on a SELECT statement?

    I can share the scenario...

    Thank you!

    >
    Please advice if I use FORALL and EXECUTE IMMEDIATE on a SELECT statement?
    >
    No - you can't. See the specifications of the PL/SQL language
    http://docs.Oracle.com/CD/E14072_01/AppDev.112/e10472/forall_statement.htm
    >
    dml_statement

    An INSERT, UPDATE, or DELETE static or dynamic statement making reference at least a collection in its VALUES or the WHERE clause. Performance benefits apply only to references to the collection that use as an index index_name.

  • Communication with EtherCAT defective modules with executable startup

    Hello

    I have a deployment with a hypervisor OR 3110 and four NI 9144 chassis that are connected via EtherCAT. The RT VI I created works perfectly when they are deployed since in the LabView project. However, when I create a start executable (startup.rtexe), it fails somehow communicate with 3 out of the 4 chassis. I can read/set values for the frame that plugs directly into the hypervisor, but cannot control the chassis more far. If I build the executable to start with debugging enabled, the behavior is the same. Strangely, when I connect to the startup.rtexe running through the 'Debug Application or Shared Library' menu in the LabView project, I start getting values as it should. When I disconnect from the debug version, I lose the modules again.

    What I'm missing here?

    Thank you much for the help.

    Christoph

    I found the root of the problem: for iterations inside my call loops, I use property on variables unconnected (type defs) nodes to determine the number of iterations that I need. This doesn't seem to work if the FP is closed, as is the case in a deployed executable startup. If I replace these nodes of property with the constants, everything works as expected. It semms that the compiler removes variables unconnetced, because it "thinks" that they are not used.

  • Open FPGA references change to no. target when compiled with executable in time real start

    Hello again you useful forum fans!  I have a problem that I hope someone can give me a hand with.

    I have a project that has a Windows component and a component of the target in real time, that are running on a hypervisor type NI PXI-8110 system.  Communication both sides between them using shared variables.

    On the real-time side, I have four FPGA targets who are reading and writing various analog and discrete inputs and outputs.  I several periods loops which opens a reference to one of the FPGA targets during the first call, then pass this reference in several subVIs that read and write to panels prior to the FPGA.  The loops the FPGA reference thus made available and reuse it in the next iteration through the shift registers.  Each FPGA target has only a single reference open to him.  One of the loops is using the FPGA reference directly and does not pass it in any subVIs.

    It all works very well in the development environment, I can read and control inputs and outputs FPGAS via the front panel of the application of the side Windows.  It also works very well if I start the game real time in the development environment, and run the code of windows as a stand-alone executable file.

    However, when I compile the code in real-time in an executable startup and deploy it to the target, it does not work.  I enabled debugging on the executable, and when I connect to it via the operation-> debug executable in the menu, I see an arrow broken at execution.  Further investigation shows that each of the four open screw reference FPGA is now empty, the text under them is "no target" and the thread for reference on their part to my first Subvi is broken.  I need your help to understand how to operate as it does in the development environment.

    I followed the instructions of these two knowledge base articles to compile and download the bitfiles FPGA on the FPGA target and execute on start or restart:

    http://digital.NI.com/public.nsf/allkb/39795847AC67296D862575FB0046944F

    http://digital.NI.com/public.nsf/allkb/BC513C2A0DC29C89862574BF0002B0B9?OpenDocument

    Open FPGA reference screw are configured for the FPGA to build specifications that I created for each target in the LabVIEW FPGA project.

    I called technical support, NO phone, and yet were able to determine this one out, so additional "brownie" points if you do!  I would offer you the same no detailed screenshot that I have (I can't give more detailed code out because its owner, unfortunately), but apparently the forum doesn't like my image file, as I can't seem to load.

    Please let me know if you have any ideas regarding what is happening!  I appreciate it.

    Jon,

    I'm always up for the challenge.  Have you tryied recompile the FPGA VI that accesses the RT VI?  I also suggest to try and open the bitfile instead of the FPGA VI.  You run in dynamic mode (this is not a suggestion, it's just a question)? There is no difference if you try to open the FPGA VI reference outside the while loop, then past the reference to use inside the while loop without shift registers, then close the reference to the FPGA VI outside the while loop?

    Let me know if these suggestions makes no difference.

  • potential problems with executable files using VISA

    Hi, I have a LV 2012 SP1 source code developed under Windows 7. The source code uses VISA for serial communication. I built from this source code executables that work without problems on a PC with Windows 7.
    Now I use Windows 8 and build the executables from the same source code, I have used before. However, when you use the new executables (under Windows 8) on the same PC with Windows 7 as before, I get an error in the communication of VISA.

    The error is: property node (arg 1) in .vi VISA set up a Serial Port (Instr)

    Once again: 1. executables built under Windows 7 work on a PC under Windows 7

    2. executables built under Windows 8 will not work on a Windows 7 PC (error VISA)

    the source code is the same

    Suggestions, which could be at the origin of this are most welcome.

    An EXE that uses the VISA must be the VISA installed runtime.  It is like not having not drivers for your program.  Create a Setup program using the similar project about how you made an EXE file.  Include the exe in the installation program and under additional installers choose the software that is required by the EXE.  This will usually include the runtime LabVIEW and VISA.  From 2013 the additional installers will try to predict the software needed by the EXE.

  • Impossible to read signals off cDAQ 9178 with executable file

    Hello

    I built a Vi read analog inputI with a NI 9201 module and make an executable file to run on a pc differnent. on the build computer, everything works fine.

    on the other pc, I installed the engines of execution. I can run the executable, but I don't get the analog input signals. When I look into the MAX I can see the DAQ hardware and even use panels of test to measure these entries.  with the executable, I am able to edit the output of a module 9265 signals.

    I use the latest version of labview software.

    Thanks for your help!

    I solved it by exporting the form of MAXIMUM for the secondary PC configuration files.

    Best regards

    JORT.

  • Problem with executable RT

    It seems that if I've been down this road before.  I have a great application that is the engine of two different instruments in a single PXI chassis.  I am able to build the application for the two individual instruments, compile them and get a correct behavior when run as an executable of RT.  I am also able to draw the two instruments of a single VI using the debugging environment (I place essentially two individual applications in particular while loops configured to run once in parallel on the diagram).  However, when I build the build the VI containing the two applications into a single exe RT, I do not get a correct behavior (i.e. does not behave as it did in the debug environment).  I tried running both as two separate called in the rtexe screws (using the two methods described here), as well as their execution from one VI who calls them as described above. I hope that's not too vague, but does anyone have any ideas as to why I could be able to run the combined VI of the workstation but not an executable?

    Thanks, Matt

    Definitely looks like a similar problem.  However, I wonder if this isn't just a quirk that is not altogether unexpected.  Where I got everything to work in the end is to disconnect the typedefs from these two variables that were causing a problem.  I am not sure that real typedefs have been used on the server side, so they would not have appeared in the dependencies.  In this case, the typedef (believe me) would have been lost and the OAS would not know what to do with the data.  Just a thought.  Would have been nice if an error was thrown somewhere.

    Peace, Matt

  • How to create and insert data with Execute Immediate?

    Hi guys

    Am stuck on a procedure of formatting in a package... script works okay however integrating a module turns out to be difficult!

    Am not used to oracle... I have the script runs, but not in the package... Well not all that... Drop Table worked

    CREATE or REPLACE PACKAGE BODY is

    PROCEDURE DropTable1 IS

    BEGIN

    run immediately ("DROP TABLE mytable1");

    END;

    PROCEDURE PopulateTable1 IS

    BEGIN

    immediately execute ('CREATE TABLE mytable1 )

    AS LONG AS)

    Select

    substr (T1.genarea, 3, 3) as M_Class,

    substr (T1.genarea, 6, 30) as M_Description,

    substr (T1.genarea, 36, 3) as M_Class,

    substr (T1.genarea, 39, 30) as M_Description,

    substr (T1. ItemItem, 1, 3) as product_code,.

    T3. CHANNEL_NUM as SALES_CHANNEL,

    to_date(''t2.time_id'',''dd-mon-yyyy'') as mis_date,

    Sum (T2.ap_cw_cfi_irp + T2.ap_cw_issues_irp) as ap_gross,

    sum (t2. Ap_Cw_Cfi_Irp + t2. Ap_Revivals_Irp) as ap_net,

    Sum (T2.sp_inc_irp + T2.sp_issues_irp) as sp_gross,

    Sum (T2.sp_dec_irp + T2.sp_fs_irp) as sp_net

    Of

    d_pr t1, t2 age_map t3 law

    where

    T1.pfx = "WE"and t1.coy ="1" and t1.tabl = "T81" and substr (t1.itemitem, 1, 3) = t2.product_id and t3. AGE_NUM = t2.age_id

    Group

    substr (T1.genarea, 3, 3),

    substr (T1.genarea, 6, 30),

    substr (T1.genarea, 36, 3),

    substr (T1.genarea, 39, 30),

    substr (T1. ItemItem, 1, 3).

    T3. CHANNEL_NUM,

    to_date(''t2.time_id'',''dd-mon-yyyy'')

    )');

    COMMIT;

    END PopulateTable1;

    END test;

    /

    Thank you

    Hello

    a few notes.

    1. to_date(t2.time_id,'dd-mon-yyyy')

    New York T2.Time_ID Cis the varchar2 data type that contains values to JJ-me-YYYY format?

    And if, in which language is used for the names of the months? Conversions are point impossible to solve in reasonable time limits without logging of dml errors and unique failure on charges of staging nightly!


    2 single quote escaping "alternative in string literals.

    You can use Q or q to escape single quotes in strings.

    http://docs.Oracle.com/database/121/SQLRF/sql_elements003.htm#SQLRF00218

    3. validation

    Not required because the DDL commands commit implied.

    In general I recommend you write commit clauses only in calling script rather than in the code unless it connects with an autonomous transaction.

    You end up with a lot of validation of code here and there and you don't know where it is and where it isn't. That is, your process may have more than one appeal process and commit the middle of the process, it is not atomic processes.

    Here's the demo although I recommend also using the static table and truncate to efficiency. ETG is good choice for the purpose of maintenance table.

    create or replace
    package testing is
      procedure staging_one;
    end;
    /
    create or replace
    package body testing is
      --
      procedure staging_one is
        --
        procedure drop_staging_one is
          table_does_not_exist exception;
          pragma exception_init(table_does_not_exist, -00942);
        begin
          execute immediate q'{
            drop table staging_one purge
          }';
        exception when table_does_not_exist then
          return; -- fine
        end;
        --
        procedure create_staging_one is
        begin
          execute immediate q'{
    
            -- remove >>>
            create table staging_one nologging
            as
            select * from dual
            -- <<< remove
    
            /* uncomment >>>
            create table staging_one nologging
            as
            select
              substr(t1.genarea,3,3)                    as m_class,
              substr(t1.genarea,6,30)                   as m_description,
              substr(t1.genarea,36,3)                   as m_class,
              substr(t1.genarea,39,30)                  as m_description,
              substr(t1.itemitem,1,3)                   as product_code,
              t3.channel_num                            as sales_channel,
              to_date(t2.time_id,'dd-mon-yyyy')         as mis_date,
              sum(t2.ap_cw_cfi_irp+t2.ap_cw_issues_irp) as ap_gross,
              sum(t2.ap_cw_cfi_irp+t2.ap_revivals_irp)  as ap_net,
              sum(t2.sp_inc_irp   +t2.sp_issues_irp)    as sp_gross,
              sum(t2.sp_dec_irp   +t2.sp_fs_irp)        as sp_net
            from
              d_pr t1,
              act t2,
              age_map t3
            where
              t1.pfx                      = 'IT'
              and t1.coy                  = '1'
              and t1.tabl                 = 'T81'
              and substr(t1.itemitem,1,3) = t2.product_id
              and t3.age_num              = t2.age_id
            group by
              substr(t1.genarea,3,3),
              substr(t1.genarea,6,30),
              substr(t1.genarea,36,3),
              substr(t1.genarea,39,30),
              substr(t1.itemitem,1,3),
              t3.channel_num,
              to_date(t2.time_id,'dd-mon-yyyy')
            <<< uncomment */
          }';
          --
        end;
      -- main
      begin
        drop_staging_one;
        create_staging_one;
      end;
    end;
    /
    
    set serveroutput on
    
    exec testing.staging_one;
    
    select * from staging_one
    ;
    commit
    ;
    
    PACKAGE TESTING compiled
    PACKAGE BODY TESTING compiled
    anonymous block completed
    DUMMY
    -----
    X 
    
    committed.
    
  • aerender flag improper argument with Swift 'Front End'

    I built a simple application of SWIFT office which gives aerender a user interface.  When I use it to trigger a simple rendering it gives me "flag argument not compliant" when the exact same command typed in the terminal works very well.  For example, when you use the "-project" flag followed by the path of the file to the AE project.  Ive tried the string path of the file of formatting in different ways and playing with the addition of space (like after the '-project "text before the path of the file).  My application displays the output of the command (stdout) line in the window of the interface, so you can see all the nice stuff as "launch After Effects".

    I had this works fine for a while, but he started having this problem when I started to put the command in an NSTask function.  I did this so I could control the output (stdout) in my interface.

    Aerender has the permission issues when receiving NSTask arguments?  Everyone has messed around with aerender and NSTask?  Fast coders out there?

    IM happy to provide more information, if necessary, but I wanted to keep this post simple :-)

    Thank you all!

    -Jacob

    Screen Shot 2016-08-07 at 3.49.46 PM.png

    I don't know my question above made no sense.  :-) I tend to ramble... but for anyone who is interested, I got it work.  I have re-written the application using Objective-C instead of Swift.  For some reason, I couldn't wrap my head around the problem of NSTask to Swift.  All I can understand that aerender is super sensitive about how the path string is formatted.

    -Jacob

  • Extension drive DPS with executives and static libraries

    Y at - it any initiative within the roadmap for Adobe to allow their reader DPS extension in Xcode by use of frames and static libraries?

    Main features of the player could be related and distributed as a binary via static libraries.

    createLibrary.png

    The shared resources of the DPS reader could be packed only a framework.

    xcode-frameworks.png

    Beyond the extension of the capacity of the drive, this would also enable advanced debugging and running on devices directly from Xcode.

    References:

    from inside xcode or delivery as a static library which allows to connect in your own application

  • Problems with the shipment of the Job_ID argument with a processflow EMAIL activity

    Hello everyone,

    I have a problem with a simple process flow.

    I want to send an EMail that contains in the MESSAGE_BODY the Job_ID argument in the workflow began. That's why I wrote a function with a select statement that gives back the number.

    Code:
    l_owb_id VARCHAR2 (20);

    BEGIN

    Select to_char (top_level_execution_audit_id)
    in l_owb_id
    of ALL_RT_AUDIT_EXECUTIONS
    where task_name = "XYZ".
    and created_on as sysdate;

    return (l_owb_id);

    END;

    The feature works very well. So I put it in my workflow. Now, I wanted to link the MESSAGE_BODY from the activity of e-mail with the parameter of the function. But when I click on validate it displays following error:
    VLD-10042: MESSAGE_BODY from the EMAIL parameter is incorrectly bound. Output of cannot be converted to a constant value.

    VLD-10042: MESSAGE_BODY e-mail activity is linked to the GET_OWB_ID parameter of. Activities must be related by an intermediate variable

    Can someone help me how to fix this proplem. How can I send the process ID by e-mail activity in a Workflow. On the internet I have not found whatever it is useful, any help would be appreiciated.

    Kind regards

    Daniel

    Yes, you can add the text with the variable values in the message field.

    See you soon
    Katia

  • ORA-01031 on create sequence with Execute Immediate

    I have the following statement in a procedure:
    EXECUTE IMMEDIATE
      ' CREATE SEQUENCE my_seq
        INCREMENT BY 1
        START WITH 130224
        NOMINVALUE
        NOMAXVALUE
        NOCYCLE
        NOCACHE';
    When the statement is executed, I get an ORA-01031: insufficient privileges error.

    I can run the CREATE statement in sqlplus. The schema from which I executed the CREATE statement is the same as that under which the procedure is run. In addition, the procedure is also created in the same schema.

    What a privilege I'm missing?

    Your privilege CREATE SEQUENCE given to you through a role.

    Roles are not considered in the stored procedures, you must have the privilege granted directly to your user name.

  • Deployment complete with static Variables cRio-9074 network errors, pc with executable file

    Hello.

    I am building an application runs on a machine without LabVIEW development system and connect via the network shared a cRIO Varibles (RT FIFO). I can successfully create an installer and EXE for PC and a RTEXE for the cRio. When I run on my development computer, the application is able to communicate using variables shared without a problem.

    But, when I install my application on another computer and connect the cRIO, I get the following error when you deploy shared variables when the application starts:

    Initializing...

    Calculating dependencies...

    The checking for conflicts. This operation can take a long time.

    Preparation itesm by download. This operation can take a long time.

    Deployment 169.254.84.198

    Deployment VariableLib.lvlib\\169.254.84.198\VariablesLib (:-2147467259,)

    LabVIEW: Unspecified error (Hex 0 x 800004005).).

    Completed with errors of deployment

    I created an exception in the Windows Firewall configuration. I have included the library of VariableLib on the EXE of RT, outside and inside the exe file to c:\.

    I am downloading the SP1 for LabVIEW and Module RT and decided to reinstall all the software on my cRio.

    Any help will be appreciated.

    Hello Luis.

    Thank you very much for your help. The Variable engine OR has been and should be included in the intallation.

    I was able to get the application running. I installed the System Manager distributed on the PC without LabVIEW to control if the library has been get deployed. Using what I found that another device on the network use the same IP address as the cRio and so the IP address has been lying to the deployment, but the device has returned an error. I just changed the IP address on the cRio and I was good to go. I have not reproduced on both devices such as network shared Variables suggests on some positions, nor I needed to modify the ALIAS files on devices.

    Best regards and thanks again for your time.

  • Problem with executing SQL in SQLDEV tool

    Select * from SYS. DOUBLE

    /

    Select * from ap_suppliers

    If I don't give it "/" Ctrl + Enter does not work to run the SQL query. If I gave "/" it works very well and it is very boring, it's how the delivered product? Y at - it no alternative workaround?

    Capture.jpegCapture2.jpeg

    You need to end your queries with a semicolon. This is the qualifier of queries and DDL statements.

    Slash is the delimitation of the PL/SQL blocks.

    Line breaks are not delimiters, the following would run fine if you do Ctrl + enter while the cursor is on the word "select".

    Select

    *

    Of

    Double where 1 = 1;

Maybe you are looking for