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

Similar Messages

  • How to build a simple app with xcode

    I am new to coding and I could like to know the basics of xcode and how to build a simple app

    Then you're going to need to learn Objective-C, the concepts of object oriented programming, and a whole ton more.  Xcode is just a tool used to write and manage a software project.
    To learn to program, you must first get the compiler which you use to write and test programs.  Thus you need to get a copy of Xcode from Apple's developer site.
              * Find a book on xcode.  Be sure to get a book that covers the current version of xcode.  But before getting far into xcode, you must ...
    Next, you must learn the programming language used to create mac and iOS programs.
              * Read the book "Programming in Objective-C", By Stephen G. Kochan
              * Find a book on xcode.  Be sure to get a book that covers the current version of xcode.
    Next learn about Cocoa, the graphical environment and other support libraries that you need for OSX and iOS.
              * There are many books on this, check ratings and evaluations at Amazon books. 
    Once you have the basics, you really need to learn the technicals of programming, like design patterns, algorithms, data structures, concurrent processes.
              * University or college courses
              * Textbooks used in these courses, if you want to do it on your own.
    Although computer science majors at the college level take 4 years to learn their trade, the first three semesters cover the important basic topics of programming.  If you can take a course in Programming 1 at a local school that will get you started.  You can certainly do it on your own, but programming can be a frustrating trip and working with others is very helpful.

  • How To Build a Simple UIX Search Form

    Hi
    I am starting with ADF BC
    "I tried to run "How To Build a Simple UIX Search Form" sample but the error
    "query not found on action:/dataPage1" Could any one tell me where the problem is?

    I got the error when I press Query submit button, the application is running from page.uix as the sample

  • How to build a simple Editor with GEF 4 MVC

    Hallo,
    I have Experience with GEF 3.x graphical editors, and I would like to make experiments with GEF4 MVC in an Eclipse E4 Application.
    Below there is a schema representing the basic architecture of a GEF 3.x MVC Editor :
    The base Ideas in GEF 3.x are :
    - There is an Editor class containing a Graphical Viewer.
    - There are a Root Edit Part and an Edit Part Factory to initialize the Controllers (EditParts)
    - There are Views (Figures) and Models (POJO), independent each other, and controlled by the Controllers.
    The GEF4 MVC Technology is quite powerful - because one can build Standalone, Eclipse RCP and Web applications.
    Anyway it is not perfectly clear to me - yet , how to implement a Simple GEF4 Editor on E4 Application.
    So, this is what I understood :
    - No more Draw2D in GEF4 - it uses JavaFx Scene and Parent
    - In a Scene graph we can put SWTControls (heavyweight) and Figures (lightweight)
    - a Canvas (heaviweight) will contain the JavaFX Figures and also possibly a CanvasFigure (lightweight)
    So, if I build an Eclipse E4 application with one ViewPart containing a GEF 4 Editor, I suppose the setup of my application will be as follows:
    1. Create An Eclipse E4 Application with JavaFx support
    2. Add a ViewPart that contains a Canvas
    3. Use GEF4 MVC to Create / Edit my MVC tree.
    At this point, it is not very clear to me how to implement the real MVC Architecture in GEF 4.
    I expect GEF4 MVC will work in some way like the GEF 3.x - as visible in the top image - but I'm not clear on that.
    Therefore, these are questions:
    - Is the GEF 4 MVC architecture somewhat equivalent to the GEF 3.x one ?
    - Where I can find details on the MVC implementation of GEF 4 ?
    - Is there any component to provide - out of the box - a Flyout Palette, like it is available in GEF 3.x ?
    Thank you for providing this very powerful library and for spending time on this post.
    By the way, I'm available to contribute the project.
    Kind Regards.
    Patrik

    [quote title=Patrik Suzzi wrote on Tue, 14 July 2015 04:07]Hallo,
    Therefore, these are questions:
    - Is the GEF 4 MVC architecture somewhat equivalent to the GEF 3.x one ?
    - Where I can find details on the MVC implementation of GEF 4 ?
    It is quite comparable in general but has some significant differences in detail. The best entry points for learning about GEF4 MVC is the reference documentation at https://wiki.eclipse.org/GEF/GEF4/MVC. It also provides some information about differences between GEF (MVC) 3.x and GEF4 MVC (last section about migration). The slides provided at http://de.slideshare.net/AlexanderNyssen/gef4-our-mission-to-mars explain some of the concepts (unfortunately the interesting slides concerning MVC seem to have been messed up when uploading the slides; I will try to update them).
    - Is there any component to provide - out of the box - a Flyout Palette, like it is available in GEF 3.x ?
    No, not yet. I was thinking to integrate it into one of our examples after the Mars SR1 release.

  • How can i run simple HelloServlet  ? using tomcat 5.5.16 & jdk1.5.0.6 ?

    Hi
    I have the jdk 1.5.0.6 and tomcat 5.5.16
    on my machine.
    The locations are as follows.
    1) jdk ---> C:\j2sdk1.5.0_06
    2) tomcat ---> C:\prgram files\Apache Software Foundation\Tomcat 5.5
    3) IE 6.0
    4) java class ---> C:\HelloWorld.java
    The Queries i have are as follows.
    1) How to set PATH?
    2) How the set CLASSPATH?
    3)how compile simple HelloServlet ?
    4)how run simple HelloServlet ? using tomcat ..
    please give me details
    shrinath
    Thanks in advance

    Read the Chapter 11 Java Servlet Technology
    Or search the web for servlet tutorial

  • How to build and publish a webservice using Bex query?

    Hi Experts,
        Can anyone tell me how can i step by step to build and publish a webservice using Bex query,
    so another application can call this webservice.
    thanks.

    There i already a web service called query_view_data for the same available as delivered by SAP...

  • How to build a login program by using CGI for built-in webserver of fieldpoint

    hi ,
    I want to build a login program by using CGI . And implement in the built-in webserver of feildpoint.Can any one help me to give ideas ? THANKS

    Hi Barry,
    To set up configuration access to a VI panel image, you will need to set up a global access configuration file (*.cfg). There are numerous CGI shipping examples that are included with the Internet Toolkit. To access these examples, first start your G web server. Then, in a web browser, type in http://localhost (if you are not using port 80, you’ll need to type in a colon followed by the port number in the URL).
    The localhost url above should direct you to the default homepage for the G web server. Make sure the title is “G Web Server” and not “LabVIEW Web Server.” From the G web server page, you’ll see a button to “View CGI Examples” and from there, you’ll see a category titled Access Control. Just so you know, the hard-coded path to this page on your computer is: C:\Program Files\National Instruments\LabVIEW 7.1\www\examples\access.htm. There are then examples on setting up access control for panel images as well as directories. The sample configuration file is: C:\Program Files\National Instruments\LabVIEW 7.1\internet\http\conf\access.cfg
    Hope this helps. Best of luck!

  • 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.

  • Shay Shmeltzer : How To Build a Simple UIX Search Form

    Shay, I need your help here. I need to filter MessageChoice entries by doing setWhereClauseParam on the appropriate VO (The one that acts as a source for the LOV mode for MessageChoice). Say, this VO is in the 'root' level of AM_A.
    Everything from here (all VOs) are in AM_B.
    Say I am on page1.uix which has a readonly table and submit button. Let's say one of the table COLUMNS contains strings that I need to pass to the AM custom method (The one that will set where clause).
    So user selects the ROW and clicks submit. Somehow (how exactly?) string gets passed to data action (that I guess uses custom method, like the one in your example in AM_B). The page forwards to ANOTHER page2.uix. This page is input form with one field as MessageChoice. Now this is IMPORTANT. This message choice has a source driven by the VO that I wanted to set WHERE clause.
    I have been trying to do this for a week, tried all kinds of stuff but am never getting it to work.
    Please help.
    Rade

    ok, a little sample with the HR Schema.
    You are going to display the departments in the first screen, select a department and then use the row that you selected to set the where clause for a new view item that is based on EMP.
    So create a new view (call it queryEmp) that looks like this:
    SELECT Employees.FIRST_NAME,
    Employees.EMPLOYEE_ID,
    Employees.LAST_NAME,
    Employees.DEPARTMENT_ID
    FROM EMPLOYEES Employees
    WHERE DEPARTMENT_ID=:1
    Then add a method to your applciation module as follow:
      public void setMyWhere()
        ViewObject vo = this.findViewObject("queryEmp1");
        ViewObject vo_master = this.findViewObject("DepartmentsView1");
        System.out.println("valus is "+vo_master.getCurrentRow().getAttribute("DepartmentId"));
        vo.setWhereClauseParam(0,vo_master.getCurrentRow().getAttribute("DepartmentId"));
        vo.executeQuery();
      }Then the struts flow is from the first page that just shows the Departments and allows you to choose one (the radio button in the multi-row table does this for you).
    Then add a button that sends you to a dataaction. on this dataaction drag and drop the method you have defined (and made it a client method - setMyWhere)
    Then this method goes to a second UIX that shows the information from the Empquery view.
    Works for me.

  • How to make a simple login page using java creator studio and mysql

    Hi,
    I hav got java creator studio n my sql.Can u give me the code for login page authentication and navigation

    This is a forum about Java language questions, not about how to use a developers tool. I would say to go to the site where you got java creator studio from, and look for a forum there.

  • Building a simple email application using servlet

    i'm having problem with my codes. actually,i'm using james(java apache mail enterprise server) as my transport agent. my problem is linking james with my java compiler(Netbean 4.1).my main class is a servlet class.my application is suppose to receive,delete,forward,compose mail messages. if u have a good experience in this,please could u send a sample code to me so as to know where i'm actually wrong. I need this to see a different view 2 my implementation.
    thanks

    Hi there
    I'm having the same problem. I'm using Netbeans 5.0 with the mobility pack. My version of JDK is 1.5.0_02.
    I include the jxme-cdc.jar file to the project but when I try to run the application I get:
    Error preverifying class net.jxta.id.ID
    java/lang/NoClassDefFoundError: java/io/Serializable
    Have you figured out how to resolve this???

  • How to draw a simple line chart using GRAPH_MATRIX_2D function

    Hello,
    can anyone help me with that function please,
    i couldn't draw a line graph with three data series, i mean with three lines in the graph.
    i want to the chart to be drawn as line graph at the beginning, i shouldn't have to change the chart type later,
    can anybody send me a sample code that does what i want.
    i am expecting your answers,
    thanks.
    Note: all answers will be pointed.

    Hi Ali,
    please refer to my reply [here|Re: drawing 2d line chart problem, urgent please!!!] and skip this thread. This is a copy of the other request.
    Regards
    Matthias

  • How to build templates which i can use in reportgeneration toolkit

    Solved!
    Go to Solution.

    smercurio_fc wrote:
    ... with actual text
    Of course the new thread title is another story.
    LabVIEW Champion . Do more with less code and in less time .

  • How do I autosize columns in Excel using ActiveX in Labview

    I found the ExcelExamples.llb but nothing that describes this. My data is sometimes bigger than the default column width.
    thanks

    How about using a macro to run the column autosize function?
    I cheated, and recorded an autosize operation on a column, and then looked at the vb code behind the macro...
    Columns("D").EntireColumn.AutoFit
    should do the trick.
    In the excelexamples.llb, they seem to use macros to perform other functions, so maybe this is a way to achieve the autosize function that you require.
    Hope this helps...
    JB

  • How to build unsigned iphone application using xcode 4.3.2 and phonegap

    I have builded one simple iphone application using phonegap 1.2.0, xcode 4.3.2 and mac os 10.7.because of i am not in condition to paid $99.and i want to test that application on real devices without apple developer program. so this is possible?if yes,how?

    It is not possible. I'm sorry, but in order to test your self-built applications on any iOS device, you must enroll in the developer program.

Maybe you are looking for