Linking labview with C++

Dear all,
I am writing a program about controlling labview by C++ using
OLE. However, i found that when the virtural instrument made of subvi.
i can just control the subvi variables but not the main highest vi. Is it
the problem of linking path to vi? Thanks you
Best regards,
matthew
Click here for Free Video!!
http://www.gohip.com/freevideo/

Hello there,
If you are using the LabVIEW Real-time module, then the real-time portion of your code will run on a separate system running a Non-Windows Based Real-time Operating System. Obviously, the Visual C++ code cannot be run on that system.
What you can do, however, is create a LabVIEW VI that runs on a Windows host PC and interfaces with Visual C++. Then, this host VI can communicate parameters to the Real-time system. These can be the parameters that were generated by your Visual C++ code.
If you are not using the LabVIEW Real-time module, the problem becomes simpler. You will just need to build your Visual C++ code into a .dll that can then be called from LabVIEW. A tutorial to do so can be found here. After that, you would use the "call library" function to make calls to the .dll. There is a great example that ships with LabVIEW 7.X called "call DLL.vi". This example is a comprehensive look at calling .dll files from LabVIEW, and it think that it will point you in the right direction.
I hope that this helps.
Regards,
P.J.
National Instruments

Similar Messages

  • Link labview with other software which can do hydraulic simulation such as Nanas Fluent.

       Hi all:
              I currently want to exchange data between labview with Ansys fluent. That is: sending flow boundary condition and initial condition from labview to hydraulic simulation software (ansys fluent), and get simulation result back to labview from that software.
             I didn't find any modules online to link labview and fluent together. (There are others such as Labview Solidworks module)
             Is any one know how to link labview to any software which can do hydraulic simulation?
             Thank you very much. :-)
      -Bowen

    Do you know of any other programs that exchange data with Ansys?  If so how do they do it?  ActiveX is a common way for communicating between LabVIEW and other programs, is this an option?
    Justin Parker
    National Instruments
    Product Support Engineer

  • How to use labview with the handyboard

    Hi,
    how to use labview with the handyboard
    Thx...

    I'm assuming you're talking about this, since you didn't provide a link for those of us who don't know what you're talking about.
    As the other poster said, you didn't say how you want to use LabVIEW with it.  If you want to write LabVIEW programs than run on the microprocessor, then you're out of luck.  If you want LabVIEW to interact with it, then you've got a couple of options, SPI probably being the best, but it also has DI and AI that you could use to communicate with it - the DI's could be used as a parallel interface.
    Message Edited by Matthew Kelton on 12-17-2007 02:21 PM

  • Interface Labview with custom board

    Hello, I want to use Labview with a board I designed. To be brief my board has an Altera FPGA, some memory, and a fiber-optic transceiver. I want to develop a Labview program to display the data I'm receiving from my fiber-optic transceiver. I want to know if this is possible to have Labview interface with a non-National Instruments board? What do I need in order for Labview to work with my board. In my previous design I had the received data written directly to the computer's main memory. Could I do something like that, just tell Labview where in memory to get the data to be displayed?
    thanks,
    joe

    Absolutely. I'm doing that right now with VISA. Look at the posting here. There are some links there in how to procede.

  • How can I connect LabView with a PLC S7-300?

    I want to use LabView with a PLC S7-300. I think I can use a PC card or RS 232 with a HMI interface.What is the difference? I think I need an OPC server (I don´t know who sell it, National Instruments or Siemens) and I don´t know if I need anything else than LabView6i.
    Thank you.

    Alicia,
    Ben's answer is absolutely correct. "Profibus" is the key word here, and a search of "profibus" from ni.com will provide quite a bit of information. I went ahead and pulled out the main items below. Follow the link below for product catalog info on the plug-in cards and interface software (the OPC Server) required.
    http://sine.ni.com/apps/we/nioc.vp?lang=US&pc=bymn&cid=1315
    For a step-by-step configuration tutorial, please follow this link:
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&BA7CB7B0FFBEA12286256A32005B2BEA&cat=103057DD6D5AE678862568630016C98C
    And finally, for examples on how to communicate with this OPC Server, or any other OPC Server for that matter, LabVIEW has some shipping examples. From LabVIEW, goto "Help >
    > Communication >> Datasocket OPC". A good one here is the "Demo OPC Client" program, which uses a software OPC Demo Server that installs with LabVIEW. You could pull that open and work with the LabVIEW programming now before you even have the hardware.
    Regards,
    Greg Caesar
    National Instruments,
    Applications Engineer

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • HT5624 my iphone is connected to a old account that i have used in a while i have a new icloud i tried reseting my phone but now i can get in becuase it linked in with my old account how can i fix this so i can log in with my new account?

    my iphone is connected to a old account that i have used in a while i have a new icloud i tried reseting my phone but now i can get in becuase it linked in with my old account how can i fix this so i can log in with my new account i reset my phone but i did it before on my new phone but this old is link to a account that i set up when i was so much younger can you advise what to do?
    Thanks

    Go into Settings App and turn OFF Find My iPhone. It will ask for your old password, but in the future you can use your new Apple ID account. If you need to reset the old password try this: https://iforgot.apple.com/password/verify/appleid?language=US-EN&returnURL=https ://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa&app_id=93&app_type=ext

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • Link SAP with Excel

    Hello SAP Gurus-
    Every month we have to download various reports from SAP (ME2J, FS10N, FD10N, FK10N and others) and export it to excel. Than in excel, we have to mannually format the same.
    Is there a way we can link SAP with excel? Like if anyone in my company posts against particular vendor, it will automatically update the excel file that will have report from FK10N (Vendor Balance Display)
    One of my friend at Bloomberg said that their SAP is linked to excel where excel is updated automatic. But I could not get any further details on how it works.
    Please let me know if there is a way we can implement this system in our company.
    Thank You in advance.
    Jai

    Hi,
    You have to direct download it in to the Excel sheet without export to excel file.
    E.g:- If you need to download the balance or any data fron the spreatsdeet amd yu download the file and give the file name as .xls it will download in the excel format.
    May hope this is helpgul
    Regards,
    Kanike

  • How to create a dll in LabVIEW with a 2D array

    I'm attempting to create a dll in LabVIEW with the following parameters from Test DLL.vi:
    Inputs:
    IN1 - Word
    Buffer - 2D array of Unsigned Byte
    Output:
    OUT1 - Unsigned Byte
    The prototype is constructed as follows in the Build Specifications of the Project:
    uint8_t TestDLL(int16_t IN1, TD1Hdl *Buffer)
    The dll builds successfully but when I attempt to use it in another VI (using the Call Library Function block) the prototype appears but it does not look like what was defined from the Build Specifications.  Instead it looks like the following:
    void TestDll(void );
    I attached some screen shots of all the settings as described above.
    Attachments:
    Test DLL Front Panel.JPG ‏85 KB
    DLL Prototype Before.JPG ‏84 KB
    DLL Prototype After.JPG ‏54 KB

    The Test DLL.vi is what I used to create dll prototype with in the Build Specifications in the project.
    Note:  There is no logic implemented yet.
    Attachments:
    Test DLL.vi ‏7 KB

  • Sorting singly linked list with minimum time complexity

    Hi ...
    anyone could tell me how can i sort singly linked list with minimum time complexity .... ????
    Regards...

    By MergeSort or QuickSort O(n log n). But then you
    have to first extract the objects in the list,sort
    them, then rebuild the list. But it will still bealot
    faster than by keeping the list linked.Technically, I believe insertion sort is marginally
    faster for small n ( <20 or so).Woohoo! So for 20 out of the possible 2147483648 array
    sizes Insetion is faster!
    Unfortunately, checking for that case probably wastes
    all the time you get from using the faster sort...
    That would depend on the actual distribution off array sizes. So it's an engineering decision.
    Sylvia.

  • Linked Reports with Web Intelligence Rich Client

    Hi,
    Is it possible to build a linked report with WebI Rich client without using InfoView?
    Assume the following simple report which select some fields of a file transfer information.
    TransferID      Filename   Transfer Status
    1                        a                       OK
    2                        b                       OK
    3                        a                       NOK
    Now I want to click on the record with TransferID 3 and get some more information for that particular record such as:
    TransferID      Filename   Transfer Status  Date  Duration
    3                        a                       NOK         Feb 24      5
    In other words, I'd like to do select of that table with the where condition "TransferID = 3" which corresponds to the record I clicked in my initial report.
    Thanks a lot,
    Kurt

    Hi Kurt
    Have you found any solution for "to link two tables in one WebI report without InfoView".
    I will appreciate if you can share the same.
    Regards
    Naveed

  • Re: Fwd: Link Problems With Borland C++ 4.52

    I have seen this problem before in another context, and I'll offer the
    cause and solution in the hope that they will apply to the Crystal problem.
    Many Windows based applications rely on PASCAL calling conventions, which
    change the way parameters are handled in function/method calls. They
    indicate this by placing one of the following immediately before the
    function name in the prototype declarations:
    - pascal_far (or something like that)
    - WINAPI
    - some other typedef of either of the above
    For example:
    int WINAPI AddTotal(int valueA, int valueB);
    Unfortunately, v2.0 of Forte does not provide any mechanisms for changing
    the calling conventions of the prototypes in the generated C++ wrapper
    library, so when you compile that code, the linker fails. I think that the
    compiler may generate different symbols depending on calling conventions,
    so that's why it fails.
    To fix this, don't autocompile your code, but generate the distribution, go
    into the generated C++ files and look for the function prototypes (I think
    you can search for FORTE_NO_PROTOTYPES), add WINAPI to the appropriate
    places in the prototype definitions (see above) and use fcompile to build
    the library. Instructions for fcompile are in the Interfacing With
    External Systems manual.
    Hope this helps,
    James
    At 11:05 AM 5/29/97 PDT, you wrote:
    >
    We are trying to wrapper Crystal Reports from Forte. I know that there
    are a number of other people in this same boat, as I've seen messages
    posted here at various points during the past few weeks. We are having
    a particular problem with getting the compile to go through, which we
    have sent in to Forte Tech Support. I'm forwarding the message I sent
    Tech Support to this group in the hopes that someone here may have
    already seen and resolved a similar problem.
    Thanks in advance for any help you can offer!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc. [email protected]
    >
    Date: Wed, 28 May 97 13:47:20 PDT
    From: dg7077a
    To: Forte Technical Support
    Cc: Gardner, Steve
    Subject: Link Problems With Borland C++ 4.52
    Name of requestor: [Dale V. Georg / Alaiah Chandrashekar]
    Company: [Indus Consultancy Services]
    Phone for callback: [(610) 709-3956]
    Customer Site: [Mack Trucks, Inc.]
    Product: [Forte]
    Version of Forte: [2.0.H.1]
    Server OS: [SunOS 5.5.1]
    Client OS: [Windows 3.1]
    DBMS: [Oracle 7.2.3]
    Reproducible?: [Yes]
    Brief description: [Link Problems With Borland C++ 4.52]
    Complete description of problem or question:
    We are attempting to write a C-wrapper interface from Forte to Crystal
    Reports' Report Engine. We are using Borland C++ version 4.52.
    Unfortunately, we have been unable to get a clean compile after a day
    and half of effort. We get as far as the link stage of the
    compilation, and
    the compiler aborts with an "Unknown symbol" error message for each
    of the functions we are trying to wrapper. We have tried a number of
    ideas to fix this problem, and are continuing to try to solve it on
    our own,
    but any help would be greatly appreciated. Please have someone call
    Alaiah Chandrashekar at the number above as soon as possible.
    Thanks!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc. [email protected]
    James Urquhart [email protected]
    Product Manager phone: (510) 986-3513
    Forte Software, Inc. fax: (510) 869-2092

    James,
    Thanks for your quick response. Yesterday we had been running down
    the path of examining the calling conventions and trying to change them
    to PASCAL, but without much success. After receiving your note, we
    went back over it again, and this time we were able to finally to piece it
    together. In addition to editing the Forte-generated .cc file to declare
    the functions as PASCAL, we also had to turn off the compiler's case
    sensitivity. (The Crystal .lib file had the function names in mixed case,
    but the Borland compiler was generating all uppercase for the names.)
    Now I had actually tried this yesterday and it didn't work (in fact it
    generated a whole bunch of new errors) - because until we took a
    second look at it today, I didn't realize that Borland's linker actually has
    TWO flags that control case sensitivity. If you only turn one or the
    other off, things can get pretty ugly looking. As soon as we turned
    both of them off, the compile and link went beautifully. Again, thanks
    for your help; hopefully we are over the worst of it now!
    Dale
    I have seen this problem before in another context, and I'll offer the
    cause and solution in the hope that they will apply to the Crystalproblem.
    >
    Many Windows based applications rely on PASCAL callingconventions, which
    change the way parameters are handled in function/method calls.They
    indicate this by placing one of the following immediately before the
    function name in the prototype declarations:
    - pascal_far (or something like that)
    - WINAPI
    - some other typedef of either of the above
    For example:
    int WINAPI AddTotal(int valueA, int valueB);
    Unfortunately, v2.0 of Forte does not provide any mechanisms forchanging
    the calling conventions of the prototypes in the generated C++wrapper
    library, so when you compile that code, the linker fails. I think thatthe
    compiler may generate different symbols depending on callingconventions,
    so that's why it fails.
    To fix this, don't autocompile your code, but generate thedistribution, go
    into the generated C++ files and look for the function prototypes (I think
    you can search for FORTE_NO_PROTOTYPES), add WINAPI tothe appropriate
    places in the prototype definitions (see above) and use fcompile tobuild
    the library. Instructions for fcompile are in the Interfacing With
    External Systems manual.
    Hope this helps,
    James
    At 11:05 AM 5/29/97 PDT, you wrote:
    We are trying to wrapper Crystal Reports from Forte. I know that
    there
    are a number of other people in this same boat, as I've seenmessages
    posted here at various points during the past few weeks. We arehaving
    a particular problem with getting the compile to go through, whichwe
    have sent in to Forte Tech Support. I'm forwarding the message Isent
    Tech Support to this group in the hopes that someone here mayhave
    already seen and resolved a similar problem.
    Thanks in advance for any help you can offer!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc.
    [email protected]
    >
    >>
    Date: Wed, 28 May 97 13:47:20 PDT
    From: dg7077a
    To: Forte Technical Support
    Cc: Gardner, Steve
    Subject: Link Problems With Borland C++ 4.52
    Name of requestor: [Dale V. Georg / AlaiahChandrashekar
    Company: [Indus Consultancy Services]
    Phone for callback: [(610) 709-3956]
    Customer Site: [Mack Trucks, Inc.]
    Product: [Forte]
    Version of Forte: [2.0.H.1]
    Server OS: [SunOS 5.5.1]
    Client OS: [Windows 3.1]
    DBMS: [Oracle 7.2.3]
    Reproducible?: [Yes]
    Brief description: [Link Problems With Borland C++ 4.52]
    Complete description of problem or question:
    We are attempting to write a C-wrapper interface from Forte to
    Crystal
    >>
    Reports' Report Engine. We are using Borland C++ version 4.52.
    Unfortunately, we have been unable to get a clean compile after aday
    and half of effort. We get as far as the link stage of the
    compilation, and
    the compiler aborts with an "Unknown symbol" error message foreach
    of the functions we are trying to wrapper. We have tried a numberof
    ideas to fix this problem, and are continuing to try to solve it on
    our own,
    but any help would be greatly appreciated. Please have someonecall
    Alaiah Chandrashekar at the number above as soon as possible.
    Thanks!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, [email protected]
    James Urquhart [email protected]
    Product Manager phone: (510) 986-3513
    Forte Software, Inc. fax: (510) 869-2092-----------------------------------------------------------------------------------
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc. [email protected]
    [email protected]------------------

  • I have found a person who has a driver software to connect Labview with PCI card. But he says that i need to download a freeware software to configure the PCI card. But you have mentioned that freeware is for GPIB boards. Is it correct ??

    I have found a person who has a driver software to connect Labview with a general PCI card. But he says that i need to download a freeware software from NI website to configure the PCI card. But you have mentioned that freeware is for GPIB boards. Is it correct ?? Is there any other way out ??

    I would ask the person who told you about the freeware software to help you find exactly where it is. I am not aware of any freeware software for configuring motion PCI cards but maybe the person you know might be able to help you locate it.

  • How to I get Adobe Reader XI to accept links made with Adobe Acrobat XI without asking each time?

    How to I get Adobe Reader XI to accept links made with Adobe Acrobat XI without asking each time?

    Asking for what, exactly?

Maybe you are looking for

  • Firefox crashes on startup/unresponsive

    This has happened about 3 times already. Firefox will become somewhat slower when it comes to browsing to the point where I try and delete history to remedy it. There is an unresponsive script while attempting to do this and I have to force quit Fire

  • Warning on flashing 990FX-GD80 BE7

    When attempting to flash the BE7 Bios https://forum-en.msi.com/index.php?topic=163878.msg1208777#msg1208777 from BE6 it gives me a warning that says something like "SPI in Sys-ROM does not match SPI in ROM, we advise you not to proceed with the flash

  • HT4113 How to unlock disabled iPad which has never connected to iTunes?

    My iPad is disabled and I cannot get it working, not even in recovery mode. It has a password and now it won't unlock .   I've never backed it up and never had the need to connect to iTunes. How do I get it working again? I don't mind setting up agai

  • Reader XI - How do I hide the Navigation Pane by default?

    Every time I open a pdf I have to manually hide the Navigation Pane as it is taking up valuable real estate on my screen. Is there a way to hide it by default in Reader XI? I've seen it mentioned elsewhere but I've failed to find a satisfactory answe

  • Which file type to use for editing

    I recently filmed a school talent show to create DVDs for the parents. I'll be using PrE 9 to edit. I understand the output for the movie will need to be MPEG2 for the DVD. We used three different cameras (I know this is a bad thing to do with PrE),