Creating EXEs using VI server

Can i create exes using VI server in RT embedded controller . how do call a vi in run time and run it on RT target.
Suresh Thangappan

Hello,
There is no way I�m aware of to build an EXE on an RT controller using VI server. Executables can be built by using the LabVIEW Application Builder on the Host PC (by going to �Tools->Build Application� or Shared Library (DLL)... on the menu in LabVIEW).
As for running VIs on an RT target using VI server, this should not be a problem. The procedure to follow to do this is the same as if you wanted to execute a VI on a remote Windows PC. The first step is to enable the VI server on the RT target.
To do this, target the RT controller and go to �Tools-> RT Target: Options�� on the LabVIEW menu. Under the �VI Server: Configuration� category make sure that the TCP/IP box is checked. This will enable VI server. Next go to �VI Server: TCP/IP Access�,
and add the IP address of the host PC (or you can add �*� to allow all IP addresses to access the RT controller).
After this configuration has been done, you can write a VI that remotely calls VIs on the RT controller. The basic format is to call the Open Application Reference VI to access the RT controller, then call Open VI Reference to open a reference to the specific VI you�d like to call, and then use a Call By Reference Node to execute the VI opened by the Open VI Reference VI. An excellent example of doing this remote VI calling is installed with the LV RT module (version 7.1). This example VI is called �VI Server Manager.vi� and can be found in the Example Finder (Help-> Find Examples�) at �Toolkits and Modules -> Real-time -> Deploying�.
I hope this helps. Please let me know if there is anything I can help with or clarify.
Ken S.
Applications Engineering
National Instruments

