Executing Simulink Code on cRIO

Hi everyone,
I am wondering if anyone has a Mathworks Simulink model running on an RT target such as cRIO.
In other projects I've done this on the past using LabVIEW 2010 SP1 and Simulation Interface Toolkit (SIT). You would compile a Simulink model as a DLL, OUT or RTDLL, and used it on a timed loop with SIT's VIs.
What I am reading for LabVIEW 2014 talks about Model Interface Toolkit, but it always refers to running the compiled model on a Host PC.
Does anyone know if it is possible to run DLL compiled with MIT on an RT target????
Regards!
g_l_u_p
Solved!
Go to Solution.

A DLL is a Windows executable format. As such it only ever can run on Pharlap based RT targets. VxWorks based ones use the special .out format, while the new Linux RT are using ELF shared libraries, compiled either for the ARM (cRIO 906x and myRIO) or x64 (cRIO 903x) architecture. So unless your Simulink code can be compiled to either of these two shared library formats,  you can not execute the code on any of the non Pharlap based targets.
Even the Pharlap ones pose some serious challenges. For one the Pharlap ETS OS is not a fully implemented Win32 API but a subset of this. DLLs that are compiled to run on an NT4 or 2000 system have a good chance to run on Pharlap. DLLs for newer Windows variants are likely to make use of either Win32 APIs that do not exist in Pharlap ETS or of Visual C runtime versions that are not available for the Pharlap OS. The Visual C 6 runtime was directly implemented in the Win32 API and basically didn't require any extra install if you were not running on Win95. NI ported the Visual C 7.1 and Visual C 9.0 runtime to their Pharlap targets but newer C runtimes than that are simply not supported. And Visual C DLLs and executables require different runtimes for each Visual C version. So unless your DLL is compiled with Visual C 6, 2003 (MSVC runtime 7,1) or 2008 (MSVC runtime 9.0) the DLL will likely not be compatible with the Pharlap RT system either. 
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Java run time error while executing JavaFX code

    Hi
    I copied the code from [http://java.sun.com/javafx/1/tutorials/ui/overview/UIControls.fx|http://java.sun.com/javafx/1/tutorials/ui/overview/UIControls.fx] while
    reading in [http://java.sun.com/javafx/1/tutorials/ui/overview/#controls|http://java.sun.com/javafx/1/tutorials/ui/overview/#controls] tutorial and paste it to my
    netbeans editor but i got following error.
    init:
    deps-jar:
    compile:
    jar:
    standard-run:
    # An unexpected error has been detected by Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d94513f, pid=5152, tid=5996
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # V  [jvm.dll+0xd513f]
    # An error report file with more information is saved as hs_err_pid5152.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    BUILD FAILED (total time: 18 seconds)can anyone tell whether its netbeans fault or javaFX. I am using netbeans 6.5.1 on windows vista. I have added following plugin in netbeans for javaFX
    *JavaFX Kit
    *JavaFX SDK for Windows
    is anyone also getting this error for this code and have solution for this.

    You are correct the crash is causing due to ToggleButton and ProgessBar. the code is correct because i tried it on eclipse 3.4 and it worked fine.This is definitely netbeans error. because its giving error even if u try to execute javafx code with just one ToggleButton or ProgressBar. I tried the following simple code in netbeans 6.5
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ToggleButton;
    import javafx.scene.control.ProgressBar;
    var toggle=ToggleButton {
                    translateX:50
                    translateY:50
                    text: "First"
                    width:100
                    height:20
    var progress= ProgressBar {
            progress: bind ProgressBar.computeProgress( 100, 30 )
    Stage {
        title : "Toggle Button Test"
        scene: Scene {
            width: 200
            height: 200
            content: [ toggle
    } When i just added toggle button to contents then button showed up in window but on clicking it window disappear and compiler gave crash error on the other hand when i added just progess bar it just throws the error.The same code is running fine on eclipse
    Is there any workaround in netbeans for this if its a bug and if not what should i do to correct it.

  • How do I execute some code when a line of a table control is selected?

    Hi,
    I would like to execute some code when a line of a table control is selected.  At the moment I have to select one or multiple rows and then press enter, this forces a screen refresh and my code is executed but I would like the code to be executed as soon as any line is selected.
    I've done something like this using ALV grids and object orientated code but is there a way of doing this in a normal non-OO table control?
    Thanks in advance.
    Gill

    Hi,
    U need to declare a char1 field for marking (mark field).  This will reflect with value 'X' in your tcontrol internal table for all the selected rows. 
    Now u need to handle the okcode for enter in your PAI.
    There u need to loop through the table for all marked fields.
    There after u can do what ever u want.
    Venkat.

  • TSV_TNEW_PAGE_ALLOC_FAILED in Bw server,while execut t.code RSRT(netwear 7.3)

    Dear experts,
    when i execute T.code:RSRT, i get error like a no more more available in extend memory.In T.code: Db02 shows ()
    1) An exception with the type CX_SY_STRUCT_COMP_NAMEoccurred, but was neither handled locally, nor declared in a RAISING clause
    2)  Wrong number of input parameters [GET_INPUT_STRUCT].
    In t.code:st22
    TSV_TNEW_PAGE_ALLOC_FAILED
    TSV_TABH_POOL_NO_ROLL_MEMORY
    Please help to slove
    Regards,
    Prabaharan B

    Hi,
    You need to increase the abap heap limits on the system.
    Please check the following Notes which describe this issue :
         020527  Runtime error TSV_TNEW_PAGE_ALLOC_FAILED
         1260912 - Memory overflow note: Dump TSV_TNEW_PAGE_ALLOC_FAILED
         1387739 - Out of memory errors during shadow system operation
    Thanks,
    Bhavin Vyas

  • How can I get Firefox to execute html code in a text file?

    I used Notepad to create a text file, markup.html, that contains html code. How can I get Firefox to execute this code?
    Also, how can I use the <script> tag in the html code using the src attribute to execute code in a file written in Javascript?

    First guess is that you did not use an .html extension on the file. The file may well be ''name.html.txt''
    * see http://www.bbc.co.uk/webwise/guides/file-extensions
    *http://windows.microsoft.com/en-gb/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista
    Forum Note
    This is normally offtopic for this forum. I say normally because now we cover webmaker questions. I wonder if this is therefore on topic as a webmaker question?
    I have tagged with webmaker-contribution

  • Execute Custom code to do a warning message on SSHR Manager Appraisal form

    Hello - I do not know much about Java/OAF, but I'm really trying to learn! Here is my requirement,
    please help me in getting this done.
    Requirement : On Employee appraisal form, they will have their yearly objectives and their weight percentages.
    These objectives weight percentage is in per_appraisal table attribute1 field(DFF).
    The total weight percentage of an employess all objectives should be equal 100.
    When manager will login to give them a final rating, the total of all weights percentages should be equal to 100,
    if not I have to through a warning message on the Manager's appraisal form(CompFinalRatingsCO).
    To calculate the total weight, we can certainly write a small pl/sql function or a procedure.
    But how can I execute that code and show a warning message on SelfService HR Manager Appraisal form?
    Thanks in advance for your help.
    Thanks
    - Srini

    1) extend the CO attached to your page.
    2) Capture the Button in Processformrequest of your extended CO.
    3) Call a plsql function or procedure with OUT param which will return whether 100% weightage has been entered or not.
    If Not, then throw warning message.
    Here is the way to call Plsql proc with OUT param.
    String sql =
    "BEGIN bcr12_mapping_tool_procs_pkg.XXBCR12_HAS_MANDATORY(:1,:2); END;";
    OracleCallableStatement cs =
    (OracleCallableStatement)am.getOADBTransaction().createCallableStatement(sql,
    1);
    try {
    cs.registerOutParameter(2, 1, 0, 2000);
    cs.setString(1, int_name);
    cs.execute();
    String new_status = cs.getString(2);
    cs.close();
    if ("Y".equals(new_status.trim())) {
    throw new OAException("Please enter all mandatory column highlighted.",
    (byte)0);
    } catch (Exception ex) {
    throw new OAException(ex.getMessage());
    }

  • Exception in executing JCo code

    I am getting following exception
    Failed to get system null
    while executing following code----
    package com.sap.nwrig.demo;
    import javax.resource.ResourceException;
    import com.sap.security.api.umap.NoLogonDataAvailableException;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    import com.sapportals.portal.ivs.cg.ConnectionProperties;
    import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
    //import com.sapportals.portal.ivs.cg.IConnectorService;
    import com.sapportals.connector.ConnectorException;
    import com.sapportals.connector.connection.IConnection;
    import com.sapportals.connector.execution.objects.IQuery;
    import com.sapportals.connector.execution.objects.InvalidQueryStringException;
    import com.sapportals.connector.execution.objects.QueryExecutionException;
    import com.sapportals.connector.execution.structures.IRecordMetaData;
    import com.sapportals.connector.execution.structures.IRecordSet;
    import com.sapportals.connector.metadata.CapabilityNotSupportedException;
    public class ConnectorExample extends AbstractPortalComponent
        public IConnection connection;
         IQuery query=null;
         public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
        {//docontent start
              IConnectorGatewayService cgService =
              (IConnectorGatewayService)PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY);
              ConnectionProperties cp =
               new ConnectionProperties(request.getLocale(),request.getUser());
              try {
                   connection =cgService.getConnection("Pubs",cp);
              } catch (ConnectorException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (NoLogonDataAvailableException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              try {
                   query = connection.newQuery();
              } catch (CapabilityNotSupportedException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
          String qstr = "SELECT * FROM BAPI_SALESORDER_CHANGE ";
          try {
              boolean success = query.execute(qstr);
               catch (QueryExecutionException e2)
              // TODO Auto-generated catch block
                e2.printStackTrace();
                catch (ConnectorException e2)
              // TODO Auto-generated catch block
                  e2.printStackTrace();
                catch (InvalidQueryStringException e2)
              // TODO Auto-generated catch block
                   e2.printStackTrace();
              IRecordSet rs = null;
              try {
                   rs = query.retrieveRecordSet();
              } catch (ConnectorException e3) {
                   // TODO Auto-generated catch block
                   e3.printStackTrace();
              IRecordMetaData rsMD = null;
              try {
                   rsMD = rs.retrieveMetaData();
              } catch (ConnectorException e4) {
                   // TODO Auto-generated catch block
                   e4.printStackTrace();
              response.write("<table><tr>");
              int columnCount = 0;
              try {
                   columnCount = rsMD.getColumnCount();
              } catch (ConnectorException e5) {
                   // TODO Auto-generated catch block
                   e5.printStackTrace();
              for (int index = 1; index <= columnCount; index++)
                   try {
                        response.write("<th>"+ rsMD.getColumnLabel(index) + "</th>");
                   } catch (ConnectorException e6)
                        // TODO Auto-generated catch block
                        e6.printStackTrace();
                 response.write("</tr>");
                         try {
                             while (rs.next())
                                      response.write("<tr>");
                                      for (int index = 1; index <= columnCount; index++)
                                           response.write("<td>" + rs.getString(index)+ "</td>");
                                      response.write("</tr>");}
                        } catch (ConnectorException e6) {
                             // TODO Auto-generated catch block
                             e6.printStackTrace();
                        }response.write("</table>");    
                   try {
                        connection.close();
                   } catch (ResourceException e7) {
                        // TODO Auto-generated catch block
                        e7.printStackTrace();
        }//do content end
    pls help me dissolve this error

    Is "Pubs" marked as the default alias for the System?
    Sap help maybe
    http://help.sap.com/saphelp_nw04/helpdata/en/30/a0f17aacb34b108b39a96acc33da3f/content.htm
    But the error says NoLogonDataAvailableException so it must have something to do with this.
    Does your request.getUser() return a user?
    br Peter
    Message was edited by:
            Peter

  • Error in executing T.code: FAGL_ACTIVATION

    Hi All,
    I am executing transaction code FAGL_ACTIVATION, getting the bellow error,
    View/table V_FAGL_ACTIVEC can only be displayed and maintained with restrictions
    Message no. SV792
    Diagnosis
    You tried to call a maintenance dialog for the view/table V_FAGL_ACTIVEC, for which the table maintenance is only allowed with restrictions. You can only edit the data in the environment of another program or a view cluster.
    System Response
    The maintenance dialog is not performed.
    Procedure
    You can:
    find the customizing objects for maintenance of the table/view V_FAGL_ACTIVEC with the 'Display Existing Maintenance Objects' button in the maintenance transction SM30, or
    go to the IMG via the 'Customizing' button (also in transaction SM30) and make the settings there.
    Please resolve my issue.
    Thanks and Regards
    A.Rama Krishna

    Hi RK,
    Could you please help me in solving the issue..
    I am getting the same error like "view/table v_fagl_activec can only be displayed and maintained with restrictions." when I tried to deactivate the New GL
    Thanks in Advance
    Regards,
    Srilakshmi Narayana

  • Client not modifiable message while executing t-code ops7 and ops6

    Hi Guru's,
    I am getting "Client not modifiable message while executing t-code ops7 and ops6" in Unit test and Quality client.
    Pleae help me to resolve the error.
    Regards
    Sasikanth Reddy

    Hi
    Copy of the information I found regarding this issue:
    It is possible to allow the maintenance of 'Customizing'-tables in a       
    production client, even if the client is set to 'not modifiable'.          
    Normally this should be the case for tables TCJ04 (responsible person)     
    and TCJ05 (applicant).                                                                               
    Please could you check the settings in your system and change it if        
    necessary:                                                                               
    Transaction SE11:                                                                               
    Table TCJ04: delivery class should be set to 'C'                           
          TCJ05: delivery class should be set to 'C'                                                                               
    Transaction SOBJ -> Maintain                                                                               
    Position on V_TCJ04: Category should be 'CUST' field 'current settings'    
    should be marked.                                                                               
    Position on V_TCJ05: Category should be 'CUST' field 'current settings'                                                                               
    Please also check that your client is defined as 'PRODUCTIVE' via          
    transaction SCC4 (field client role).                                                                               
    I would also recommend that you review the attached notes with reference   
    to the usage of customizing setting "current settings": Nr. 77430,         
    Nr. 135028, Nr. 356483. These are also relevant for your release.          
    Kind regards,
    Zhenbo

  • System is asking for password while executing t.code RSUDO

    Hi
    While executing t.code RSUDO ( Execute as user with restricted authorizations) on behalf of other user, system is asking for password.
    Can you tell the reason for it?
    System is BW 731.
    Thanks
    Saurabh

    Hi
    I had the same problem.
    What solved it for me was to add authorizations in PFCG for one of my roles
    The autorisation is : "Execution of transaction RSUDO without password"
    Heres what I added in PFCG:
    Authorization obj: R_SEC
    RSECADMOBJ:   RSUDO
    RSECADMVAL:   *
    ACTVT:                16
    Hope it will solved your problem.
    Robin

  • Execute Java Code on client

    Hello,
    how can i execute java code on clientside?

    I guess you will have to add an applet to the web page.
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/applet.html

  • Execute java code taken from a properties file

    I have a requirement to store some java code in the Properties file & use the code inside the program later. Is there a way I can execute this code after I get it from the .properties file which is retrieved using the ResourceBundle?
    Example:
    File: system.properties
    Item_list=blocksBean.menu(QueryValue,request.getContextPath())
    Inside my Java program I'm using this..
    theBody=codesBean.replaceAll(theBody, "%%menu%%",ResourceBundle.getBundle("system").getString("Item_list"), true);
    instead of
    theBody=codesBean.replaceAll(theBody, "%%menu%%",blocksBean.menu(QueryValue,request.getContextPath()), true);
    This doesn't work because ResourceBundle.getBundle("... returns the value.. which is a string "blocksBean.menu(QueryValue,request.getContextPath())". But what I need is it has to be executed..
    blocksBean.menu() returns a string value of html code fetched from the dartabase.
    Is there a way I can execute blocksBean.menu() which is retrieved from the .properties file.. If anyone has done it / have an idea on this.. please e-mail me [email protected]
    I need something like an eval() in javaScript..
    Thanks in advance
    -ashok

    These boys might have something that will help you:
    http://www.beanshell.org/
    Good luck
    Lee

  • Execute MSIL code using JAVA

    How can I execute MSIL code using java?

    Thanks for your reply. I did it in google and didn't find any useful think.
    I just want to know is there any technique in java or already written product that can do that.
    Any advice will be helpful. Thanks

  • When I execute my code that contains SetCtrlVal, I get the following error:

    When I execute my code that contains SetCtrlVal, I get the following error:
    “Invalid argument type found double expected int.”   The variable in question is declared double, and from reading the help info, the variable should adapt to the declared type.
    Solved!
    Go to Solution.

    A typical reason for this error is using a wrong panel handle in SetCtrlVal: check that the handle passed to the function effectively is the one returned from LoadPanel or NewPanel function.
    Another common issue it trying to address a control on a tab page using the handle of the panel that holds the tab control: you must consider that each tab page has its own panel handle as it were a separate panel; you can retrieve the handle associated with tab pages with GetPanelhandleFromTabPage () command.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Error in execute T-code RSA1

    I've installed ECC5.0 and copy a new client 800 ,then I execute T-code RSA1 to call AWB but failed. The system message as below : You can only work in client 000....
    but I can't do anything with RSA1 in client 000..why?
    can anybody help me to solve this problem? thanks a lot.

    Hi,
    yes i had the similar problem when i installed BW!
    then i got the solution from SAP whcih i am now posting for u!you cannot open the RSA1 screen using 000 client as it is for administration purpose.
    just follow the three steps for client copying , you will definitely can open RSA1 screen.
    here are the steps:
    1.SCC4 --> Create client no. and fill other details.
    2. Logon to the newly created client with SAP* and PASS as password.
    3. SCCL --> choose any profile (preferably SAP_ALL), source client 000 and target client <as created just now>.
    4. Preferably do a test run initially to check if it can go well.
    after client copying you need to follow some more steps:
    step 1, execute function module / (Transaction SE37).
    Enter the new client (100) as value for parameter i_mandt.
    Step 2, enter default client (100) in the field BWMANDT of the table
    RSADMINA (Transaction SE16).
    Step 3, change the profile parameter login/system_client to 100
    (Transaction RZ10 > Default profile).
    hope this will solve your problem!
    if yes , plz assign ponits !
    Ravi

Maybe you are looking for