What type of component do Labview developers prefer? COM/ActiveX, C++ DLL, C DLL?

The last time I used Labview was about 5 years ago and I have not kept
up with the changes.
I assume Labview can use COM components, ActiveX (COM with a GUI), C
DLL's, and possibly C++ DLLs. Of these types, which do Labview users
prefer?
Background
I need to develop a component that can be used by both VB and Labview
users.

Ed,
LaBVIEW can use COM/ActiveX components, C dll's and C++ dll provided that the c++ dll has direct function calls(you can always use a wrapper dll to call functions inside a class)
As far as what labVIEW users prefer, this is kind of a difficult question to answer since it is mostly dependant on the users knowledge of each of those components.here are a few links that may interests you.
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/5401be584fbaeece862567c2006d36c7?OpenDocument
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/7f41004ee990d4da86256a9d0064d522?OpenDocument
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/3a1f4b7cbc68b636862567cc004d5cca?OpenDocument
and more gener
ally
http://zone.ni.com/devzone/devzone.nsf/webcategories/4161F118BF99CCE686256AB7006A68EB?opendocument&node=DZ53001_US
Regards,
Cyril Bouton
Applications Engineer
National Instruments
Cyril Bouton
Active LabVIEW Developper

Similar Messages

  • What type of Component is this? ( picture included )

    In the following screen shot, i have circled a peice of a GUI in orange, in hoping that someone would know what type of component it is.
    Here is the picture:
    http://img67.imageshack.us/img67/9486/skeletonpro1fl.png
    If you know what the name of that is, please post the name up on here or give a link to it. Thanks

    In java, that would be constructed using a JLabel and a JSeparator.
    At least, that's how I would do it.

  • What type of component should I derive from?

    Hi,
    I am developing a UI component, which accepts an array from a bean. I will use the data to draw several curves on a page. So I derived my UI component from UIOut.
    JSP likes this:
    <w:multiline width="400" height="300" title="Simulation Results"
         xlabel="Years" ylabel="Results" value="#{esriWolDSS.output}" />
    where, esriWolDSS is a bean, and .output is an ArrayList holding data.
    It seems that attribute like width, height are designed by developer, and value is default as well as binding.
    In bean,
    ArrayList outputAL = null;
    outputAL = (ArrayList) getValue();
    Map sessionMap =
    getFacesContext().getExternalContext().getSessionMap();
    sessionMap.put(getClientId(context), outputAL );
    the data is saved in session and retrieved by a servlet. I just followed the mechanism which is used in JSF Demo (chart demo).
    But I got error:
    javax.faces.el.EvaluationException: com.sun.faces.el.impl.ElException: Attempt to coerce a value of type "java.util.ArrayList" to Boolean
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:188)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
         at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
         at wol.compts.MultilineComponent.placeChartDataInScope(MultilineComponent.java:260)
         at wol.compts.MultilineComponent.encodeEnd(MultilineComponent.java:170)
    MultilineComponent is my UI component.
    So what is wrong here?
    Thanks,
    Guangming

    So, somewhere in your bean you should have a
    "getOutput" method - to correspond with your
    value binding expression in the page:
    #{esriWolDSS.output}
    It would be helpful to see the contents of this method
    in the bean.
    -rogerI do have corresponding methods like:
    ArrayList output;
    //output
    public void setOutput (ArrayList al)     { this.output = al;  }
    public ArrayList getOutput()          { return this.output; } in the bean;
    In JSP, I have:
    <w:multiline width="400" height="300" title="Simulation Results"
    xlabel="Years" ylabel="Results"
    value="#{!sessionScope['mapContext'].attributes['esriWolDSS'].output}" />.
    My bean esriWolDSS is stored in session.
    The output, an arrayList, is initiated and updated in the bean. I am trying to pass it to the Component by value of multiline.
    The UIOutput component (Multiline) actually call a servlet to draw the lines in an image and pass the image to a browser.
    In the component, I have:
    public void encodeEnd(FacesContext context) throws IOException {
    placeChartDataInScope(context);
    // render an image that would initiate a request to a URL pointing
    // back into the webapp passing in whatever parameters are needed to
    // create the dynamic image.
    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("img", this);
    writeIdAttributeIfNecessary(context, writer, this);
    writer.writeAttribute("src", src(context, this), "value");
    writer.endElement("img");
    The function placeChartDataInScope(context) is like this:
    protected void placeChartDataInScope(FacesContext context) {
    int i = 0;
    ArrayList outputAL = null;
         // only an arraylist allowed: several sets of year-value data: yr, pop, hh, fw
    outputAL = (ArrayList) getValue();
    // store the chart data against the clientId in session.
    Map sessionMap =
    getFacesContext().getExternalContext().getSessionMap();
    sessionMap.put(getClientId(context), outputAL );
    I am calling the method getValue() to get the output and put it in a seesion, from which the servelet will retrieve later.
    the code in the doGet() in the servelet is like this:
    // get an array of chart items containing our data..
    HttpSession session = request.getSession(true);
         ArrayList outputAL = (ArrayList)session.getAttribute(id);
         //draw some in graph area or ...
         if (outputAL == null) {
    System.out.println("No data items specified...");
         //throw new ServletException("No data items specified...");
    // remove the chart data from session now that chart has been rendered.
    session.removeAttribute(id);
    I think the key questions here are:
    Can I use function getValue() in UIOutput to get a value like ArrayList rather than string?
    Can I stored such data in a session?
    Can a Servelet retrieve such data in a session?
    Hopefully i have enough information here,
    Thanks,
    guangming

  • What type of warranty does a laptop computer come with at best buy

    My computer crashed few months into buy

    They normally come with a 1 year warranty but however they only cover normal hardware failures. Meaning if it is physically damaged, viruses/software only they will not cover those types of repairs. For example if it is a bad hard drive that is causing the unit not to load windows or run properly that would be covered. Your best bet is if you can back up your data and bring it to your local Geek Squad along with the proof of purchase if you did not purchase any optional coverage.

  • What Type of Case Does the Video iPod Come With?

    Do I need to buy another one? Or is the one it comes with fine?

    I just bought a ipod video, comes with a leather case and you can't play it while in the case, its alright but I'm not using it. I got a skin, which i find is much more easier and I like it better.

  • XI 3.0 and BW 3.5 system type/logical component in Solution Manager

    We are in the process of performing an upgrade for ERP 2004, XI 3.0 and BW 3.5. Initially this is being done in the sandpits. All systems are configured and connected our Solution Manager to download the packages.
    We are unable to determine what type of system the XI 3.0 and BW 3.5 should be configured under. For example, previously we had an issue where ERP was configured as ECC 5.0 rather than ERP 2004. This was causing an issue in MOPZ where the upgrade option wasn't visible in a maintenance transaction. The same issue is now happening for XI and BW.
    Please advise on the system type (logical component to use) for XI 3.0 and BW 3.5 in Solution Manager as SAP have made it very confusing. Currently both are under type Netweaver 04.
    Regards,
    -Rohan

    Hi
    I believe that SAP hasn't upgrade option for BW 3.5, Check link:
    https://service.sap.com/solman-mopz
    Upgrade
    a "straight" upgrade for SAP Business Suite (upgrade from SAP ERP 2004 to SAP ERP 6.0, for example) is not supported by Maintenance Optimizer
    Upgrade with an Installation of an Enhancement Package is supported for SAP ERP, SAP SCM, SAP SRM and SAP CRM
    Regards
    William Neira

  • Add new type of component

    I want the user to be able to select which type of component gets added to each new tab in a JTabbedPane
    for example, if the user opted to have a JTextArea in each new Tab
    we could use
    tabbedPane.add("new Tab", new JTextArea());
    //But what if the user doesnt want a JTextArea they actually want a JButton, so this doesnt work
    //or
    JComponent newTabComponent = new JTextArea();
    tabbedPane.add("new Tab",newTabComponent);
    //this doesnt work as all swing components can only be child to one parent, so the op wont be able to add more than one tabany ideas how to implement this feature , thanks in advance
    Calypso

    found out how to do it, heres an example
                JComponent c;
                    try {
                        c = tabbedPane.getNewTabComponent().getClass().newInstance();
                        c.setPreferredSize(tabbedPane.getPreferredSize());
                        tabbedPane.add(c);
                    } catch (InstantiationException ex) {
                        System.err.println("IE "+ex);
                    } catch (IllegalAccessException ex) {
                        System.err.println("IAE "+ex);
                    } catch (NullPointerException ex){
                        System.err.println("NPE "+ex);
                    }  

  • I am looking for what type/setup of Read/Write command in RSLogix 5000 to be used with the NI Ethernet I/P Driver

    I am working on trying to get LabView to communicate with an Allen-Bradley Compact Logix PLC using the NI Ethernet I/P driver.  I am currently getting errors on both system of a CIP Message instruction error and cannot determine if the problem is in the PLC or the NI.  At this time we are leaning toward the PLC, thus I was wondering if anyone new what type/setup of message read and write to utilize.

    Hello jabcae,
    Thank you very much for posting your questions.
    I recommend posting to the PLC Manufacture’s forums.  They will be able to provide more insight on the PLC code.
    I also recommend posting this question to the Industrial Communications forum:
    http://forums.ni.com/t5/Industrial-Communications/bd-p/260
    That forum is monitored by the developer’s of the EtherNet I/P Toolkit. They will be able to assist with the LabVIEW programming.
    Regards,
    Thomas C.
    Applications Engineer
    National Instruments

  • What type of Data target is used when the safety interval is used?

    Hi ,
    what type of Data target is used when the safety interval is used in generic delta in datasource?DSO or cube  or cube?
    Pls explain me ?
    Thanks,
    Nimai

    It's up to your reporting requirement to go for dso or cube..
    I prefer to having staging with DSO and then further reporting on Cube ..
    It's always easier to manage when you have any changes to the cube .. you need not to extract data from R/3 .. if you have dso you can extract directly to cube
    Another thing is -for any reason some of your records got corrupted so you can have full loads to dso which has the overwrite functionality...  and sends delta records to cube. even in cube you can do selective deletion but we have to very careful to avoid double records in next loads
    Edited by: Srinivas on Jul 29, 2010 8:23 PM

  • How can I pass a file refnum into and out of external c++ code? What type does it convert to in c++?

    I am trying to write external c++ code that will read a file already opened by Labview and therefore assigned a refnum. (Unfortunately, I definately can't use the standard Labview vis.) However I am not sure what c++ type to use in order to manage the refnum.
    All help and thoughts appreciated. Thanks,
    Joanna

    You could do ALL your file handling in C or C++ (MFC CFile for
    example) and pass Microsoft file handles into and out of LabVIEW
    instead of LabVIEW file references into and out of C. This may be an
    easier way to attack the problem.
    You could create a DLL in MSVC that exports a FileOpen function, a
    FileClose function and a FileRead and/or FileWrite Function and then
    call that DLL from place to place as required in your code.
    It would help us if you would explain what kind of data you are trying
    to read or write and what the application is. Is it binary data?
    text files? Do you need some special Win32 file system feature like
    file mapped memory? I guess what I am asking is what is your
    motivation for doing file handling in C or C++?
    Douglas De Clue
    LabVIEW developer
    [email protected]
    "Rolf" wrote in message news:...
    > A LabVIEW file refnum is an internal Magic Cookie to LabVIEW and there is no
    > way to directly extract the actual information assigned to that Magic
    > Cookie.
    > However the CIN Reference Manual describes one function which allows to
    > retrieve a lower level "File" handle and at least on Windows 32 bit and
    > LabVIEW
    > from version 5 up to and including 6.1 this "File" LabVIEW datatype directly
    > maps
    > to the Win32 API "FILE" Handle.
    >
    > The function to use is
    >
    > MgErr FRefNumToFD(LVRefNum refNum, File *fdp);
    >
    > It is declared in extcode.h or one of its dependant headers and exported
    > from "labview.lib"
    > all located in the cintools directory and you can link this lib also to a
    > normal DLL project.
    > However calling this DLL then from any other process than LabVIEW or a
    > LabVIEW
    > executable will not initialize the DLL anymore correctly.
    >
    > Your best option if you need to write in C(++) should be to use the LabVIEW
    > file manager
    > functions described on the External Code Manual (manual/lvexcode.pdf) on
    > this File handle.
    > If you need to use directly some Win32 API functions with it please note
    > that although currently
    > the "File" in the LabVIEW file manager functions matches the FILE in Windows
    > 32 bit API
    > functions this is an undocumented and hence unsupported feature. The next
    > LabVIEW version
    > may actually use a different datatype for its "File" parameter to the
    > LabVIEW file manager calls
    > and your use of assuming File == FILE may simply crash.
    >
    > Also operating on a file refnum in LabVIEW which has been accessed directly
    > with Win API
    > functions may result in strange behaviour such as the file read/write mark
    > not being updated as
    > you would maybe expect it.
    >
    > "Jo" wrote in message
    > news:50650000000800000016520000-1023576873000@exch​ange.ni.com...
    > > How can I pass a file refnum into and out of external c++ code? What
    > > type does it convert to in c++?
    > >
    > > I am trying to write external c++ code that will read a file already
    > > opened by Labview and therefore assigned a refnum. (Unfortunately, I
    > > definately can't use the standard Labview vis.) However I am not sure
    > > what c++ type to use in order to manage the refnum.
    > > All help and thoughts appreciated. Thanks,
    > > Joanna

  • What is cross-component

    hi all,
    1.what is cross-component and business process management?
    2.why bpm's

    Hi   srinivas ,
              For all ur question the following liks will give you answer 
    CCBPM Intruduction
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
    BPM
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    check list for BPM https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-8569d193124e
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping - File to Multiple IDocs
    BPM BLOGS
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/40
    For BPMs check these weblogs:
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    /people/ravikumar.allampallam/blog/2005/02/17/bridging-the-sync-async-bridge-with-fork-xi
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/daniel.graversen/blog/2006/09/07/using-a-bpm-to-collect-messages-for-a-set-interval-of-time
    Best Regards .,
    V.Rangarajan

  • What type of Mac do I need please?

    Hi ,
    I would like some advice on the type of Mac and Spec I need please for my business. I am unsure about whether I should get a macbook pro, imac or desktop mac pro. Most computer jargon goes straight over my head so please if you answer use small non technical words!!!
    This is what I need the computer for:
    1. Top quality Video Editing - Final Cut Pro. I will be using the computer for a lot of Video Editing. I need a computer that is capable of rendering video at fast speeds without compromising the performance too much.
    2. Multi-tasking - I want to be able to be working on photoshop, whilst encoding or compressing video, downloading something from the web and running a few programmes at the same time such as InDesign etc
    3. Disk Space - I will have a lot of video content (raw footage and edited that I need to store) but having said that, I'm guessing a slight upgrade to a 2TB hard drive would do.
    4. My business works with the latest Online Games such as World of Warcraft and so the Graphics Cards / Memory / Processor Speeds needs to be able to run these online MMORPGs at the optimal speeds, frame rates etc
    That is pretty much it. I am unsure about what type of Mac computer to get. My budget is tops £5k including VAT but I'd prefer not to spend that if I don't need to.....I just want a computer (27 inch screen) that can do all the above comfortably.
    Thanks very much for any help that is offered, much appreciated,

    MHz and GHz matter.
    Also, dual processor has overhead.
    6-core single processor is the equal or better and optimized even to an 8-core (which would be 2.93GHz and BTO$)
    Blame Apple for "hiding" the 6-core.
    Poor web site design: have a page for single processor configurations, not "Quad-core models" where there is BTO 3.33GHz for $1200 extra. Buy your own 2.8 and buy W3680 $600, then sell the 2.8, and you walk away with $900 saved.
    Buy the Special (not avail in UK) 2.8 for US$2119 and upgrade processor in under hour.
    Refurbished Mac Pro 2.8GHz Quad-Core Intel Xeon - Apple Store (U.S.)
    Offer a dual processor 12-core @ 3.33GHz for the high end most demanding (and US$7.5K or more?)
    That is what MPG and OWC Mac Pro Turnkey Program can do. And MPG does sell custom configs configured and tested.
    I would never recommend 8-core at this point. You spend $6200 for 2.93GHz x 8, ($2500 more than 6-core and still 400MHz slower per core);  2.4GHz is a joke, and even the 2.66 US$5000 is not even close! Nope.
    Build a workstation, that's another matter and gets interesting if your primary apps and OS run on Windows.

  • What type of Driver?(type1 or 2 or 3  or 4) and then why

    Hi Every one,
    Can u say what type of driver used in this program, and then tell why?.
    try{
    String userName = "user1";
              String password = "pwd";
              String url = "jdbc:mysql://localhost/test";
              Class.forName ("com.mysql.jdbc.Driver").newInstance ();
              Connection conn = DriverManager.getConnection (url, userName, password);
              System.out.println("Database connection established");     
    catch(Exception e){
    System.out.println(e);
    Kindly Reply
    Advance Thanks...

    Thanks.....
    Could you give example for type3 driversI have only ever seen one post about a type 3 driver on this forum.
    You can search here for a type 3 driver if you just want a name....
    http://developers.sun.com/product/jdbc/drivers

  • What type of hard disk should I use if I want to use it on mac and windows?

    Hey Forum,
    I am using windows xp on my macbook (snow leopard). I came across some dealers who say that there are hard disks for mac only and for both mac and windows. So, I wanted to buy a hard disk so that I can use it both on mac and windows xp, so what type of hard disk should I use? Must I partition into 2?
    or are there any harddisk in the market which is compatible for both mac and windows xp without screwing up the format(NTFS/Mac OS X Journaled)? Pls look into this matter and help me with it.
    All of your replies and suggestions is much appreciated.
    Thank you.
    Ala.

    Run, don't walk, from that dealer! and never look back
    Once in a very long while Apple will have customized firmware on drives, and it is possible to find SCSI/SAS or drives that are destined to be used with high end storage controllers.
    But that is the exception that makes the rule.
    SATA is SATA. Though.... there are now SATA III drives that don't work in XP, or that need a jumper, and Seagate and some drives have managed to deliver firmware that has caused trouble... and Apple has had to issue firmware updates to help compatibility....

  • What type of cable do I need to connect my mac to the TV.

    I have a Dynex tv and a newish 15 inch Macbook Pro. I also already have an HDMI cable that fits into the TV so I just need to know what to get to connect the HDMI cable to the macbook.

    You would  connect the MacBook using a Mini DisplayPort to HDMI adapter. Here's the various types of Mini DisplayPort adapters on Amazon.com http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=min i-dvi&x=9&y=13#/ref=nb_sb_ss_sc_2_16?url=search-alias%3Daps&field-keywords=mini+ displayport&sprefix=mini+displayport&rh=i%3Aaps%2Ck%3Amini+displayport
    If it's a post 2010 MacBook Pro it will carry audio through the Mini DisplayPort to HDMI adapter. If it's an earlier than Mid 2010 MacBook pro then it can't send audio through the adapter.

Maybe you are looking for

  • A better way to do this ?

    where does the sql stuff excute in the following stored procedure, directly in the database or it goes through the oracle VM first ? CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "CustomExport" AS import javax.sql.Connection; import oracle.jdbc.Ora

  • Hide the focus indicator?

    Is there any way I can hide the focus indicator for everything in my document? Thank you for your help, Shane

  • Exporting out of GB to iTunes

    I am exporting a song out of GB to iTunes. When I go to the iTunes folder to retrieve the aiff file it's there but as a Reason aiff file. Why is it not an GB aiff file?

  • Adobe Flash CS6: Import Font "Gulim"

    Hi there, I am an absolute beginner with Adobe Flash CS6. Managed to work with it so far but I would really need to use the Korean Font "Gulim" witihin the software. Couldn't find anything to this topic neither in the community nor on the internet, w

  • AUTO RESOLVE FUNCTION ISSUE REVISITED

    Thanks guys for your responses to my auto resolve question. Sorry, I think I gave you some wrong information. I used the Canon EOS Utility software to download my images directly from my camera. It automatically created a Destination Folder to Pictur