Java in LabVIEW

Hi.....I am writing my thesis on simulation packages and their features.  Could anyone please tell me whether or not Java could be linked with LabVIEW like it could be done in MATLAB?
Thanks

This is somewhat a general question of whether Java code can be called from a C-based environment. LabVIEW supports interfaces to many different programming environments and languages, such as C-style DLLs, .NET, and ActiveX. There are wrapper modules available for accessing Java objects from C. These should be applicable for LabVIEW as well, though they might require compiling the wrapper code into a DLL that can be called from LabVIEW. Look up the JNI (Java Native Interface) for help getting started. I've never done this myself, but everywhere I've read about it says it's far from trivial.It's also possible there are more modern methods of interfacing Java that you might look into instead of C. There might also be wrappers for .NET or ActiveX that could be similarly accessible from LabVIEW.
Message Edited by Jarrod S. on 12-31-2008 08:59 AM
Jarrod S.
National Instruments

Similar Messages

  • Datasocket: link between java and labview

    Hi,
    I would like to link java and labview for a real time animation and i would like to use datasockets.
    Can somebody proficient in using datasockets help me out.
    My email id is [email protected]
    Thank u.
    jagadish.

    The person who wrote the book (literally) on LabVIEW and Java is Jeffrey Travis. His book "Internet Applications in LabVIEW" has examples. His web site is here. You can also get the book on Amazon.

  • Java-UDP-LabView

    I d like to know how to convert types like DBL, SGL, ABC, String of Binaries
    value, data string and Boolean into Java types. Servers in LabView and Clients
    in Java must to communicate and understand the data of each other. Please
    help me I was tourning arround for many time
    Thanks a lot

    > I d like to know how to convert types like DBL, SGL, ABC, String of Binaries
    > value, data string and Boolean into Java types. Servers in LabView and Clients
    > in Java must to communicate and understand the data of each other. Please
    > help me I was tourning arround for many time
    I don't know that much about JAVA numeric types, but I'd be very
    surprised if they are different from the LV ones. The CIN reference
    manual goes into lots of detail about the data types.
    Assuming from this messages subject, I assume that you will be
    using UDP or TCP. This means that the binary data will be
    flattened to a string. When you do this, LV automatically places
    everything in big endian byte ordering. I don't know what JAVA
    expects. There are icons in LV to swap the bytes to li
    ttle
    endian, but it takes a little bit of work. I'm sure you can
    also do this in JAVA. Strings, when flattened will have the
    length placed in front of the string data, and will not be NULL
    terminated. Arrays, similarly, will have the number of elements
    written in front for each dimension, then the data in flattened
    form.
    Greg McKaskle

  • Using Labview with Java Applets

    I want to use LabView instruments in my Java Applets. Is it possible to call virtual instruments from applets?

    Gaurav,
    Yes, it is possible, but it might be easier if you use Remote Panel (LabVIEW 6.1) or an ActiveX component (Application Builder). To have Java and LabVIEW communicate with your applet, I can only suggest using the Application Builder to build your VIs into a DLL and then use the JNI to talk to this DLL. This may work fine outside of a browser, but I don't know if it will work inside a browser or not because each user will need the DLL. The best way to do it would be to have the Applet redirect the user to a Remote Panel web page where they can control the VI from there.
    For more information on Java and NI Products, see the link.
    Randy Hoskin
    Applica
    tions Engineer
    National Instruments
    http://www.ni.com/ask

  • C/C++/Java/LabView/SCADA Software Engineer, Hertfordshire, England, UK, £20-30k+

    My client is a leading small but growing specialist technology company based in Hertfordshire urgently seeking a Software Engineer.
    In order to apply for this position, you MUST be eligible to work in the EU or UK and have ALL of the following:
    1. At LEAST 1 year’s recent commercial experience as a Software Engineer programming in one of the following languages: C++, Java, C, LabView
    2. Solid commercial experience and understanding of the full software lifecycle
    3. 1+ recent years recent commercial experience of working on large scale applications and appreciation of how to design and build an extensible, maintainable software architecture
    4. Strong commercial experience with quality control methods
    5. Solid understanding of good programming practice
    6. LabView familiarity would be extremely advantageous
    XML, experience of databases or SCADA systems would be desirable. 
    The successful candidate can look forward to a competitive salary dependent upon experience. To discuss further, please send me a message or an email.

    Dear Sir/Madam
    I am Vivek Gupta and I have done B-tech in Electrical Engineering from one of the reputed institutes of India - M.M.E.C, Mullana in 2004. I have been working with Trident Techlabs Pvt Limited. as a Sr. Design Engineer(Power Automation) . Presently I am working on  ENERGY MANAGEMENT SYSTEM. I have total two years of experience in SCADA field.
    Please give a look at my attached resume and please consider it if there are any opportunities.
    Looking forward to hear from you soon.
    Thanking you in anticipation.
    Regards,
    vivek Gupta
    +919811897922
    Key Skills:- 2 years exp in SCADA(Power System Automatation) using NI labview ,DSC and Citadel database
    Message Edited by R&D on 08-20-2006 11:32 PM
    Attachments:
    Vivek_Gupta.doc ‏46 KB

  • Info. on commands for Java to control Labview over the internet

    To whom this concerns
    I just finished putting together a weather station program in labview and are ready to place the VI on the internet.
    The plan is to use Java to accomplish the task.
    My problem is that I haven't found an intuitive source that shows the proper commands or protocol to interface (create datasocket) between Java and Labview.
    Can anyone please advice me on a book or website that gives a clear conscise description on key commands, executables.
    Regards
    Saul Correa

    hi,Read text
    i had seen your problem today, and i am taking part in research about internet application in labview, but i have anything useful information, so, please help me send me a copy book, i want to read about it in my spare time, thanks a lot!
    this is my e-mail address:
    [email protected]

  • LabView, TestStand - Associate Test Engineers - Salt Lake City, UT

    Associate Engineer, Software Test - 
    Requisition ID
     004700
    USA-Utah-Salt Lake City   
    Description
    We are seeking a Software Engineer to create automated tests for communications and networking hardware in a challenging, fast-paced environment. The Associate Software Test Engineer will write test automation software for communication and networking systems and components, write test plans, test descriptions, and test reports. The successful candidate will also work with design engineers, other test engineers, software and hardware engineers to debug problems. This person may also be called on to attend and/or conduct peer reviews.
    Due to the nature of our work this position requires the ability to obtain and maintain a Department of Defense security clearance. You must work well in a team environment and be willing to work extended and odd shifts, as well as travel in support of customer requirements.
    Qualifications
    BSCS /BSCE degree or a degree in a closely related field
    Software development or testing, and object oriented design/programming is desired.
    Must be self motivated and work for extended periods of time without direct supervision.
    Must be able and willing to work on and with teams
    Desired skills include: Java, NI LabView, NI Test Stand, Rational tools, UML, Test tools, CMM/SEI level 3, experience writing automated test scripts, embedded HW systems, networking and HW test equipment.
    This position may be filled at a higher grade based on the successful applicants skills, education and experience.
    We are proud to be an EEO/AA employer M/F/D/V. We maintain a drug-free workplace and perform pre-employment substance abuse and background check testing.
    US Security Clearance Required
    :  None
    Schedule
    :  Full-time
    Shift
    :  Day - 1st
    Travel
    :  Yes, 25% of the time
    Organization
    :  Communications Systems-West

    Due to the nature of our work this position requires the ability to obtain and maintain a Department of Defense security clearance.
    US Security Clearance Required
    :  None
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

  • How to Communicate with Programs running on AIX server Using LabVIEW.

    We have an IBM AIX server on which some programs are running  which basically perform some scientific calculations. I am required to send the inputs to the calculation from a VI on windows system and get back the results  on the VI.  I do not have any idea on how to do this.
    But i heard that there is a tool ( not developed in LabVIEW) developed by my customer which can communicate with the AIX server thro Java Classes.
    So i tried exploring APPLETVIEW which supports java and LabVIEW but i am confused.
    Is there any way to achive this interfacing between AIX and LABVIEW?.
    Thanks  
    Vilas G

    Hi Vilas,
    How you may communicate with you AIX server may very greatly depending on what is running on your server.  Here is a link to another thread where Java calls and AppletView were discussed.  It contains a link to the company that makes AppletView, so it may have some good information for you. 
    Also, if your customer suggested you use AppletView and they developed it, they would probably be your best bet for explaining it to you.
    Hope this helps!
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • How to Read the Image in SQL server

    I want to read the image from SQL server using labview.In our project languages used are JAVA and Labview
    Through java we acquiring the image and write in to SQL Server.
    Through Labview I want to read the image form SQL server and i will do some image processing for my application.
    My problem when I seen the database the images shown like hex decimal value.
    I want to convert the hexadecimal value to image or any other functions is there to directly read the image from SQL server.
    Can anybody help me....

    two options:
    1. save the image data itself (as a blob)
    2. save the image in a file system and save the file name in the DB

  • The Newest CLD is ...

    ME! 
    I haven't even seen the official piece of paper as I was at the hospital all day with my daughter (a co-worker knew I was waiting anxiously for the results and opened them upon my request) on my second try (first was a 70%) I passed ... with a 75%!  I don't care about the grade, I'll take it!  Actually, after asking for some clarifications on the first try grading, the 70% is a really stellar grade for someone that started teaching themselves LabVIEW last September (10 months ago) from the course manuals and never took the CLD prep course and only spends, oh, 10% of her time on LabVIEW.    
    I work for an NI Alliance member company, my main motivating factor for taking the exam.  Maybe someday I'll think about writing a LV app on the side, but right now life is way too busy anyway.
    Certified LabVIEW Developer
    NI-VLM Administrator

    A little of everything software.  I consider myself a C++ engineer, but lately I've been doing database design work, PHP, Java, Lua, LabVIEW, NI-VLM administration, other license administration, sit on a few committees at work, on the LXI commitee (though my sub-committee has been inactive for a while).  I also do C#, VB, perl, oh heck, if it's out there and it's connected to a keyboard I've probably worked on it ... I also do existing driver support, assist our front line technical specialists, firmware, etc.
    I've been a professional software engineer for 15 years.  I used to work at Microsoft, Lexmark and Diebold.   My user name is derived from my real name, thus it's not much of a secret (from http://www.ni.com/services/certified_labview_associate_developers.htm) that I work for Keithley Instruments now.
    Certified LabVIEW Developer
    NI-VLM Administrator

  • Importing data in obscure binary format into diadem

    Hi all,
    Lets assume that I have some data in a binary format which DIAdem can not automatically import into the data portal. One method I am aware of and used is to create a dataplugin in vbs which will then allow me to import this data. Recently I came across something called the "TDM header writer" which gives me the impression that it is capable of creating a header file for my binary data and as a result will be able to import this data into DIAdem without creating a dataplugin. Is this actually the case? If the answer is yes which method is actually easiest to use dataplugin or TDM header writer?
    Thanks for reading and your assistance in advance.
    Matthew

    Hi,
    your impression is correct. With the TDM Header Writer you can write a TDM header file for your binary data, so it can be imported in DIAdem as TDM file.
    However, you will need to create a TDM Header for each of your binary files. There are several ways to use the TDM Header Writer:
    - C API
    - JAVA API
    - LabVIEW VIs
    But please let me ask, if you are not satisfied with the DataPlugin you created. It should enable you to read all of your binary files without any extra work. You can export DataPlugins and distribute them. So once created, it should feel like a native file format for DIAdem.
    For an overview of DataPlugins provided by National Instruments, please have a look here:
    DataPlugins

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Help with LabView and Java

    Hi any help would be greatly appreciated: I have the following JAVA code:
    //File: Hello.java
    class Hello {
     public native void Steve();
     static {
      System.loadLibrary("steve");
     public static void main(String[] args) {
      Hello h = new Hello();
      h.Steve();
    It finds the loadLibrary fine, but I get the following error message:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Steve
    at Hello.Steve(Native Method)
    at Hello.main(Hello.java:10)

    Okay......
    Where does Labview fit into this question?

  • I got a java excutable file and document from the instrument supplier I want to use it in labview , I want to Know how to do it , step by step

    I got a java excutable file and document from the instrument supplier I want to use it in labview , I want to Know how to do it , step by step
    Attachments:
    this is a java file changr the jpg to jar .jpg ‏101 KB

    I'd recommend searching the forums to find your answer.  http://forums.ni.com/ni/search?submitted=true&q=java+labview

  • Create Dynamic Variable in LabView (Newbie Java Developer)

    Guys,
    This is my issue, I am a java & c++ developer and was interested in learning about LabView. But as simple as stated by the NI website it's not as trivial as I would expect it to be maybe because of my though process. So what I'm trying to obtain a simple sample to get me started with my LabView.
    Example in Java lets say I prompt a user to enter a value the user enters the [value=20] & I would be able to create [value=20 new Objects] or what ever value the user enters. In LabView things doesn't seem to work that way. So I was hoping someone coulde provide a simple non trivial example so I can better understand how to apply this.
    Thanks for you feedback
    Solved!
    Go to Solution.

    Hi *E*
    I come from a Java background too so might be able to help. I've found that LabVIEW is less demanding upon the programmer to necessarily specify the capacity or number of variables being created during development and does a little more intuitively in the background. 
    What data types are you interested in specifically? From your post I'd be tempted to use an 'Initialize Array' subVI and simply wire the user's input to the dimension size input.
    In LabVIEW it's considered good practice to use wires in place of variables wherever possible because they emphasize the flow of data through the program.
    Does this help a little?
    Chris | Applications Engineer NIUK
    Attachments:
    PromptElements.vi ‏42 KB

Maybe you are looking for