Plug type definition in Component Interface Definition

Hi,
in my Component Interface Definition I need to define a startup plug. Upon plug creation, however, there's no prompt regarding plug type. Moreover I cannot see the plug type in the IDE, as I was used in interface view controllers.
Editing the plug does not allow any change at all, specifically no change to the plug type.
As of now, all my plugs are standard plugs (I know that from errors when building implementing components).
Can anyone please help?
Thanks, Vincenzo

unknown

Similar Messages

  • Wda: call method from a component interface definition (cid)

    hello,
    I created the following scenario:
    - I have a Main-component "m"
    - "L" is a component interface definition (cid) which force both cid-L-implementating components  "L1" and "L2" to extend and fill the method "set_COMP_USAGES()".
    - I have other cid´s (A-C) too
    - at runtime only one of the components "L1" or "L2" is created and the mother-component M holds component-usages (ref to) of the chosen variants of A-C and L as an attribute in the component-controller of m.
    now my problem: my aim is to call a method in m at runtime which is defined at designtime in my cid L (set_COMP_USAGES() )and decided at runtime which variant of this method is chosen (the one from L1 or L2). in this method the references of comp_usages other cid´s should be passed to L1 or L2.
    or short: how can I call a method from a cid-implementating component at runtime via a IF_WD_COMPONENT_USAGE reference (ref to) to this component?

    I got the solution:
    data: L_INTF_CONTROLLER         type ref to ZIWCI_Z_ITF_CID_L.
      L_INTF_CONTROLLER ?= wd_this->COMPONENT_USAGE_L->GET_INTERFACE_CONTROLLER( ).
      CALL METHOD l_intf_controller->set_comp_usages
        EXPORTING
          comp_usage_a = wd_this->COMPONENT_USAGE_a
          comp_usage_b = wd_this->COMPONENT_USAGE_b
          comp_usage_c = wd_this->COMPONENT_USAGE_c.

  • How can I modify the "Type definition​s" of "Function Prototype" if I want build a DLL in Labview 8.5.1.?

    Hello,
    We have a library with several VIs (API - Interfaces to our Real Time Target). This VIs we provide to our customer to generate own VIs to control the Real Time Target.
    Now we want to provide the functionality of this VI-library as DLL to our customer. The problem is, that labview use self definite name of type definitions. Also if I use "strict Type definition".
    Example:
    void GetOutputValues(VARIANT *Scale_In, int32_t ModelNr, uint16_t SignalID[], TD1 *errorIn, VARIANT *Scale_Out, TD2 *Data, TD1 *errorOut, int32_t len)
    It is possible to modify "TD1" and "TD2"? I want to give useful names.
    Greetings
    Steffen

    Hi Steffen,
          Try editing the .h file as follows:
    CHANGE FROM:
    typedef struct {
     LVBoolean status;
     long code;
     LStrHandle source;
     } TD1;
    CHANGE TO:
    typedef struct {
     LVBoolean status;
     long code;
     LStrHandle source;
     } TD1;
    typedef struct {
     LVBoolean status;
     long code;
     LStrHandle source;
     } LVErrorCluster;
    then your GetOutputValues prototype becomes:
    void GetOutputValues(VARIANT *Scale_In, int32_t ModelNr, uint16_t SignalID[], LVErrorCluster *errorIn, VARIANT *Scale_Out, TD2 *Data, LVErrorCluster *errorOut, int32_t len)
    If your source-code doesn't refer to "TD1", then you probably won't need to keep the TD1 prototype!
    Cheers.
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Possible? Using External Definitions for data type/message type definitions

    Hi all,
    i want to use external definitons in my own data type definitions. Is that possible? And if yes, how?
    I imported many definitions via a mass import. Now I also want to use these definitions for further interfaces (than the imported ones). The most convenient would be of course to just use them as a custom created type. Can I somehow "convert" an external definition to a data type/message type?
    KR
    Felix

    Hello Felix,
          The External defination which you has been imported that cant use in DT and MT but yeah you can use this in Service interface.
    you cant modify that External defination if you want to do that then 1st of all modify it and then reimport it as an another external defination.
    and creating service interface with this ED you can use it in your message mapping .
    i hope this will help to you to clear your doubt.
    Monica

  • What's wrong with this content type definition?

    Could someone tell me what's wrong with this content type definition? When I click "New Folder" in a custom list, it should bring two fields 1) Name 2) Custom Order. However in my case when I click new folder, I see 1) Member (which is totally
    weird) 2) custom order. Where is it getting that Member field from?
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Folder (0x0120) -->
    <ContentType ID="0x012000c0692689cafc4191b6283f72f2369cff"
    Name="Folder_OrderColumn"
    Group="Custom"
    Description="Folder with order column"
    Inherits="TRUE"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{35788ED2-8569-48DC-B6DE-BA72A4F87B7A}" Name="Custom_x0020_Order" DisplayName="Custom Order" />
    </FieldRefs>
    </ContentType>
    </Elements>

    Hi,
    According to your post, my understanding is that you had an issue about the custom content type with custom column.
    I don’t think there is any issue in the content type definition, and it also worked well in my environment.
    Did you have the Member field in the project?
    I recommend you create a simple project only with one custom Order column and one custom Folder_OrderColumn, then you can add more fields one by one.
    By doing this, it will be easier to find out the root cause of this error.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Dynamic Variable In a Type Definition

    Can someone tell me how to define and use a dynamic variable, which resides in a Type Definition.  I.E...
    Type: beg of type1,
            field 1 type c,
            field 2 <---this dynamic
            field 3 type c.
          end of type1.
    Can this be done in Netweaver 2004.  And if so, can you show me how?
    Thanks for your time.
    Kind Regards,
    Jason

    Don't think it is available now, but I do believe they are working on this for a future release.
    Regards,
    Rich Heilman

  • Bind FPGA host reference to type definition in labVIEW 2012 crashes labVIEW

    Hi,
    I am using FPGA target device 5641R and labview FPGA 2012 with 5640R ver 1.7.
    On the configure window of open FPGA VI reference function, choosing the dynmaic mode shows broken arrow when wired to the 5640R configuration VIs (i.e. Configure timebase, Configure ADC default, Configure ADC NCO functions). So i tried the other option which is binding the FPGA host reference to type definition and choose the control from path C:\Program Files\National Instruments\LabVIEW 2012\instr.lib\ni5640R\Configuration\NI-5640R VIs\ni5640R FPGA VI Reference.ctl. But after that when i try to save the VI on which open FPGA VI reference function is placed, labVIEW crashes. I am unable to figure out the reason. Earlier I was working with labVIEW 2011 and it was working fine there. Any suggestions would be highly appretiated. 
    Please see the attached images for more details.
    Thanks
    Attachments:
    1.png ‏33 KB
    2.png ‏71 KB
    3.png ‏40 KB

    Check out this thread.  It looks like someone else ran into a similar issue and made changes that fixed their application.
    http://forums.ni.com/t5/IF-RIO/correct-5640r-template-use-recommendation/td-p/1331918
    Jeff B.
    Applications Engineer
    National Instruments

  • Passing a reference to a type definition to a SubVI

    I have created a type definition that I would like to use across my application. This particular type definition is also the front panel control to my top level VI. I wanted to pass a reference to this control to my SubVi's so that they could dereference as needed and in very rare cases update the values on the front panel. However, as I built the application I noticed that I was breaking the control reference as I updated the type definition. This implies that they type of the reference changes as I change the type definition.
    How do I go about building the reference I need or is there some other way to do this that works just as well. Even if I can't make a reference to the control that is tied to the type definition, I'm willing to pass in a variant who can house the reference as long as I can build the data type (the reference) inside my SubVis.
    Solved!
    Go to Solution.

    Okay, so I tried all three approaches in a SubVI, here's what happened.
    My approach was simply to create a Type Def control, right-click and create a Reference. Then create a control from that reference by right-clicking the output of the reference and selecting the Create Control option. I then pasted this 'cluster' reference into my SubVi, made it an input and then wired up the reference in the parent to the control in the SubVi.
    Result: This breaks when you update the Type Definition.
    Next, Ben's approach (or my best effort at doing what he suggested). I created a control from reference to the type def. I cut it from the parent VI and pasted it into a new type def. I then put the type def in the SubVI and set it as an input.
    Result: This breaks when you update the Type Definition (but it actually takes a bit longer for the error to propogate).
    Finally, Christian's solution (or my best effort). I took the type def reference and put it through a To More Generic Class guy, casting it to a Control Refnum. I put a Control Refnum on the front panel of my SubVI and wired it to a To More Specific Class guy. I created a control of the type def in the subvi, hid it, and created a reference. I wired the reference to the more specific guy and verified I was getting the right data.
    Result: It works!
    It's possible I just didn't understand how to make the reference type def you were referring to Ben. I would prefer a method with less verbage. I pass this refnum into a class which holds it. Since I can't replicate the type exactly prior to run time (i.e. create a control that is exactly a reference to the type definition of my front panel), I have to save the reference as a Control Refnum and cast it every time I need it (i.e. create a control from the typedef, create a reference frome the type def, etc). More verbage than optimal, but still good!
    Thanks for the help.

  • How to include structure in Types Definition ???

    Hello All,
          I want a declaration like this in BSP :-
    DATA : BEGIN OF imkop OCCURS 100.
                   INCLUDE STRUCTURE mkop.
    DATA :   waers LIKE mepro-waers.      
    DATA : END OF imkop.
    <b>In BSP: Type Definitions</b>
    I wrote like this :-
    Types : BEGIN OF imkop.
                    INCLUDE STRUCTURE mkop.
    Types :   waers type mepro-waers.      
    Types : END OF imkop. 
                   I'm getting an error saying that I can't use structures in this .
    Now what should I do ?
    Can anyone help me out ?
    Regards,
    Deepu.K

    deepu,
    we can declare structures as below.
    DATA:  event_data      TYPE REF TO cl_htmlb_event.
    TYPES: BEGIN OF row_iid_type,
           row_iid  TYPE hap_row_iid,
           END OF row_iid_type.
    DATA:
           t_row             TYPE STANDARD TABLE OF row_iid_type,
           t_row_wa          TYPE row_iid_type,
           t_message  TYPE STANDARD TABLE OF bal_s_msg .
    DATA:
           lw_body_element   TYPE hap_s_body_elements,
           lw_body_column    TYPE hap_s_body_columns,
           lw_body_cell      TYPE hap_s_body_cells,
           lw_return         TYPE bal_s_msg,
           warning TYPE i.
    regards,
    manasa

  • Control Value:Set [Variant] Method - how can i use this with strict type definitions?

    I want to pass default values to a strict type definition from a mainVI to a subVI, but I'm not allowed to use the "Control Valueet [Variant] Method" invoke node to do it.  How else can I achieve this?
    thanks,
    Z

    Hi Z,
    If you use strict type defintion references you can use Call by reference Node. Depending on the connector pane for the subvi which is referenced you just wire your data to the corresponding terminals. I attach an easy example which dynamically opens and writes to an arbitary number of a template.
    Hope it helps
    Pelle S
    District Sales Manager
    National Instruments Sweden
    Attachments:
    Call by reference node.zip ‏20 KB

  • JAXB compiler error : Complex Type Definition Representation Error

    Hi,
    I have a problem when I try to generate Java classes for the XML Digital Signature schema along with the XAdES extension. Apparently, we got an XML validation issue when the XAdES schema is parsed.
    Here is the xjc tool ouput :
    [ERROR] src-ct.1: Complex Type Definition Representation Error for type 'IdentifierType'.  When complexContent is used, the base type must be a complexType.
      line 33 of XAdES.xsd
    [ERROR] src-ct.1: Complex Type Definition Representation Error for type 'EncapsulatedPKIDataType'.  When complexContent is used, the base type must be a complexType.
      line 57 of XAdES.xsdNow these are the schema lines from XAdES.xsd that cause the problem :
    <xsd:complexType name="IdentifierType">
      <xsd:complexContent>
        <xsd:extension base="xsd:anyURI">
          <xsd:attribute name="Qualifier" type="QualifierType" use="optional"/>
        </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="EncapsulatedPKIDataType">
      <xsd:complexContent>
        <xsd:extension base="xsd:base64Binary">
          <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
        </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>The most disturbing thing is that those two schemas I used (e.g. xmldsig-core-schema.xsd and XAdES.xsd) come directly from the W3C, so they should be fully compliant to the XML schema spec, shouldn't they ?
    Moreover, I tried to validate these two schemas with XML Spy 4.3 and the problem occurs in slightly different way. In fact, the <xsd:complexContent> tags are replaced silently by XML Spy with <xsd:simpleContent> tags in order to validate the schema. So XML Spy seems to have a problem too with these complex type definitions. Besides, if I replace the <xsd:complexContent> tags the same way as XML Spy does, and if I run again the JAXB compiler, it works fine...
    Does anyone have any knowledge about this issue ? I'd like very much to hear about anyone who has experienced or better solved the same kind of issue.
    By the way, here is the version of JAXB that I use :
    xjc version "1.0.2-b15-fcs"
    JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build 1.0.2-b15-fcs)Any help appreciated.
    Thanks,
    Gregory

    <xsd:extension base="xsd:anyURI">
    <xsd:extension base="xsd:base64Binary">
    The base attribute of the xs:extension elements shoule refer to a complexType.
    For example,
    <xs:complexType name="complexTypeA">
    </xs:complexType>
    <xsd:complexType name="IdentifierType">
    <xsd:complexContent>
    <xsd:extension base="complexTypeA">
    <xsd:attribute name="Qualifier" type="QualifierType" use="optional"/>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>

  • Error Master Type definition could not be found : FPGA

    I am having similar/exact error condition as in the below post..
    http://forums.ni.com/t5/LabVIEW/Error-Master-Copy-for-Type-Definition-Could-Not-Be-Found/m-p/1496866...
    The *.lvbit file i am using was compiled in Labview 8.2.1 and I am now using 2009 version of Labview.  Unlike the suggested solution, recompilation of *.lvbit file is ruled out due to lack of source code access.
    Any help towards troubleshooting is appreciated...

    Because I am a bad scientist, I do not know exactly what fixed my problem because I changed more than one variable at once.
    Here's what I did:
    Removed auto-populating folder from project (doubt this mattered, still broken after this)
    Changed my open FPGA VI reference from using a bitfile to using a VI, selected my FPGA VI, NO MORE BROKEN RUN ARROW! YAY.
    The above finding led me to go look at my FPGA bitfiles on disk -- I had two of them (weird). Usually a compilation just overwrites the older file.
    Just in case the names give any insight, they are:
    Older:  NASATTRControlCo_FPGATarget_FPGAMain_25B3817B.lvbitx
    Newer: NASATTRControlCo_FPGATarget_FPGAMain_25AF817B.lvbitx
    I went back to my open FPGA VI reference, and selected the most recent bitfile that I compile this morning -- No more broken run arrow.
    I have a feeling this may be due to selecting an old bitfile, but usually if the bitfile doesn't include the control, it won't show up in the read/write control node. If anyone from NI would like to comment on this I'd appreciate the insight on what may have happened.
    I am wondering if it's because I installed 2010 SP 1? Who knows but it's fixed now.
    CLA, LabVIEW Versions 2010-2013

  • Wrong TYPES definition?

    Hi experts,
    For my selection I define a internal table
    This works:
    DATA: it_lab_data  TYPE TABLE OF zmm_lab_offen,
         wa_lab_data  TYPE zmm_lab_offen.
    If I select something I can see the table is filled.
    Now, for my selection I need a temporary field more than my transparent table (zmm_lab_offen) has. So I tried to define a new TYPE including this table.
    TYPES: BEGIN OF s_lab_data,
             struk TYPE zmm_lab_struktur,
             loekz TYPE boolean,
           END OF s_lab_data.
    TYPES: tt_lab_data TYPE STANDARD TABLE OF s_lab_data WITH DEFAULT KEY.
    DATA: it_lab_data TYPE tt_lab_data.
    SELECT *
    FROM  'inner join over 3 tables'
    INTO CORRESPONDING FIELDS OF TABLE it_lab_data
    WHERE ...
    But this doesn't work. The Selection even imports 1600 rows but all fields are empty or has the value '0'!
    What am I doing wrong??? I 've got the TYPES definition by the "ABAP Objects" book...
    Regards,
    Steffen

    can't be used in OO context --> generates an error
    In the keywordmanual it is recommend to use
    DATA: BEGIN OF rec,
            rec LIKE s,
          END OF rec.
    instead of
    DATA: BEGIN OF rec,
            INCLUDE STRUCTURE s.
    DATA:   ...
          END OF rec.
    but this also don't work for me. LIKE and STRUCTURE cannot be used in methods. I have to use TYPE...
    regards,
    steffen

  • Declaring type definition dynamically

    hi guys,
    i have a strange issue. i need to define a varaible that refers to a below type definition.
    types : begin of t_str,
            var1 type string,
    vcar2 type string,
    end of t_str,
    data:  variable type t_str.
    the problem is i do not know how many var's will be there until run time. so my type definition needs to be dynamic. is there any way to do it.
    thanks

    You can create a dynamic structure like this.   <fs_structure> will be the structure with 20 string fields.
    TYPE-POOLS: abap.
    DATA:
      lr_structdescr    TYPE REF TO cl_abap_structdescr,
      lr_datadescr      TYPE REF TO cl_abap_datadescr,
      lt_components     TYPE abap_component_tab,
      ls_component      TYPE LINE OF abap_component_tab,
      lr_struct         TYPE REF TO data.
    DATA: lv_index_num(3) TYPE n.
    DATA: lv_index_char(3) TYPE c.
    FIELD-SYMBOLS: <fs_structure> TYPE ANY.
    START-OF-SELECTION.
      DO 20 TIMES.
        lv_index_num = sy-index.
        lv_index_char = lv_index_num.
        CONCATENATE 'value' lv_index_char INTO ls_component-name.
        ls_component-type ?= cl_abap_elemdescr=>get_string( ).
        INSERT ls_component INTO TABLE lt_components.
      ENDDO.
    * get structure descriptor -> lr_STRUCTDESCR
      lr_structdescr ?= cl_abap_structdescr=>create( lt_components ).
    * create a structure
      CREATE DATA lr_struct TYPE HANDLE lr_structdescr.
      ASSIGN lr_struct->* TO <fs_structure>.
    Regards,.
    Rich Heilman

  • Determine if a control reference is a strict type definition

    If a VI is passed a control reference it can determine the VI Server Class using the ClassName property but how can it determine if the control reference is from a control which is based on a strict type definition?

    That a pretty neat little VI you've found, Darren. Kudos!
    The solution that Darren presents, however, will not tell the difference between a typedef and a strict typedef (unless I'm missing something). If you have VI Scripting enabled (see attachment for where to enable this in the Options menu), you can expose the Is Typedef? property. 
    This returns an enum with the following values (as pictured)
    not a typedef
    typedef
    strict typedef
    class private data
    Although this property is not settable in a VI at run-time, it should be readable.
    Below is a picture of the Options menu where you can enable VI scripting
    Mitch
    Attachments:
    VIScripting.PNG ‏33 KB

Maybe you are looking for