Similar Messages

  • Open VI Reference Error when Using a LV Created EXE as ActiveX Server

    Making a long story short, I'm trying to create an executable in Labview that I can call from another Labview program via active x. I've been using the following article as my guide:
    https://decibel.ni.com/content/docs/DOC-9647
    It seems simple but I keep getting error 6945 saying that the VI name is no longer suffiencient. I've checked and rechecked the VI name that feeds VI path and I know it is correct. All I'm really trying to do is grab the VI reference so I can hide the front panel. Attached is a screenshot of the code and the error. Any thoughts?
    Solved!
    Go to Solution.
    Attachments:
    Screen Shot 2012-07-03 at 4.18.05 PM.png ‏44 KB
    Screen Shot 2012-07-03 at 4.18.35 PM.png ‏22 KB

    Thanks, dbell
    This is such an awaited improvement and I am shocked that I did not know about it until now. I want to move to LV 2009 or later so that I do not have to expose bunch of VIs outside of executables. In LV8.6 if you use inheritance of LV Classes then conflicting name was inevitable as overriden VIs always have the same name as the parent method VIs (prefix does not fix it).
    And I guess we need to add some comments on this page from PO  >> https://decibel.ni.com/content/docs/DOC-9647
    TailOfGon
    Certified LabVIEW Architect 2013

  • How create JMS using jboss server

    Hi
    I am new to JMS, as i need to know how to create a JMS client in JBoss, i need complete details about jms topic/queue, complete details including the configuration in jboss to create a sample jms client.
    Thanks in advance.
    regards
    Javith

    Hi Javith
    The top three links provided in a Google search 'jboss jms tutorial' look like they'd cover this pretty well -- depending on if you're using JMS inside the JavaEE environment, or your using JMS directly. We might be able to help you more if you were trying to use GlassFish Message Queue and/or GlassFish Enterprise Server.
    Good Luck
    -- Ed

  • Why do I get error 1031 when using vi server to call an exported vi?

    I'm trying to call a vi that is inside an exe using vi server.
    For some reason I keep getting error 1031 "VI Reference type does not match VI connector pane" from the open vi reference primitive.
    However:
    If I statically link to the vi using the same type specifier, it works just fine.
    I've attach 2 code capture screen shots.  One shows the original code that generates the 1031 error.  The other shows calling it directly locally and that code executes with no problem.
    Oh and also, if I don't connect the type input I can open a reference to the remote vi and interact with it.
    I've also attached a code capture screen shot as well.
    So it appears that the vi server connection to the exe is not transferring the VI reference type correctly??  Has anyone had any experience with this?
    I have no idea why this is happening.  Anyone have any thoughts? 
    I'm using LV2009SP1 by the way.
    Attachments:
    doesnt work.png ‏13 KB
    Works.png ‏13 KB
    Works2.png ‏13 KB

    When you are trying to call into an executable, LabVIEW will not necessarily know what type it is. You are getting this error because you cannot use a strict type definition in certain cases, this being one of them. Some cases will require you to use a strict type definition due to their architecture but again, due to the structure of your applications, you can't use the strict type definition. Your other two examples use the correct passive types and therefore do not get the error. Hope this answers your questions!
    Mychal F
    Applications Engineer
    National Instruments

  • Launch4j for creating exe

    Hi,
    I am facing a problem while creating exe using Launch4j.
    It is giving an error as it Could not findthe jar file specified when build.bat is executed.
    The jar file is placed in the project folder along with build.xml and build.bat.
    Could you please guide me solve this issue. Please let me know incase of insufficient inforamtion as I am using Launch4j for the first time.

    Launch4j is not a product developed or endorsed by Oracle, and is probably not very widespread: a majority of Java developers (unfortunately) won't care about how the applications are installed and launched.
    So you won't find a lot of help here. Instead, the likeliest way to get help on Launch4j specifically, is to turn to the Launch4j's project support: http://sourceforge.net/projects/launch4j/support
    Good luck,
    J.
    Edited by: jduprez on Feb 24, 2011 1:23 PM

  • Create A/R Invoice and Its Incoming Payment using DI Server

    Hi Everyone,
    I need to create an A/R Invoice and its payment in a sigle transaction using DI Server. The problem is that I don't know the DocEntry that will be assigned to the invoice in order to set it in the SOP message for creating the incoming payment.
    I guess the SOAP message should look like:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
      <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add invoice">
      <BOM>
       <BO>
        <AdmInfo>
         <Object>oInvoices</Object>
        </AdmInfo>
        <Documents>
         <row>
          <DocDate>20040707</DocDate>
          <DocDueDate>20040707</DocDueDate>
          <CardCode>BP</CardCode>
         </row>
        </Documents>
        <Document_Lines>
         <row>
          <ItemCode>Item1</ItemCode>
          <Quantity>3</Quantity>
          <TaxCode>My Tax</TaxCode>
         </row>
        </Document_Lines>
      </BO>
      </BOM>
      </dis:AddObject>
      <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Incoming Payment">
      <BOM>
       <BO>
        <AdmInfo>
           <Object>oIncomingPayments</Object>
        </AdmInfo>
        <Payments>
           <row>
               <CardCode>BP</CardCode>
               <DocTypte>rCustomer</DocTypte>
           </row>
       <Payments>
       <Payments_Invoices>
            <row>
                 <DocEntry>???</DocEntry> <---- ???
                 <InvoiceType>it_Invoice</InvoiceType>
                <SumApplied>100</SumApplied>
            </row>
       </Payments_Invoices>
       </BO>
      </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    Any help?

    Dear Hugo Moreno,
    You could use the GetNewObjectCode Method of the Company Object to retrieves the key of the last added record.
    Please refer to SDK DI API help for this method.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Oracle 10g - Creating a new Application Server using standalone OC4J 10g

    I have some issues in creating a new app. server using standalone oc4j 10g 10.1.3 instance. After I created the app. server instance, I tested the connection and it says connection refused. I used the userid as oc4jadmin and the password as welcome. I am getting a message connection refused. For connection, I used the default hostname "localhost" and I didn't mention anything in the URL path.

    Thanks Steve..
    Here is what I am trying to do.. I want to create a new app server instance (i.e.) stand alone oc4j server, where I can deploy my web service and run a test.
    Oracle JDeveloper 10g:
    Under Connection Navigator, Application Server --
    1) Right click to 'Create New Application Server Connection'
    2) Connection type as 'Standalone OC4J 10 g 10.1.3',
    3) Username ==> oc4jadmin, Password ==>welcome, checked the Deploy password.
    4) Hostname: localhost RMI Port: 23791
    URL path: <<blank>>
    5) Test Connection ==> getting a error message...
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    Any input you can provide would be of great help.

  • I am unable to create pdf using adobe printer to a redirected folder on a server running windows server 2003

    I am unable to create pdf using adobe printer to a redirected folder on a server running windows server 2003

    In the app-server-ant.xml file, as indiacted in the error message i am getting, at line 145 it is suppose to get the path to \bin\asadmin.bat from the value of a paramater called 'asadmin'. This value is being set in the beginning of the file.
    The parameter value of 'asadmin' is further referring to value of another parameter called 'javaee.home' which is being set in tut-install/javaeetutorial5/examples/bp-project/build.properties
    I have checked the values of both these parameters and they are set correctly, so since it is still giving me problems, at line 145 i hard coded the path instead of the parameter name:
    I replaced line
    <exec executable="${asadmin}" failonerror="${failonerror}" dir="${javaee.home}">
    with
    <exec executable="c:/sun/appserver/bin/asadmin.bat" failonerror="${failonerror}" dir="${javaee.home}">
    This works.

  • Using weblogic.Server to create domains

    Not sure this is the right group for this question....
    I am reading some weblogic docs on creating a domain using weblogic.Server (http://e-docs.bea.com/wls/docs81/admin_ref/cli_tasks.html#1331827).
    For the most part it has worked as expected and I find it preferable to using
    the domain cfg wizard. However, is there a way to use a template jar like you
    can with the config wizard, for instance any of the jars in the
    $WL_HOME/common/templates/domains/

    Hello Jay, thanx for ur help... this time i didnt get the args missing error but i have this one about "can't overwrite"
    mauro@MacBookPro:HelloWorldEAR $ java -classpath /Users/mauro/beaWS102/wlserver_10.0/server/lib/weblogic.jar weblogic.BuildXMLGen /Users/mauro/Documents/WLprojects/HelloWorldEAR
    Can't overwrite cause
    mauro@MacBookPro:HelloWorldEAR $ cd ..
    mauro@MacBookPro:WLprojects cursor$ sudo java -classpath /Users/mauro/beaWS102/wlserver_10.0/server/lib/weblogic.jar weblogic.BuildXMLGen /Users/mauro/Documents/WLprojects/HelloWorldEAR
    Can't overwrite cause
    mauro@MacBookPro:WLprojects cursor$ cd HelloWorldEAR/
    mauro@MacBookPro:HelloWorldEAR $ ls
    APP-INF META-INF appUtils bin helloWorldEJB helloWorldWebApp src
    macbook-de-cursor:HelloWorldEAR cursor$ cd ..
    mauro@MacBookPro:WLprojects $ sudo java -classpath /Users/mauro/beaWS102/wlserver_10.0/server/lib/weblogic.jar weblogic.BuildXMLGen -file build.xml /Users/mauro/Documents/WLprojects/HelloWorldEAR
    Can't overwrite cause
    Do u know something about this message?? I really need to set up this thig to be able to start my own project :P Thanx in advance
    Best regards,
    Mauro
    ==========================================================
    Solution
    Ok, i make it work!! I have in my develop structure a helloWorldWebContent/META-INF/ and here i had a web.xml and a weblogic.xml
    The weblogic.xml file cause problems... i deleted and it works
    I was following this tutorial
    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/programming/splitcreate.html#wp1098227
    and i create all those files...
    Dude, u have a great blog! Now it is in my bookmarks
    Edited by: mgaldames on 17-may-2010 7:20
    Edited by: mgaldames on 17-may-2010 7:21

  • Creating Repositories using MS SQL Server DataBase in Data Service Reposito

    HI All,
    I installed BODS and I am trying to create repository using Data Service Repository Manager but I am getting the following error message :
    Cannot open connection to the repository.  The error message from the underlying DBMS is <ODBC call <SQLDriverConnect> for data source <localhost> failed: <[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.>. Notify Customer Support.>. (BODI-20006)
    An error occurred during creation of the local repository. (BODI-300054)
    While installing BODS i used the option to create DB .... Before that even I had Microsoft SQL server installed for MDM which was working fine (Able to Log on and so on)...
    Do I need to install Oracle in order to create repositories? How to proceed further please suggest.
    many Thanks
    Rajeev.

    Hi!
    What version of SQL Server are you using for the repositories? Maybe the error is because DS can not create repositories in SQL Server 2008. You can read and write data with SQL2008, but you need to create the repositories in SQL2005 or another RDBMS. I'm not sure when DS is going to be able to create them in SQL2008.
    I hope this could help you. Greetings!
    See you
    LCGC

  • Using LV 8.6 to access database created in MS SQL Server Management Studio

    I am using Labview 8.6 to access a database created in MS SQL Server Mgmt Studio, using LabSQL ADO utilities. I don't have LV's add-on DB connectivity toolkit, but just the ADO utilities. Can i do it? If yes, how? I have no experience whatsoever in connecting and accessing data from a DB. An example would help.
    Thanks,

    Szi wrote:
    As for my opinion you cant access without DB connectivity toolkit.
    Nonsense.
    With LabSQL, you should first find an on-line SQL tutorial and refer to the Microsoft help files. I would recomend creating a UDL file. This is the connection string you use for the ADO Connection Open function. You might want to to get a little help from the db administrator. You'll certainly need help in getting a login and password.
    There are examples that come with LabSQL

  • Error using JDeveloper create connection to integration Server

    After I success install whole SOA Suite 10.1.3.1, when I used JDeveloper to create connection to Integration Server, There was a failed to connect to BPEL.
    Always echo "java.io.FileNotFoundException:http://localhost:80/integration/services/testconnection/BPELConnection" in JDeveloper.

    Hmm, and the bpelconsole is running?
    You can enter the console at
    http://yourhostname:yourport/BPELConsole ?

  • Unable to create a clustered VM using Remote Server Administration Tools - Failover Cluster Manager

    Hi
    I am using two Hyper-V Server 2012 R2 and a single WS2012 Datacenter Edition with GUI Interface for management purpose.
    I have installed Failover Clustering feature on these two Hyper-V servers and remote server administration tools for Failover Clustering on WS2012 DC Edition with GUI.
    I have created cluster using powershell cmdlets on Hyper-V server because I was unable to create a cluster using RSAT-Failover Clustering (May be some privileges issues).
    The problem is " I am still not able to create a Hyper-VM using Failover Cluster Manager on WS2012 DC Edition server". It gives me an error "Invalid operation"
    Any Help regarding this issue will be very appreciated.
    Thanks in Advance.....
    Abhinav | MCTS-Server Virtualization

    Thanks Tim for your response but atleast I should be able to create and configure VMs for high availability. 
    I think this is not the issue which I am facing. It gives me an error "invalid class". There is something missing.
    Please check and let me know if it can be solved. Any help will be really appreciated.
    Thanks in advance.
    Abhinav | MCTS-Server Virtualization

  • Can I create my own iDisk spaces using Lion Server?

    Using Lion Server, can I create a space that would be like iDisk for my users to save and access documents and files remotely? Also to make that shared between users? Basically make my own cloud space.

    SSL Certificate is based on your domain, not the granularity of folders.  If you have a server named idisk.yourdomain.com and all users will access the same domain, than you need a cert for idisk.yourdomain.com.  If you plan to do multiple hosts within the same domain, such as idisk.yourdomain.com and clouddrive.yourdomain.com then look to get a wildcard cert.  If you are doing multiple domains, such as idisk.yourdomain.com and clouddisk.otherdomain.com then you need multiple certs.  One per domain.
    As for access control, that is handled through folder structure and permissions.  Make two folders.  AllAccess and LimitedAcces.  You can make a group that contails users A, B, and C and make them part of a group.  That group can access the AllAccess folder.  Then make another group containing users A & B and then grant them access to the LimitedAccess folder.

  • Can't create stock transfer using DI Server

    Hi Experts,
    I need a very urgent help from you guys.
    I was creating an inventory transfer document with batch numbers by using DI Server, Each time it gives me error "10000559 - Not enough data".
    I am using following soap string.
    Thanks in advance for the help
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
        <SessionID>6BD16887-E595-41B0-A6D2-D730DFA07B55</SessionID>
      </env:Header>
      <env:Body>
        <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
          <BOM>
            <BO>
              <AdmInfo>
                <Object>oStockTransfer</Object>
              </AdmInfo>
              <Documents>
                <row>
                  <CardCode>V00204</CardCode>
                </row>
              </Documents>
              <Document_Lines>
                <row>
                  <ItemCode>Raw Colostrum</ItemCode>
                  <WarehouseCode>TANK1</WarehouseCode>
                  <Quantity>2.5</Quantity>
                  <FromWarehouseCode>FREEZER1</FromWarehouseCode>           
                </row>
              </Document_Lines>
              <BatchNumbers>
                <row>
                  <BatchNumber>140505155901743</BatchNumber>
                  <Quantity>2.5</Quantity>
                  <BaseLineNumber>0</BaseLineNumber>            
                </row>
              </BatchNumbers>
            </BO>
          </BOM>
        </dis:AddObject>
      </env:Body>
    </env:Envelope>

    Hi Ritu,
    I don't know exactly what the problem is, but the following xml is working for me ( using StockTransferService):
    <?xml version="1.0" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <soap:Header>
            <MsgHeader xmlns="http://www.sap.com/SBO/DIS">
                <SessionID>87CC6D32-2724-49EA-BD30-EA6DD1F0810C</SessionID>
                <ServiceName>StockTransferService</ServiceName>
            </MsgHeader>
        </soap:Header>
        <soap:Body>
            <Add xmlns="StockTransferService">
                <StockTransfer xmlns="http://www.sap.com/SBO/DIS">
                    <FromWarehouse>01</FromWarehouse>
                    <ToWarehouse>02</ToWarehouse>
                    <StockTransferLines>
                        <StockTransferLine>
                            <ItemCode>B10000</ItemCode>
                            <Quantity>1</Quantity>
                            <WarehouseCode>02</WarehouseCode>
                            <BatchNumbers>
                                <BatchNumber>
                                    <BatchNumber>B1-00067</BatchNumber>
                                    <Quantity>1</Quantity>
                                    <BaseLineNumber>0</BaseLineNumber>
                                </BatchNumber>
                            </BatchNumbers>
                        </StockTransferLine>
                    </StockTransferLines>
                </StockTransfer>
            </Add>
        </soap:Body>
    </soap:Envelope>
    regards,
    Maik

Maybe you are looking for