How to build a working executable of the DataSocket writer example VI

I'm trying to build an executable of the "DS Writer.vi" example.  The first problem was that the "DataSocket Server Control.vi" was not distributed with my build/install script.  I fixed that (thanks Dennis) but now I get the following error message.
LabVIEW:  (Hex 0x626) Cannot open a VI with separated compiled code in a Run Time Engine that has no access to the VIObjCache.
There is a solution to that (http://forums.ni.com/t5/LabVIEW/Getting-LabVIEW-load-error-code-59-using-LabVIEW-2010-with-a-Run/td-...), but it involves changing a property of a VI in the DataSocket library (if I understand that correctly).  I'm reluctant to make a change to a standard NI library as it could cause maintenance problems in the future (other developers not having the same change, or updating LabVIEW versions).
Has anyone successfully built an executable using DataSocket?  If so, can you offer any advice?  I'm using LabVIEW 2011.
Thanks, Mark
Solved!
Go to Solution.

Thanks Nathan.  I was able to build and deploy an executable with DataSocket.  The last hurdle was to "Uncheck the 'Separate compiled code from source file' option in VI Properties" for the "DataSocket Server Control.vi".  The only problem with that solution is that I now have a customized DataSocket library.  I think one solution might be to copy that VI or the library into my project folder so that the solution is transferrable to others in the future.  I would like to hear how other LabVIEW developers deal with customized libraries, either by strictly avoiding that, maintaining their own copies, or some other solution.  But that is probably a topic for a new thread.

Similar Messages

  • Issue with How Do I Run an Executable in the Background ?

    Hi,
    I am trying to run a LabVIEw executable in the background, but none of the methods described in the discussion forum and on ni.com seems to be working. I am using LV 2011 on a Win 7 64-bit machine in case this matters.
    I tried the method described in "How Do I Run an Executable in the Background as a Start-Up Application?" (http://digital.ni.com/public.nsf/websearch/4A8B626​B55B96C248625796000569FA9?opendocument&Submitted&&​... but I still see a fragment of a window at the bottom near the start-button (Exhibit 1). Exhibit 2 shows that it only consists of the title bar. (I have customized the window appearance as described, and added the two items
    HideRootWindow=True
    UseTaskBar=FALSE
    to the *.ini file.)
    I also tried disabling all the other items in the Customize Window Appearance menu with the same result.
    Then I tried the method described in "Running a LabVIEW Executable as a Background Process" (http://digital.ni.com/public.nsf/allkb/EFEAE56A94A​007D586256EF3006E258B) adding the FP.Open method to the VI and setting the state to hidden. I got the same result (Exhibit 1).
    Is there anything I need to do in addition or different for my windows version? I appreciate your help. Thank you.
    Solved!
    Go to Solution.
    Attachments:
    LabVIEW Executable.zip ‏4058 KB

    (I have customized the window appearance as described, and added the two items
    HideRootWindow=True
    UseTaskBar=FALSE
    to the *.ini file.)
    No you did not
    They need to go in the exe's ini so the exe sees them
    Jeff

  • Im using windows 8 how do i save work done in the creative cloud as a CS6 file?

    Im using windows 8 how do i save work done in the creative cloud as a CS6 file. Ron C

    Im on the CC2014 and im doing projects in aftereffects & photoshop for my school projects and they're using CS6 how do save them as a CS6 project.
    John T Smith <[email protected]> wrote:
    John T Smith  created the discussion
    "Im using windows 8 how do i save work done in the creative cloud as a CS6 file?"
    To view the discussion, visit: https://forums.adobe.com/message/6783259#6783259
    >

  • How do i use home.html in the first Jboss example

    how do i use home.html in the first Jboss example? i got the example to work through the command line method. i also got the CD example to work.
    the documentation does not tell you how to use the home.html file. the file suggests that i can call the servlet because it has this line:
    <form action="InterestServlet" method="POST" >
    from my knowledge of servlets, i should be able to put the home.html file in the same directory that the servlet is in, and as long as a web browser can access it in that location, then this should work... right?
    can someone tell me specifically what they did to get it to work? i CANNOT FIGURE OUT what the servlet URL is. my first guess would be http://localhost/servlets/InterestServlet . This doesnt work. Does anyone understand where i am coming from??
    I am using ANT, and the normal install of the latest JBoss. i do not have a web server running because the JBoss server says in the console "[INFO,WebService] Starting
    [INFO,WebService] Started webserver with address: null port: 8083
    [INFO,WebService] Codebase set to: http://thor:8083/
    [INFO,WebService] Started" and so i assume there is a web service there?????

    ADDENDUM:
    i still cant figure out my servlet question, so please help, if you can.
    i just figured out that i need to download the JBoss Tomcat/Catalina server. I got it running except that the Catalina web server only is working when i run it standalone, and i cant figure out why. It keeps throwing this exception:
    [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI
    [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
    java.lang.NullPointerException
    at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    at java.lang.Thread.run(Unknown Source)

  • How to build a search engine in the database?

    Hi there,
    say I have 3 tables:
    1. Table_empl: idEmpl, fname, lname, dob...
    2. table_department: idDpartment, idEmpl, departmentName, section...
    3. table_fligths: idFlight, idEmapl, departure date, destination, carrier...I would like to provide the end-user a text box (in my GUI) where he can write whatever he would like to get info about. If, for example, he'll write: british-airways, I expect the system to search everything in the db that matches this input.
    Question: How can I design such a search engine that retrieve information from every possible table in the db with reference to every column.
    thanks for any pointers

    thanks darted for your reply. so what do you recommend? should i give the end user all names of tables and columns and ask him to choose from the list and than build a query based on that?
    this is optional but i'd rather have one exec button and to return all possible results from the db. if (in the example i provided) it found 'british airways' in the carrier - than that a result. if it founds 'british' in the lname of table_emple - that's another result. so the output should be something like:
    found 2 matches:
    1. british airways, 10/10/2006, LHR
    2. British, John, 12/01/63,
    any idea how to build that?

  • How to include sap work item in the email sent by workflow - WS01700044

    Hi,
    In FSCM Dispute Management, we have a requirment to include the sap work item in the email being sent by the workflow - WS01700044.
    The underlying task in it is TS01707928. This Task sends an email to the outlook as well as work item to SAP inbox.
    We want to include Sap Work item in email being sent to the outlook.
    This will help the users to process the workitem directly from the email instead of going to SAP Inbox to process the work items.
    Please suggest the possible ways.
    Thank you.
    Vijay

    Sadly, I believe this will require a bit of development to make it happen. The project I'm on now...we are finding that to get it to do what we want it to do, a development to customize the email message to include all the case fields is required.
    D

  • How to build a simple applicatio​n using DataSocket in LabVIEW 6.1?

    I would like to have A complete description/explanation of DataSocket Technology in LabVIEW 6.1. Also, a simple example of of writer and reader (simpler than the ones in Example directory).

    The following is a simple tutorial about DataSocket: http://zone.ni.com/devzone/conceptd.nsf/2d17d611ef​b58b22862567a9006ffe76/14f3b2bc11811dc186256a9d006​8b2d1?OpenDocument
    I will attach a very simple datasocket example writer and reader. Make sure to start the datasocket server before running these examples.
    Attachments:
    dswriter.vi ‏13 KB
    dsreader.vi ‏16 KB

  • How to build dynamic query strings in the query using DB adapter 'Pure SQL'

    Dear Forum,
    I am building an application which will access DB to fetch some result set. The query involves retrieving data from multiple tables(nearly 10 tables). So I have created a DB adapter using 'execute pure sql' option. With this query works fine, but my inputs parameters will vary. So I need to make my query dynamic to append the query strings at runtime depending on the inputs.
    For example I have 3 input variables - input1,input2 and input3 (in my request xsd) which are used in the pure sql query. Now if I get a 4th input parameter input4 in the request, I need to append this to query string as 'AND input4=[some value]' at runtime. Otherwise my query should have only 3 parameters. Please suggest how this can be achieved.
    Regards,
    Satya.

    This is a strange requirement, depending on the columns you have and what are optional in them, one way is to have separate operations and each opeartion will have different inputs and for each operation , a different DB Adapter is called. But this way, it results in more number of operations for the service as well as more number of references in the composite. Even if you pass the column inputs to the SQL procedure, it will result in a large number of if-else cases..
    Thanks,
    N

  • How to use commit work as per the requirement?

    Hi all,
           Here i have a requirement about database table updation. I have to update a database table, at the time of doing commit work it has to check the following condition .
    The data should be split up in different groups or records of no more than 2000 after which a commit to the database is executed.
    So can anybody help me in this regard with a piece of code? and i want to know during updation how to lock the data base table and how to unlock? Is there any standard function modules to call regarding this locking and unlocking?
    Thanks & Regards
    Naidu

    which table is that? and do you have any code so far?
    Logically you need to loop thru your records, lock the table for that record, update the table , unlock the tabel record, count the entires so far, andi f it is 2000 issue commit work.

  • How to learn and work CS6 from the middle of nowhere ?

    Hello all,
    I live along the cordillera de los Andes, and the first good internet connexion is 30 km away from my "casa de campo".
    Sooooooo, how do I do ?
    First question (thanks)
    1. I go to "town" with my (light) MacBook Pro and I load programs and updates.
    2. when home, I connect my MacBook Pro to the (heavy) iMac and I make the iMac updated this way.
    question : will it work if I buy CS6 on my MacBook Pro and "copy" it on my iMac ?  so one licence on two computers
    and I'll use one computer at a time.
    Second question (thanks for your patience)
    1. I am for the week in Buenos Aires with a  serious internet connexion I can buy CS6 from there and load it on my MacBook
    2. but there are so many tutorials that I would like to copy them all, go back to the middle of nowhere and start learning on my own
    question : if this is possible, how do I copy the tutorials ?
    Thanks for you patience, have a nice day
    Richard

    CS6 should still be available on CD/DVD as a suite. Amazon and other internet sites should still be selling it. That license is good for 2 computers, only 1 can run the suite at a time. But can stay installed on both.
    While looking at that site, search for tutorials on CD. Get a few books as well, which are also available as ebooks or kindle books. The kindle software is free for most systems including windows and Mac.
    The CC or cloud version probably would not be for you unless you can make sure you can get to an internet connection once a month. Though if you can not don't worry the software will reactivate the next time you connect.
    Good luck...

  • How to initiate a work flow when the button is pressed in a form

    Hi All,
    I am new to workflow, I am working with oracle apps r12 and form 10g and workflow builder 2.3.
    I have develop a form in that i have a button called Initiate approval, When the user clicks the button the workflow need to called.
    Can any one please tell me the steps to do this.
    Thanks & regards
    Srikkanth

    Hi,
    I have called the workflow pkg directly in my when button pressed trigger and its works fine
    Regards
    Srikkanth.M

  • How to build first computer to create the best editing experience?

    Hey!
    I'm looking into building this computer, as is outlined below, for work - video editing, motion graphics (both Premiere and After Effects). I want something that will last me a good while (few years) in terms of its performance alongside future software upgrade and processing power demands, with possible, but minimal part upgrade
    It's my first ever build, so I've looked at a few other  posts here on related subjects, and did a significant amount of research all over to support my choices.. But I just wanted to check if anyone has any input on whether my reasoning for these choices makes sense, whether you agree or disagree with anything, and of course if I missed something somewhere like one of the the parts i chose is incompatible, whatever :)..... any input is welcome!
    MB
    UP5 TH
    - I chose this over ASUS x79 since socket 1155 doesn't work with 3770k - argument for t
    CPU
    i7-3770k
    - k for possible future overclocking - and ivy bridge (slightly) outperforms 3820 sandy bridge...
    GPU
    Palit gtx 570 1.3gb
    - I chose the 5series since many reviews and benchmarks show that it performs better though it has less CUDA cores since it has a significantly wider memory interface (cheaper and better – no brainer!)
    - I chose PALIT over GAINWARD and other manufacturers, only because it is cheaper even though I read some reviews that say PALIT fans are less quiet  (I imagine it is not THAT big of a difference)
    RAM
    corsair vengeance 4x 8gb (1600Mhz)
    SSD
    kingston 120
    - Drive for OS, applications and cache
    HD
    wd caviar blk 1tb x2
    - One for working projects, one for exports    -    or both RAID 0
    CASE
    Fractal Design DEFINE R4
    - case comes with two fans included – customizable… I assume I don’t need more fans yah?
    PSU
    XFX ProSeries 650W 80 PLUS Bronze
    - this seems sufficient to me…. Maybe I will overclock one day, but it still seems like its enough even so
    Thanks!!

    The Samsung has the best 'steady state' performance degradation at this moment, clearly better than the Kingston, even the Hyper-X version.
    650W  with a GTX 570 and the intention of overclocking the CPU is around minimum. If the currents delivered are not rock steady and stable, you are asking for trouble. A gold label is more efficient and delivers a more stable current under various loads.

  • How to get  current working directory of the ftp server,in java application

    Hi All,
    I?m FTP?ing the file using java.net.url.
    Here is the snippet of the code:
    public void ftpFile()throws ChrsException
    try
    System.out.println("FTPing the file '"+localfile+"'");
    OutputStream os = openUploadStream(targetfile);
    FileInputStream is = new FileInputStream(localfile);
    byte[] buf = new byte[16384];
    int noOfBytesRead;
    while (true)
    //Read the data from the source File into buf
    noOfBytesRead = is.read(buf);
    if (noOfBytesRead <= 0)
    break;
    //Writes the data present in the buf to the target file
    os.write(buf, 0, noOfBytesRead);
    os.close();
    is.close();
    close();
    System.out.println ("The file '"+localfile+"' is Sucessfully FTP'd to '"+targetfile+"'");
    catch (MalformedURLException malExcp)
    System.out.println ("Invalid URL. Error in FTP'ing the file: \""+localfile+"\"");
    catch(IOException ioe)
    System.out.println ("Error in FTP'ing the file: \""+localfile+"\"");
    private OutputStream openUploadStream(String targetfile) throws MalformedURLException, IOException
    URL url = null;
    //Creates a URL object with FTP protocol
    if (user == null)
    url = new URL("ftp://" + host + "/" + targetfile + ";type=i");
    else
    url = new URL("ftp://" + user + ":" + password + "@" + host + "/" + targetfile + ";type=i");
    urlc = url.openConnection();
    //Get the OutputStream that writes to this connection.
    OutputStream os = urlc.getOutputStream();
    return os;
    Now I need to find what the current directory is when the user logs in with username and password on to the FTP server in java.
    Thanks in Advance.

    as soon as user logs in he is taken to the directory
    "ftproot/pub/abc".
    now If I execute pwd command , is hould be able to
    get to know tht user is under "ftproot/pub/abc"Three respected posters, well two plus me ;-), have just told you otherwise. The information about the current directory is (a) secure and (b) useless to the user, as he can't do anything with it. The user doesn't want to know that at all and you shouldn't try to tell him. And in any case FTP doesn't support it, again for security reasons, so you can't do it.
    Just accept it.

  • How to build a jar file so the program can access its resources folder?

    I have a java program written by someone else in which I have made a trivial change (I changed the background color). The jar file runs but it does not find one of the resources file.
    Here is the project folder's structure
    mainClass.txt (manifest text file)
    folder resources (includes file Java does not find: order.txt, a text file)
    folder CFPT ( includes .class files)
    folder cpl (includes .class files)
    folder results
    I tried
    jar cvmf mainClass.txt CFPT0.jar CFPT/*.class cpl/*.class resources results
    I get a lot of "adding: resources/..."
    including the one pertaining to the files which is later not found
    adding: resources/order.txt(in = 411) (out= 169)(deflated 58%)
    the code that chokes right now is the following,
    Object i = new Object();
    InputStream is = i.getClass().getResourceAsStream("/resources/" + resourceName);
    when I run java -jar CFPT0.jar the program runs
    but it soon gives an error, cannot find resourceName order.txt (is == null)
    I have Core Java Volume 1 page 498 but it does not help me figure out what I am doing wrong.
    Can somone help me build the jar file correctly so the program can find its resources?
    Is this a classpath issue? What do I need to do?

    My last mainClass.txt file content:
    Main-Class: CFPT.CFPTRunner
    Class-Path: ./resources ./results
    I also tried
    Class-Path: resources results
    Initially I only had the first line.
    I put back /resources in the java file as the / is necessary to indicate absolute path.
    Otherwise it looks relative to calling class.
    I tried adding the path on the second line of the manifest file per Wikipedia example
    http://en.wikipedia.org/wiki/Classpath
    I looked at
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
    If you use the -sourcepath option, the compiler searches the indicated path for source files; otherwise the compiler searches the user class path both for class files and source files.
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
    resources
    I took out the -d classes and compiled the .class files right with the java files in case that was the problem
    javac -classpath . CFPT/CFPTRunner.java
    jar cvmf mainClass.txt CFPT0.jar CFPT/*.class cpl/*.class resources results
    java -jar CFPT0.jar
    Still no go

  • How to build a Report/Form sharing the same page and do multiple Updates

    Hi, I´m building and APEX application (V4.2). Customer is demanding a report/form with the ability to do multiples Updates with only one click. For example, they check multiples "check box" for Aprpove and then only one click for  "Apply Changes".
    Thanks in advance,
    Luis E Contreras

    Hi Luis,
    If I understand you correctly you want to check a number of rows for approval and update their status. The jQuery function used looks for checked checkboxes. In your case that will correspond with an update on the IND_PROBACION column. You can simply log the PK column value of each checked row:
    var pkS = $('.uReportStandard input[type=checkbox]:checked').map(
       function() {
       return $(this).parent().parent().find('td[headers="PK"] input').val();
       ).get().join(':');
    $('#P1_PKS').val(pkS);
    You need to replace PK with the actual column name of your primary key column, or rowid for that matter.
    In your submit process you can simply set each IND_PROBACION to your apporval value for each pk stored in the P!_PKS item.
    If you need further assistence, please set up an example on apex.oracle.com
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

Maybe you are looking for