Interface between C++ and labview

I have decided a project that consists of C++ and Labview. C++ is used
as the input to labview. However, i don't know how to use C++ to
control the labview. Can C++ control the labview directly? and how ?
or I have to buy another program or hardware to be interface?
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

ActiveX and TCP/IP are both good choices for high-level communication
between Windows applications. LabVIEW's VI Server, introduced in version
5.0, gives you tremendous power to control LabVIEW programmatically and
exposes it to the programmer via either ActiveX or TCP/IP.
For a very nice example that shows how to call a LabVIEW VI with arguments
passed from the C++ environment, then bring the resulting data from
LabVIEW back to C++, check out the following example from NI's site:
http://digital.natinst.com/explprog.nsf/websearch/6960cee3bf3d8c30862565da0078ef30?OpenDocument
If the URL doesn't work for you, just go to NI's Example Programs Database
(http://www.natinst.com/support/epd/) and search for "labview and c++".
Regards,
John Lum
National Instruments
Matthew
Ho wrote:
> I have decided a project that consists of C++ and Labview. C++ is used
> as the input to labview. However, i don't know how to use C++ to
> control the labview. Can C++ control the labview directly? and how ?
> or I have to buy another program or hardware to be interface?
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

Similar Messages

  • Interface between paravision and labview

    Hi,
    Does any one here who can help or give some idea how to make an interface between paravision and labview software???I need to acquire captured MRI image from paravision and store it to Labview.
    I would appreciate for any kind of assistance.
    Kind Regards,
    Jasim

    Hi Jasim,
    Could I get a little more information about how you are importing the MRI image into LabVIEW?
    1) How are you getting the MRI image into LabVIEW?
    2) What image format will the image be in?
    3) What will you be doing to the image once it is in LabVIEW?
    Best Regards,
    Bill
    Bill E. | Applications Engineer | National Instruments

  • Interface between Labmax and Labview

    Hi all,
    I am trying to control a laser energy meter, Labmax-top, with labview using labview drivers provided by the meter’s manufacturer (coherent). Once running the labview driver an error message appears saying that the sensor index cannot be found. According to the manual, the sensor index is a number between 1 and 127 and is automatically set by the system.
    Does anyone know how to set this manually? or any experience with these kind of problem?
    Thanks

    I am not familiar with this system at all, but in the worst case your LabVIEW program could just iterate over all possible sensor numbers until it no longer generates an error....
    LabVIEW Champion . Do more with less code and in less time .

  • Communicate large number of parameters and variables between Verstand and Labview Model

    We have a dyno setup with a PXI-E chassis running Veristand 2014 and Inertia 2014. In order to enhance capabilities and timing of Veristand, I would like to use Labview models to perform tasks not possible by Veristand and Inertia. An example of this is to determine the maximum of a large number of thermocouples. Veristand has a compare funtion, but it compares only two values at a time. This makes for some lengthy and inflexible programming. Labview, on the other hand, has a function which aloows one to get the maximum of elements in an array in a single step. To use Labview I need to "send" the 50 or so thermocouples to the Labview model. In addition to the variables which need to be communicated between Veristand and Labview, I also need to present Labview with the threshold and confguration parameters. From the forums and user manuaIs understand that one has to use the connector pane in Labview and mapping in Veristand System Explorer to expose the inports and outports. The problem is that the Labview connector pane is limited to 27 I/O. How do I overcome that limitation?
    BTW. I am fairly new to Labview and Versitand.
    Thank you.
    Richard
    Solved!
    Go to Solution.

    @Jarrod:
    Thank you for the help. I created a simple test model and now understand how I can use clusters for a large number of variables. Regarding the mapping process: Can one map a folder of user channels to a cluster (one-step mapping)? Alternatively, I understand one can import a mapping (text) file in System Explorer. Is this import partial or does it replace all the mapping? The reason I am asking is that, if it is partial, then I can have separate mapping files for different configurations and my final mapping can be a combination of imported mapping files.
    @SteveK:
    Thank you for the hint on using a Custom Device. I understand that the Custom Device will be much more powerful and can be more generic. The problem at this stage is that my limitations in programming in Labview is far gretater than Labview models' limitations in Veristand. I'll definitely consider the Custom Device route once I am more provicient with LabView. Hopefully I'll be able to re-use some of the VI's I created for the LabView models.
    Thanks
    Richard

  • Interface between WM and SD

    Hi,
    Is there anybody who can give me the details of the interface between WM and SD through shipping module?
    It would be nice to have few info about WM /PP and WM/QM.
    Thank you in advance.

    Hi,
    The interface is mainly through the LEWM movement type configuration. You need to define the Interim storage type and movement types required to sales process prior to that.
    After you are done with the above settings, then you can configure for the 2 step picking. If you need it.
    Thanks,
    Mono

  • IDOC Interface between CO and BW

    Hi Gurus
    I am just looking for documents about all interfaces between CO and BW/BI. Can any body supply me these??
    Thanks in advance
    SIM

    Hi Joe-
    There are several How To guides that provide detailed instructions on how to automate transactional and master data loads from NW BW into BPC.  Please check out the following guides:
    [How to Migrate Transactional Data|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0427318-5ffb-2b10-9cac-96ec44c73c11]
    and
    [How to Automate Master Data Loads|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00380440-010b-2c10-70a1-e0b431255827]
    Regards,
    Sheldon

  • Interface between sockmod and udp

    Hi,
    where can find info on interface between sockmod and udp stream modules. Iam specifically looking for how sockmod and udp/tcp modules inform each other of the destination ip/port numbers, source port number etc... any help would be greatly appreciated.
    Thanks,
    Surya

    Hi,
    In our case we are using
    IDOC-XI--SOAP ( For all Outbound scenarios)
    In this case ask abt wsdl files for SOAP Structure
    HTTPXI--IDOC ( For all Inbound scenarios)
    In this case POS will directly post the message to intergration server direcly by using parameters like namespace , IS details
    Regards
    Seshagiri

  • The diffirenties between lookout and labview?

    how can i understand the diffirenties between lookout and labview?
    i ve learnt about lookout but known nothing about labview.
    my teacher ask me about this master. and what application we use lookout instead of labview?
    thanks for all your help!

    Lookout is focused on HMI/SCADA application. It uses OPC to communicate with PLCs or devices.
    LabVIEW is much more powerful. LabVIEW is a programming platform, like VC. It can do everything. LabVIEW DSC module adds the functionalities of Lookout to LabVIEW.
    You'd better try the LabVIEW software, to better understand it. See this page. http://www.ni.com/labview/whatis/
    Ryan Shi
    National Instruments

  • Difference between diadem and LabVIEW Report Generation Toolkit

    I want to expand LabVIEW's reporting capabilities.  Can someone tell me what the difference is between DIAdem and the LabVIEW Report Generation Toolkit for Microsoft Office.

    Hello Mr Bean,
    There are several major differences between the two solutions. I'll try and outline them as good as I can ...
    The biggest different is that LabVIEW and its toolkits are programming tools and DIAdem is a ready to run application.
    The LabVIEW Report Generation Toolkit basically provides an extensive library of VIs that allow you to connect LabVIEW to the MS Office library and create and edit reports in Word and Excel.
    DIAdem is a stand alone application that was designed to post-process data from various sources. The tools included in DIAdem are:
    1. NAVIGATOR: Allows you to import data from files (ASCII, binary, Excel, etc.) as well as DataBases (SQL/ODBC, Citadel, ASAM, etc.). The unique DataPlugin technology available within DIAdem allows you to import vitually and data file by creating a DataPlugin that describes the data format and gets linked to DIAdem. More information at: http://www.ni.com/diadem/dataplugins.htm
    2. VIEW: Graphical and Numerical data inspection tool. Use cursors to zoom and scroll through your data, edit your data graphically and numerically and compare different tests.
    3. ANALYSIS: DIAdem has a wide range of analysis functions, ranging from simple functions like integration and differentiation to FFTs, Order analysis and 3D data analysis.
    4. REPORT: The DIAdem REPORT tool allows you to create reusable report layouts that can contain multiple axis systems (2D, 3D and polar plots) as well as tables (2D and 3D) and variables. The REPORT tool generates templates that can be usedwith multiple data sets due to the inclusion of automatic (or manula if required) scaling as well as extensive use of variables for annotations. Finished reports can be exported to printers, graphics files, the Windows Clipboard, HTML pages and PDF files (PDF writing is build into DIAdem, no extra software required). Using Scripts, it is also possible to create Word, Excel or Powerpoint reports from DIAdem automatically.
    5. SCRIPT: The DIAdem scripting tools allows users to record macros or write scripts that automate complete sequences, for the import of data, via extensive analysis, to creating a publication ready report. Scripts can make reports "intelligent" by modifying the appearance of a report based on the data or calculation results that are going to be displayed in the report.
    I recommend you check out the following link for more information: http://www.ni.com/diadem/
    DIAdem is an extremly powerful tool for report generation. I am leaving to go on a business trip to Asia, but I would be more than happy to give you an Web presentation on DIAdem after I have returned. We could use your data and create a DIAdem report Script together online. My Email address is [email protected] and I will be back the week of Thanksgiving.
          Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Interface between Legacy and SAP for Equipment Master

    Hello
    I got a requirement where I need to develop a interface between legacy system and R/3 system for Equipment Master Data update in R/3. I am thinking of getting a Idoc file from Legacy and then update the changes or any new creation of Equipments in R/3. I found a standard BAPI for this BAPI_EQUIPMENT_CREATE/CHANGE. This BAPI use a strcture BAPI_ITOB for data record of IDoc. But I got more data from legacy except what we have in BAPI_ITOB. I got Partner Data, Classification data also for Equipments. I am thinking of copying the BAPI to a Z function module and modify the Idoc structure , message type and all to capture all the data and then do a update in same way as standard transaction IE01(Equipment Create) is doing in Batch Input. Do you think if there is any better way of doing this? I am not used to transaction BAPI . just wondering if we Can use that in someway to include our modification?
    Thanks
    Harkamal

    20,000 is on quite higher side for IDOC.
    IBIP help doc says it needs 2 Kbyte for each record, i.e. 40 Mb for 20,000 rec. that should be ok. Since it has structures for Partner & classification data , I don't think u need to modify the BAPI.
    Transaction IE01 - Create equipment
    Transaction IE02 - Change equipment
    Structure - IBIPEQUI Equipment record
                     |->    IBIPNSTA     New status profile if necessary
                     |->>   IBIPSTAT     User status records
                     |->>   IBIPDOCU     Doc. from Doc. management system
                     |->>   IBIPPART     Partner details (comment below)
                     |-->>  IBIPTEXT     (see comment below)
                              for long text:          TEXT_MARK = " " empty
                              for internal comment:   TEXT_MARK = "1"
                     |-->>  IBIPCLAS    Classification record (eqpmt class)
                         |-->> IBIPFEAT     Classification characteristics,
                                               ie. features for the class
                     |-->>  IBIPBDCD     see below (from screen 102)

  • Block Demand Depend Interfaces between ECC and SCM

    Hello All.
    Is there a way to block only interfaces of Dependent Demand between ECC and SCM.
    I need to do this because ECC writes over my plan in SCM.
    Thanks and Best Regards

    Hello PrasunM
    For example:
    When you create an Order on finished material, SCM using PP method "3 - Cover Ind. Requ." creates DepReq on raw material.
    SCM using CIF sends PlOrd, PrdOrd and DepReq to ECC. I want send only PlOrd and PrdOrd, DepReq i only need in SCM side.
    Best Regards.

  • How do i data exchange between TestDirector and labVIEW

    Hai to all,
    By using one COMServer(VC++), that COMServer exchange the data between TestDirector and LAbVIEW7.0, How to call LabVIEW function in activex, is it posible or not?
    if posible please post your answer.

    Hi reddys,
    You can call the LabVIEW ActiveX Automation Server.
    This can be done from any programming language.
    Following the links below, you will find some examples.
    Calling LabVIEW from C++ Using ActiveX
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E21356A4E034080020E74861&p_node=DZ52051&p_submitted=N&p_rank=&p_answer=&p_source=External
    Calling LabVIEW as an ActiveX Server from Visual Basic
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E3D756A4E034080020E74861&p_node=DZ52051&p_submitted=N&p_rank=&p_answer=&p_source=External
    Communicating with LabVIEW from Delphi using ActiveX
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E8D156A4E034080020E74861&p_node=DZ52051&
    p_submitted=N&p_rank=&p_answer=&p_source=External
    Calling a LabVIEW VI with the LabVIEW ActiveX Automation Server
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3D85956A4E034080020E74861&p_node=DZ52156&p_submitted=N&p_rank=&p_answer=&p_source=External
    Remote Control (Launch) of LabVIEW Using ActiveX/DCOM
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CBA64111EE034080020E74861&p_node=DZ52051&p_submitted=N&p_rank=&p_answer=&p_source=External
    I hope this helps!
    Regards,
    Richard H.
    National Instruments

  • Docs about Interfaces between CO and BW/BI

    Hi all Gurus,
    I am just looking for documents about Interfaces between FI/CO and BW/BI. Can any body provide me the required documents. It is very urgent....  [email protected]
    Thanks in advance
    SIM
    Edited by: SIM on Feb 22, 2008 12:19 PM

    Hi
    You are right. I meant the interfaces between FI/CO and BW/BI. Namely how do we build the Interfaces such as IDOC and other interfaces between them. I need practice oriented docs with all steps towards building interfaces.
    Thanks
    SIM

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

  • Interface between ABAP and Excel-report

    Hi anyone!
    I need to implement a BAdI (CRM_MKTTG_SEG_MEM_EX) for displaying an aggregated BW field in the CRM Segment Builder. However my programmer knows little about the interface between ABAP an Excel. He therefore struggles with the programming. Have anyone of you any suggestions for how he can call a field in a query. Has anyone used this BAdI for the same purpose?
    Thanks, Camilla

    Hello Camilla,
    i think you should ask your question in a generic form in the BW forum. Ask them for access to a Query via RFC.
    Regards
    Gregor

Maybe you are looking for