Is it possible to call an executable of compiled c code from within LabVIEW?

I can compile 'genesis' (the name of the code we are planning to use) under unix: it produces an executable which can be
linked to user-constructed c files which contain specific crossover and/or
mutation strategies, so once a user has the executable, it is not
neccesary to re-compile the main GA everytime a user mucks around with the
combination rules. I think that a question is, can you call the (or any)
executable from within LabView?
Thanks
Alan Homer

You can call executables using the System Exec VI, which can be found in the Communications palette.
Try to take over the world!

Similar Messages

  • Is it possible to call custom designed RFC function module, apart from BAPI

    Hi Friends,
    1.     Is it possible to call custom designed RFC function module, apart from BAPI.
    2.     Why we call it Adaptive RFC layer, Since every time the JCO layer updated with SAP, Why can’t be dynamic.
    Thanx for Ur time.
    Cheers,
    Sam

    Also check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm">here</a> for more information on aRFC. Here you can find why it is called adaptive.
    Regards,
    Christophe

  • Is it possible to call a class in a jar file from JNI environment?

    Hi
    Is it possible to call a class in a jar file from JNI environment?
    Thanks in advance.

    Could you explain a bit more what you are trying to do? (In other words, your question is vague.)
    o If your main program is written in C, you can use JNI to start a JVM, load classes from the jar of your choice, and call constructors and methods of the objects defined in the jar.
    o If your main program is java, and has been laoded from a jar, a JNI routine can call back into java to use the constructors and methods of classes defined in the jar(s).

  • How to call up an executable file (eg. MSPaint) from within my java program

    How to call up an executable file (eg. MSPaint) from within my java program

    Ummm... why would you want to get MSPaint anyway? Even in the absense of real software, Java's own graphics tools are way more sophisticated - with a little time and effort, you could write a simple paint package that beat MSPaint hands down.

  • Interface between LabView Executables and compiled MATLAB code

    Query: Does anyone have experience of calling compiled MATLAB functions from a LabView Executable?

    Hello
    Well, I am using some applications as you ask. Some calculus was done in matlab, so, now, it is compiled as dll an front end and other calculatiosn are in Labview. matlab dll are registered as activex, and so are called from labview. Integration is so good, tha some old matlab application was changed to Labview and matlab dll.
    I must to state that I am not the integrator. My part is only Labview. So, should you have further questions, I can pass this thread to the integrator company. I do not promisse answers.
    But it runs fine.
    Cheers
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Calling a VB Script and Matlab code from LabVIEW GUI.

    Hi,
    Can anyone help me out in Calling a VB Script and Matlab code from LabVIEW GUI? GUI will be developed in Labview and currently we have some scripts written in VB and Matlab and we need to incorporate the same through LabVIEW. Can anyone let me know how this can be implemented? 
    Regards,
    Sharmash

    For VBScript you can call the Windows Scripting Host application using the System Exec function, or you can use IScriptControl, which is an ActiveX control. Be aware that with the IScriptControl there's a small bug. You can read more about it in this post.
    For Matlab, there's a Matlab node that you can use. You can either copy and past your Matlab script in the node, or just write a function call statement. The node simply calls Matlab. Or, you can do as suggested and use the MathScript node, which is basically an alternative to Matlab. The MatchScript node doesn't support everything that Matlab does, so you will need to check it against your script.
    Or, you can do as suggested, and rewrite it all in LabVIEW, unless you can't because these scripts are used by other applications.

  • Is it possible to call the members of the CFMapping dimension from a EVDRE?

    Hello experts,
    I am working with the application Cashflow. This application uses the dimension CFMapping to match the dimension CFAccount with the dimension Account, when the package "Cash Flow Recalculation" is run. I would like to know how could I call the members of the CFMapping dimension from a report. When I try to do this,the EVDRE shows the following error message: #ERR: Invalid  CFMAPPING, col# 1.
    Thanks in advance,
    Álvaro

    Hi Mehul,
    I have already checked this but it still doesn't work. The dimension CFMapping is not contained in any application,  in BPC administration I checked this in the application folders. I think that the CFMapping dimension is only used to support the execution of the package I mentioned in the first message, and that is why I have problems to call it's members from a report using the normal procedure.
    Regards,
    Álvaro

  • Is it possible to link to specific files on a server from within a pdf?

    Hi all,
    Is it possible to create hyperlinks to a specific file on a Windows server from within a pdf?
    Let me explain further, I am working on a Mac trying to create hyperlinks from within InDesign to specific files on a Windows server. I am exporting the file to pdf, along with the hyperlinks, which look correct when I click on them from within Acrobat.
    On Windows, the links will read as \\servername\directoryname\filename so this is exactly how I enter it as the hyperlink. When I view the hyperlink information in the resulting pdf from within Acrobat, it still looks correct as \\servername\directoryname\filename but when I try to click on it from the Windows side OR the Mac side, the link doesn't work and gets changed....the slashes revert to the opposite direction and the whole link gets messed up. I am trying to figure out if the cause is InDesign, Acrobat or whether this can even be done? Of corse, I never have issues with normal URLS.
    What we are trying to do is set up an internal catalogue for the company of all our materials. (Everyone works on Windows)
    Should I try to create the links from within a Windows version of Acrobat... do you think that will make any difference?
    Thanks in advance for your help:)
    Very much appreciated!
    Christine

    Thank you for your help...very much appreciated!
    Basically, what we needed were for the links to be static and not relative, and they were mainly for Windows users. What finally worked was creating the links from within a Windows version of Acrobat. We plan to email the final pdf to several employees around the word (we are an international company) with all the links intact. Once they were logged into our network (vpn'd in) the links would still be valid no matter where the document was located. The trick is to change the start of the link to a specific IP address (the server address) when you are setting it up in Acrobat. I hope this makes sense and is helpful for everyone else out there:)
    (P.S. This works for Windows users only though and cannot be done via the Mac version of Acrobat. I can set things up within the Mac version of Acrobat so that the links will work as long as the document resides in the same location on the server... the advantage to doing it THIS way is that it will work for BOTH Mac and Windows users.)
    Thanks again,
    Christine

  • Making a call to a Business Connector Flow Service from within an ABAP prog

    Hello,
    I am trying to make a change to one of the flow services within BUsiness COnnector.
    The way the system is currently set up is that the flow service is called from within an ABAP program via an RFC call.
    A remote FM exists in SAP and this is called by the program and there is a corresponding flo service within Business Connector.
    I have basically copied an existing flow service which works fine and made a few minor tweaks. Within SAP, I have copied the remote FM and again made a few minor tweaks.
    However, when I run the program, it short dumps at the point whee my remote FM is called with th following message :-
    "Unknown Partner and Message Type. Sender: xxxx Receiver: xxxx MsgType:  "
    I am not a Business Connector expert and I guess I am missing a ste but I'm not sure what it is.
    Can anyone advise?
    Thanks,
    Ruby

    Hello,
    I am trying to make a change to one of the flow services within BUsiness COnnector.
    The way the system is currently set up is that the flow service is called from within an ABAP program via an RFC call.
    A remote FM exists in SAP and this is called by the program and there is a corresponding flo service within Business Connector.
    I have basically copied an existing flow service which works fine and made a few minor tweaks. Within SAP, I have copied the remote FM and again made a few minor tweaks.
    However, when I run the program, it short dumps at the point whee my remote FM is called with th following message :-
    "Unknown Partner and Message Type. Sender: xxxx Receiver: xxxx MsgType:  "
    I am not a Business Connector expert and I guess I am missing a ste but I'm not sure what it is.
    Can anyone advise?
    Thanks,
    Ruby

  • Is it possible to dynamically create a user variable at runtime from within a Widget?

    I'm trying to develop a custom Interactive Widget. This widget will allow the user to take multiple attempts, and needs to store information about previously completed attempts so they can (hopefully) see their improvements over time.
    I'm trying to figure out the best way to store the data about the previously completed attempts across multiple sessions in a LMS. It seems that the data stored in user variables is automatically stored/restored in suspend_data, which would be perfect. The issue is that I can't find a way to dynamically create a new user variable from within a Widget. It looks like I can only access user variables that the author has explicitly defined in the Captivate interface. I'd rather not have to force the author to define an empty User Variable that they'll never knowingly use, just to give the Widget a bucket to store its data.
    Does anyone have any ideas for what might be the best way to accomplish this? I'd like to stick to standard, "approved" APIs as much as possible, but I'd be willing to bend some rules if necessary.
    Thanks!

    Ryan,
    I assume you've asked this question here:
    https://groups.google.com/forum/?fromgroups#!topic/elearning-technology-and-development/e5 vWZfJ6X8I
    I asked a similar question here:
    https://groups.google.com/forum/?fromgroups#!searchin/elearning-technology-and-development /leichliter/elearning-technology-and-development/Au88bu7LB5o/TC7xlo8iBpQJ
    Philip gave you sound advice.  You'll have to hijack/re-purpose the comments or the suspend data.  I was successful in using SCORM comments in a Moodle system to store extra data I needed for a customer.  It's not ideal, but it gets the job done. Here's a thread about that:
    https://groups.google.com/forum/?fromgroups#!topic/elearning-technology-and-development/Yg YAMGfXQNw
    If you use suspend data, you have to watch out for a few things:
    1.  It's base 64 encoded... so any data you append to what Captivate outputs will need to be in base 64 (that's a good practice anyway since the data has to be serialized).
    2.  On course re-entry, you'll need to capture the suspend data before it hits Cp to strip off / read your needed data.  If the suspend data isn't in the format Cp expects, you'll get a nice white screen of death.
    Ideally, it would be nice to be able to dynamically create user variables for purposes like this... and it's been requested in Cp 6.... we'll see if it gets added (not holding my breath).  Until then, I'd use cmi.comments.
    Jim Leichliter

  • Cannot execute Microsoft HTML Help file from within Eclipse managed app.

    I took an easy solution and created a help system for a large Java application using the Microsoft HTML Help Workshop as the IDE. The Help System does exactly what the client wants, but when I tried to integrate it into the application I ran into a brick wall.
    I wrote a very small Java app to see if I could execute the compiled help file (RAS_Help.chm) under the simplest circumstances. The code, which runs fine under VJ++ throws the following exception when run from Eclipse
    e: java.io.IOException: CreateProcess: RAS_Help.chm error=193
    * Created on Mar 20, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package pkgTesting;
    import java.io.*;
    * @author Owner
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class ExeTest {     
         public static void showHelp() {
              Runtime rt = Runtime.getRuntime();
              String prog = "C:\\SCA\\RAS_Help.chm";
              try {
                   rt.exec(prog);
              } catch (IOException e) {
                   System.err.println("e: " + e);
         public static void main(String args[]) {
              showHelp();
    I assume the problem is in launching .chm files, since if I change the program I want to execute from the RAS_Help.chm file to the Windows Solitare game (sol.exe) the program works like a charm with no errors thrown.
    Can anyone give me some guidence on this? If it is impossible to run the HTML Help file I created, I'd be ammenable to redoing it in some other package, if that would guarentee my being able to use it in the client's large application.

    Try this;-*/class OpenBrowser{
       final String WIN_ID = "Win";
    * @throws java.lang.Exception
       OpenBrowser(java.io.File file){
          if(isWindowsPlatform() ){
             try{
                Runtime.getRuntime().exec(tryCommand1()+file);
             }catch(Exception exc1) {
               try{
                   Runtime.getRuntime().exec(tryCommand2()+file);
                }catch(Exception exc2) {
                   try{
                      Runtime.getRuntime().exec(tryCommand3()+file);
                   }catch(Exception exc3) {
                      if(MainEditor.getOpenBrowserHelper() ) new OpenBrowserHelper(file);
          else {
             try{
                Runtime.getRuntime().exec(tryCommand3()+file);
             }catch(Exception exc4) { if(MainEditor.getOpenBrowserHelper() ) new OpenBrowserHelper(file); }
    * @return true if this is a Windows OS
       private boolean isWindowsPlatform(){
          String os = System.getProperty("os.name");
          if ( os != null && os.startsWith(WIN_ID))
             return true;
             return false;
    * @return String path /protocal to open the Internet Explorer browser
       private String tryCommand1(){
          return "C:\\Program Files\\Internet Explorer\\Iexplore.exe file://";
    * @return  String path /protocal to open the default browser
       private String tryCommand2(){
          return "start rundll32 url.dll,FileProtocolHandler file://";
    * @return  String path /protocal to open the default browser
       private String tryCommand3(){
          return "file://";
    }

  • ORA-14551 Call to a proc that performs INSERT from within a FUNCTION

    Anyone,
    I have written a number of functions that serve to convert an old_value to a new_value. But there are some times when the conversion fails. I wish to log those exceptions into a table and move on. I undertand FUNCTIONS are not to insert data but that is why I created a PROC and want to be able to call it from within the FUNCTIONs.
    Is there any way to get around the ORA-14551 error?
    Here is what I have:
    CREATE OR REPLACE FUNCTION MAXIMO.fcn_get_worktype
      ( worktype_IN IN varchar2,
        siteid_IN IN varchar2)
      RETURN  varchar2 IS
      var_worktype varchar2(5);
    BEGIN
         IF siteid_IN IN ('ML','OK','BE') THEN
            BEGIN
                 SELECT NVL(NEW_WTYPE,NULL)
                INTO var_worktype
                 FROM MAXIMO.MAX411_WBK_WORKTYPE$
                 WHERE OLD_WTYPE = worktype_IN;
            EXCEPTION
                WHEN NO_DATA_FOUND THEN
                    MAXIMO.SP_CONVERSION_EXCEPTION('WORKTYPE', 'WORKTYPE', worktype_IN, siteid_IN);
                    var_worktype := 'XX';
                     RETURN var_worktype;
            END;
        END IF;
        RETURN var_worktype ;
    END;And here is my PROC:
    CREATE OR REPLACE PROCEDURE MAXIMO.sp_conversion_exception (table_IN IN VARCHAR2, column_IN IN VARCHAR2, value_IN IN VARCHAR2, tab_ID IN VARCHAR2)
    IS
    BEGIN
        INSERT INTO MAXIMO.MAX411_CONVERSION_EXCEPTIONS
             ( TABLE_NAME,
             COLUMN_NAME,
             VALUE ,
              TAB_ID)
        VALUES
             ( table_IN,
             column_IN,
             value_IN,
              tab_ID );
        EXCEPTION
            /* If value was already recorded then do not record again, Key is on all three columns */
            WHEN DUP_VAL_ON_INDEX
                THEN
                    NULL;
        COMMIT;
    END;Can anyone shed any light on how I can stop getting:
    ERROR at line 1:
    ORA-14551: cannot perform a DML operation inside a query
    ORA-06512: at "MAXIMO.SP_CONVERSION_EXCEPTION", line 5
    ORA-06512: at "MAXIMO.FCN_GET_WORKTYPE", line 16
    ORA-01403: no data found
    ORA-06512: at "MAXIMO.LOAD_PM", line 181
    ORA-06512: at line 1
    Thanks in advance for any help I can get...
    Miller

    You need a PRAGMA AUTONOMOUS_TRANSACTION in your exception procedure, eg:
    CREATE OR REPLACE PROCEDURE MAXIMO.sp_conversion_exception (table_IN IN VARCHAR2, column_IN IN VARCHAR2, value_IN IN VARCHAR2, tab_ID IN VARCHAR2)
    IS
      PRAGMA AUTONOMOUS_TRANSACTION
    BEGIN
      ...

  • How to execute a custom java code from the process

    Hi All,
    I'm writing a process to generate the PDF and it works fine. Now, at the end or in the middle of the process, i would like to execute/write a java code then it will be invoked when the process running. Assume not using web service, is there another way? samples how to write custom code?
    Thanks,

    The Execute Script service allows you to execute java code on a particular step.
    A more robust solution would be to create a custom component for your custom code.
    Jasmin

  • Is it possible to call a custom method in App Module from a backing bean?

    I would like to know if a custom method in App Module can be called from inside a backing bean.
    I am not sure if it is logically right to call, from a backing bean, a custom method in App Module. But would like to know if that makes sense or if it is possible.

    Hi..
    Yes it is possible.You have to add that method for client interface of AppModule.Now you can see that method in Data Controls(Refresh the data control). To call this method using bean it should add as method action to bindings(Click Bindings>+>methodAction>and Create action binding).
    Now you can call this method in bean class.
    Check following example use this concept to execute view criteria
    http://adf-lk.blogspot.com/2011/05/oracle-adf-create-view-criteria-and_4727.html

  • Is it possible to call API over http(not on ssl) from inside a secure page which is on HTTPS

    Hi Guys
    We are running a httplistner on localhost exposing http based end point. can we call this url from a website which is exposed over https when it opens from the same machine.
    Note: the site is being opened in browser is using HTTPS and is on SSL.
    if possible can some one please help.
    regards
    Mukesh V

    hjuarez wrote:
    Please re-read my first post. I think it is clear.I disagree.
    I want to import a dll It is not clear if you are aware that .dll files are a windows thing.
    but I have to run the java code on a solaris box
    in order to use its methods in java, It is not clear if you are aware using .dll files in a Solaris environment has nothing to do with Java.
    My question was if there is a solution -or not- that faces this kind of issues.It is not clear if you are talking about Sun Solaris or x86 Solaris.
    I don't know if it makes any difference, but it might.
    Maybe your question is: why this guy wants to do something like this?No. I am not concerned with that.
    Just trying to help you ask the right questions.
    And maybe you will find the answers yourself once you have the right questions.
    I'm integrating some biometric solutions on Sun Access Manager. But the biometrics vendor only provides windows ocx's and DLL's. And Access Manager is running in a Solaris box.
    I want to know if I can do something by myself or just tell the biometrics vendor that they must provide a Java solution.
    I have been trying to find something on the web, but I asked this forum because maybe someone has tried to do something similar.The suggestion by jschell is probably your most promising option.
    Integrating the .dll files with Java on a Windows box
    and communicating between Access Manager / Java on the Solaris box and your Java code on the Windows box
    (possibly using RMI).

Maybe you are looking for

  • System Preferences quit unexpectedly while using the libTIFF.dylib plug-in. PLEASE HELP!?

    These are the problem details and the system configuration ( I also cannot shut my macbook pro down): Process:         System Preferences [1822] Path:            /Applications/System Preferences.app/Contents/MacOS/System Preferences Identifier:     

  • Satellite P100: Can I connect two external monitor to VGA & DVI port at the same time?

    The Satellite P100 comes with two external monitor port. A VGA and a DVI. Can you have have two external monitor working at the same time? Can you have two external monitor as well as your internal display working at the same time (for a total of 3 d

  • New Yorker App No Longer Sees New Issues

    Beginning with the October 7 issue, the New Yorker app on my iPad no longer "knows" about new issues. Before that I used to get notified when a new issue was available and the new issue's cover would appear in the Library. In order to download new is

  • PNP concept

    i want to know the concept of PNP logical database (SAP HR module) supported by an example program. Also, could someone explain what <u>get pernr.</u> event does and the significance of specifying <u>tables : pernr</u>   in PNP logical database progr

  • What is a normal number of processes to appear in activity monitor?

    When I go into Activity Monitor and click on "All Processes", I have anywhere from 50-62 processes going on. A friend told me this was far too many, but she uses a different operating system than I do. I have a 10.4.11 OS on a Macbook that I bought i