Input for CD Linear Simulation.vi in a Simulation Loop

Hi I'm new to LabView and I was trying to implement a real time estimator for a linear system, so a steady
state gain is acceptable (estimator doesn't need to be adaptive). It will be
implemented in real time target (cDAQ). The estimator will get the acquired
data (there are 2 inputs and 1 output) from the real system.
 I have learned and tried few different ways to do it but finally decided to try using CD State
Estimator.vi (standalone) in a Simulation Loop. My questions are:
 1. I found that the only way to use the estimator model with the acquired input is by
using CD Linear Simulation.vi. Is there another alternative to do the
estimation?
 2. However, with CD Linear Simulation.vi I had problem: According
to the LabView help, if the input signals are more than 1, we have to specify
the input as 2D array with smaller dimension as the number of channels and the
larger dimension as number of points in each channel.
 While for every execution in the loop I will get only 2 x 1 data (see appended array 3 in the
attached example file). How can I be able to use the measured data as the two
inputs for the CD Linear Simulation.vi?
 Thank you.
Attachments:
2015_03_31_Test DAQ in sim loop.vi ‏299 KB

Hi Mike,
Thanks for the reply.
I browsed through some examples and tried some things; here are the updates, maybe useful for others in the future.
About the CD Linear Simulation.vi; In the example finder I found CDEx Kalman Filter.vi which uses CD Linear Simulation.vi to compare the estimation with real system states for two inputs.  The number of samples of the inputs was given as a constant (e.g. N samples), from which the array of N x 2 data is built and fed to CD Linear Simulation.vi. So up to now I can’t see a way of using CD Linear Simulation for feeding input to the estimator model built from CD State Estimator.vi in a “real time “ way.
I look forward to hearing from anyone if it can be done.
So, from here I tried another alternative to implement this real time estimator: using Discrete State Space Function. So I generate the estimator state space model in Mathscript and feed it to that function.
I use kalman (mathscript) function to generate the estimator model.
Interesting thing is, (although irrelevant with my original enquiry), that this kalman command seems not generate correct estimator model with multiple input (e.g. if in the original system there are inputs u1 and u2 with one output y, I expect the generated estimator model would have three inputs i.e. u1, u2, and y. But the generated estimator only has one input (??)).
I remember that the kalman command from Matlab has the same problem which I neglected at that time.
So this time in labView I also did the same thing as the last time, which is taking the gain generated from the same kalman command and build manually the A and B matrices of the estimator.
I haven't browsed though to see if someone has used this kalman command for multi input system and noticed this. 
Nevertheless, this alternative seems working well so hopefully it works well too with the RT target.
Thanks.

Similar Messages

  • Sin source modelling with input for phase

    There are several AC voltage sources model in Multisim, however none of them allow me to change the ac phase inside a simulation.
    The simplest way would be to modify the AC voltage source and add an input for the phase value, but I do not know how to do it.
    I am using Multisim 10.1
    Best regards
    Michel

    Hi Michel,
    Most AC sources, such as the AC_VOLTAGE source, have more than one phase field; for example, you will often see both a 'Phase' and an 'AC Analysis Phase'.  The 'Phase' field will affect the simulation when running a transient analysis, and the 'AC Analysis Phase' only affects the simulation under an AC analysis.  I would check to make sure that you're using the correct fields.
    If you're still having trouble, feel free to post a circuit and we can investigate this further.
    Natasha Baker
    R&D Engineer
    National Instruments
    Join the NI Circuit Design Community
    Follow Multisim on Twitter!

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Can not select external input for sound

    can not select external input for sound

    Hey there RoosterMonkey,
    It sounds like you have Soundtrack Pro installed but you cannot select your external audio device as an input. I recommend the troubleshooting steps from the article named:
    Soundtrack Pro 3: Troubleshooting Basics
    http://support.apple.com/kb/ht3659
    Update to the latest software versions
    From the Apple () menu, choose Software Update and make sure that you have the most recent updates for your versions of Soundtrack Pro 3, QuickTime, Compressor, Pro Application Support, and other important system files. Installing the latest updates ensures that your software has the latest improvements and enhancements.
    Note: Be sure the application is in the Applications folder and is named Soundtrack Pro before running Software Update.
    Check compatibility and driver versions for third-party devices
    If you're using a third-party sound card, MIDI interface, storage system, control surface, or plug-in, check the support area on the manufacturer's website to be sure that you're using the latest version of the relevant driver or other software for your product. For information on troubleshooting possible issues with Audio Unit plug-ins, go to Soundtrack Pro 3: Troubleshooting Audio Unit plug-in issues.
    Try a different Multitrack Project or Audio File Project
    Sometimes project files can become damaged, causing unexpected behavior in Soundtrack Pro. To create a fresh project, choose File, then New and select Multitrack Project or Audio File. Test to see if the issue is resolved in the new project.
    Delete the User Preferences
    You can resolve many issues by restoring Soundtrack Pro to its original settings. This will not impact your project files. To reset your Soundtrack Pro user preference settings to their original state:
    Quit Soundtrack Pro if it is open.
    In the Finder, choose Go > Go to Folder from the menu bar.
    Type ~/Library/Preferences  in the "Go to the folder" field.
    Remove the "com.apple.soundtrackpro.plist" file from the Preferences folder.
    In the Finder, choose Go > Go to Folder from the menu.
    Type ~/Library/Application Support/Soundtrack Pro  in the "Go to the folder" field.
    Remove the "EffectsCache.plist" file from the Soundtrack Pro folder.
    In the Finder, choose Go > Go to Folder from the menu.
    Type ~/Library/Application Support/Soundtrack Pro/Layouts  in the "Go to folder" field.
    Remove the "Soundtrack Pro.saved.moduleLayout" file from the Layouts folder.
    In the Finder, choose Go > Go to Folder from the menu.
    Type ~/Library/Caches in the "Go to folder" field.
    Remove the "com.apple.audiounits.cache" from the Caches folder.
    Remove receipts and reinstall Soundtrack Pro 3 and Compressor
    Another approach you might consider is reinstalling Soundtrack Pro and Compressor. To do this effectively, you need to remove the applications and their receipts, then install Soundtrack Pro and use Software Update to install additional updates. Compressor gets installed automatically when you install Soundtrack Pro. You don't have to remove everything that was installed with Soundtrack Pro, so follow the steps below to completely reinstall a fresh copy of Soundtrack Pro. Note: Make sure that you have your installation discs handy before beginning.
    In Mac OS X v10.6 Snow Leopard or OS X Lion
    Open the Terminal application and enter the following commands one at a time and an administrator password when prompted. Note: The commands are case sensitive.
    sudo pkgutil --forget com.apple.pkg.Compressor
    sudo pkgutil --forget com.apple.pkg.Qmaster
    sudo pkgutil --forget com.apple.pkg.VideoOutSupport
    sudo pkgutil --forget com.apple.pkg.PSTSharedA
    sudo pkgutil --forget com.apple.pkg.AppleHDVCodec
    sudo pkgutil --forget com.apple.pkg.AppleIntermediateCodec
    sudo pkgutil --forget com.apple.pkg.DSPPublishing
    sudo pkgutil --forget com.apple.pkg.SoundtrackPro
    sudo pkgutil --forget com.apple.pkg.Uncompressed422
    Then, reinstall Soundtrack Pro and Compressor using the following steps:
    Open the Applications folder. Drag the Soundtrack Pro and Compressor applications to the Trash.
    Insert your Logic Studio or Final Cut Studio installation disc and install Soundtrack Pro.
    When finished installing, choose the Apple () menu, then Software Update to update your software to the latest version.
    Open Soundtrack Pro to verify that the issue has been resolved.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Get input for 100 dynamic fields in a single screen

    Hi all
    I got one requirement wherein i need to accept input for around 100 dynamic fields in a single screen. screen can scroll down if possible.
    Can anyone tell me whether it is possible. if yes please let me have the sample code.
    Thanks
    Ravindra Suvarna

    Ravi,
    Probably a TAB STRIP might help you.
    Seggregate your 100 fields logically, say 5 groups.
    Have a TAB STRIP CONTROL, with 5 tab strips and place 20 fields in each of the tabs. Each tab strip will have a sub screen.
    Regards,
    Ravi
    Note : Please mark the helpful answers.

  • Batch input for IQ02 not accepting "yes" for 'POPUP_TO_CONFIRM'

    Hello,
    I wrote a batch input for a transaction (IQ02) and all works fine except one thing:
    -when all data  is entered and SAVE button is pressed, there is an additional pop-up, from an user exit which needs an YES/NO answer.
    The function module used to display the popup is: 'POPUP_TO_CONFIRM'
    I do not manage to press the YES button. This is the data I receive when pressing F1 on YES button:
    Program         SAPLSPO1
    Function          OPT1
    Normally, in batch input, this is the way I pass user-commands:
    PERFORM bdc_dynpro USING 'SAPMIEQ0' '0101'.
    PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
    But it's not working for this particular situation.
    Any ideas?
    Thank you.
    Edited by: Julius Bussche on Jan 5, 2009 2:07 PM
    Quality of subject title improved.

    Hi
    Find out under which condition popups appears.
    for that condition you have to put the following code
    PERFORM bdc_dynpro USING 'SAPLSPO1' ''<SCREEN_NUMBER>'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=OPT1' .
    Hope this helps,
    Rajat

  • Thank youbfor optimizing the touch input for scrolling on my HP Slate 500, why wont the others do the horizontal scrolling feature enables?

    After testing all other available browsers the past month I have arrived at the conclusion that the Firefox browser is the only one that enables touch input for scrolling. Trying to navigate pages without this function using IE, Opera, Safari & Chrome is just tedious. I'm using the Slate as it was intended, business functions especially day to day charting for my patients in an online system.
    The larger tabs for opening new searches & sites. If Microsoft plans on making W8 truly touch enabled they need to take note of what FF has done here. The touch input is limited on W7 but you've succeeded where others have failed.
    3 cheers for FF! I couldn't do my job and document patient progress w/o your intuitive design. Brendan S. - Latham, NY
    I guess the question is why are the others not developing these key features for Windows based slates...are they ignorant or is FF that much further ahead.

    After testing all other available browsers the past month I have arrived at the conclusion that the Firefox browser is the only one that enables touch input for scrolling. Trying to navigate pages without this function using IE, Opera, Safari & Chrome is just tedious. I'm using the Slate as it was intended, business functions especially day to day charting for my patients in an online system.
    The larger tabs for opening new searches & sites. If Microsoft plans on making W8 truly touch enabled they need to take note of what FF has done here. The touch input is limited on W7 but you've succeeded where others have failed.
    3 cheers for FF! I couldn't do my job and document patient progress w/o your intuitive design. Brendan S. - Latham, NY
    I guess the question is why are the others not developing these key features for Windows based slates...are they ignorant or is FF that much further ahead.

  • Disabling the Qty field for Input for Sub items in Sales Order and Delivery

    Hi..
    I have a requirement, where by we need to disable the qty field vbap-kwmeng for input for sub items of the BOM.
    I am planning to use the user exit USEREXIT_FIELD_MODIFICATION...in the include MV45AFZZ for sales orders.
    But i need to disable the input only after the BOM Explosion and item category determination in the sales order.
    Can i Use the same exit ?? what additional conditions i need to take into account.
    also we need to disable the delivery quantity field also for the sub items of this sales bom.
    I see that this User exit is not available in delivery procesing.  How to acheive the required functionality in the delivery processing...
    your advice is much appreciated in this matter.
    Regards
    Srini

    hi,
    Route is determined
    1.Country of Departure & Departure Zone taken from Shipping Point
    2.Country of Destination & receiving Zone from Ship to party
    3.Shipping condition from CMR
    4.Transportation Group from MMR
    5.Weight Group which is optional.
    Check the above.
    Route is determined in delivery.
    ASHA

  • Help needed in mapping BI query output to use as input for BAPI

    Hi,
    After wrestling with it for quite some time I choose to ask yet another question here. I want to use the output of a BI query I use as input for a BAPI. I just can not get the mapping correctly:
    The query delivers: 104908BA092F7501F5E1008000829000AC
    I need: 104908BA092F7501F5E1008000829000AC
    How can I lose the two first digits? Thanks in advance!
    Best regards,
    Jan

    Nevermind. I found out myself. I am now using the statement MID(@GUID,2,32) in the connection.

  • How to pass the ObjectType as input for search Criteria

    Hi All,
    I have search function that takes the input parameters and returns all the matching rows. this is straight forward only. My problem is having multiple types as a input parameter. that is the reason i am not able to pass the input value for these types.
    My Input Type table looks like this.
    CREATE OR REPLACE TYPE T_T_PARTY_REQUEST_CRITERIA
    AS TABLE OF T_O_PARTY_REQUEST_CRITERIA;
    CREATE OR REPLACE TYPE T_O_PARTY_REQUEST_CRITERIA
    AS OBJECT
    SYSTEM_IDENTIFER VARCHAR2(50),
    PROCESS_TYPE VARCHAR2(50),
    UPDATED_BY VARCHAR2(50),
    STATUS VARCHAR2(50),
    CHILD_REQUEST_INDICATOR VARCHAR2(25),
    TRACKING_REQUEST_INDICATOR VARCHAR2(25),
    REQUEST_TYPE VARCHAR2(50),
    REQUEST_TYPE_CLASS_NAME VARCHAR2(50),
    PARTY_KEY_IDENTIFIER T_T_PARTY_KEY_IDENTIFIER,
    ADDTN_IDENTIFIER_INFO T_T_ADDTN_IDENTIFIER_INFO
    Last two inputs are type again.my question here is how to pass the values for these two T_T_PARTY_KEY_IDENTIFIER and T_T_ADDTN_IDENTIFIER_INFO. I have defined the the last two types following.
    CREATE OR REPLACE TYPE T_T_PARTY_KEY_IDENTIFIER
    AS TABLE OF T_O_PARTY_KEY_IDENTIFIER;
    CREATE OR REPLACE TYPE T_T_ADDTN_IDENTIFIER_INFO
    AS TABLE OF T_O_ADDTN_IDENTIFIER_INFO;
    CREATE OR REPLACE TYPE T_T_ADDTN_IDENTIFIER_VALUES
    AS TABLE OF T_O_ADDTN_IDENTIFIER_VALUES;
    CREATE OR REPLACE TYPE T_O_PARTY_KEY_IDENTIFIER
    AS OBJECT
    PARTY_KEY_TYP_NM VARCHAR2(50),
    PARTY_KEY_VALUE VARCHAR2(50)
    CREATE OR REPLACE TYPE T_O_ADDTN_IDENTIFIER_INFO
    AS OBJECT
    ADDTN_INFO_KEY_TYP_NM VARCHAR2(50),
         ADDTN_IDENTIFIER_VALUES T_T_ADDTN_IDENTIFIER_VALUES
    CREATE OR REPLACE TYPE T_O_ADDTN_IDENTIFIER_VALUES
    AS OBJECT
    ADDTN_RQST_VALUE VARCHAR2(50),     
    ADDTN_RQST_VAL_DT TIMESTAMP(6),
    ADDTN_RQST_VAL_NUM NUMBER(19, 2)
    I have pasted the query here from my function. when i pass the null as part of input for these 2 types my query is working. otherwise it is saying invalid Identifier.First I tried with first Type.
    I am passing the value as
    (PRKYTP.PRTY_KEY_TYP_NM = ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM = 'ALL' OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM IS NULL);
    Error is Error(34,147): PL/SQL: ORA-00904: "ITTPRC"."PARTY_KEY_IDENTIFIER"."PARTY_KEY_TYP_NM": invalid identifier
    SELECT DISTINCT T_O_PARTY_REQUEST_IDENTIFIER(PR.PRTY_RQST_ID) BULK COLLECT INTO T_T_P_R_CRITERIA
    FROM TABLE(CAST(I_T_T_PARTY_REQUEST_CRITERIA AS T_T_PARTY_REQUEST_CRITERIA)) ITTPRC,
    PRTY_RQST PR
    JOIN BUSN_APPLC BIAP ON BIAP.BUSN_APPLC_ID = PR.BUSN_APPLC_ID
    JOIN INTN_STATS INSTS ON INSTS.INTN_STATS_ID = PR.INTN_STATS_ID
    JOIN INTN_PROCES_TYP INTPTY ON INTPTY.INTN_PROCES_TYP_ID = PR.INTN_PROCES_TYP_ID
    LEFT JOIN RQST_TYP RQSTYP ON RQSTYP.RQST_TYP_ID = PR.RQST_TYP_ID
    JOIN ADDTN_RQST_INFO ADTINF ON PR.PRTY_RQST_ID = ADTINF.PRTY_RQST_ID
    JOIN ADDTN_INFO_KEY_TYP ADDKEY ON ADTINF.ADDTN_INFO_KEY_TYP_ID = ADDKEY.ADDTN_INFO_KEY_TYP_ID
    JOIN PRTY_KEY PRTKEY ON PR.PRTY_RQST_ID = PRTKEY.PRTY_RQST_ID
    JOIN PRTY_KEY_TYP PRKYTP ON PRTKEY.PRTY_KEY_TYP_ID = PRKYTP.PRTY_KEY_TYP_ID
    WHERE (BIAP.BUSN_APPLC_NM = ITTPRC.SYSTEM_IDENTIFER OR ITTPRC.SYSTEM_IDENTIFER = 'ALL' OR ITTPRC.SYSTEM_IDENTIFER IS NULL)
    AND (INTPTY.INTN_PROCES_TYP_NM = ITTPRC.PROCESS_TYPE OR ITTPRC.PROCESS_TYPE = 'ALL' OR ITTPRC.PROCESS_TYPE IS NULL)
    AND (PR.UPDT_BY = ITTPRC.UPDATED_BY OR ITTPRC.UPDATED_BY = 'ALL' OR ITTPRC.UPDATED_BY IS NULL)
    AND (INSTS.INTN_STATS_NM = ITTPRC.STATUS OR ITTPRC.STATUS = 'ALL' OR ITTPRC.STATUS IS NULL)
    AND (PR.CHLD_RQST_IND = ITTPRC.CHILD_REQUEST_INDICATOR OR ITTPRC.CHILD_REQUEST_INDICATOR = 'ALL' OR ITTPRC.CHILD_REQUEST_INDICATOR IS NULL)
    AND (PR.TRACK_RQST_IND = ITTPRC.TRACKING_REQUEST_INDICATOR OR ITTPRC.TRACKING_REQUEST_INDICATOR = 'ALL' OR ITTPRC.TRACKING_REQUEST_INDICATOR IS NULL)
    AND (RQSTYP.RQST_TYP_NM = ITTPRC.REQUEST_TYPE OR ITTPRC.REQUEST_TYPE = 'ALL' OR ITTPRC.REQUEST_TYPE IS NULL)
    AND (RQSTYP.RQST_CLASS_NM = ITTPRC.REQUEST_TYPE_CLASS_NAME OR ITTPRC.REQUEST_TYPE_CLASS_NAME = 'ALL' OR ITTPRC.REQUEST_TYPE_CLASS_NAME IS NULL)
    -- AND (ITTPRC.PARTY_KEY_IDENTIFIER IS NULL);
    -- AND (ITTPRC.ADDTN_IDENTIFIER_INFO IS NULL);
    AND (PRKYTP.PRTY_KEY_TYP_NM = ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM = 'ALL' OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM IS NULL);
    can some one tell is this approach is correct. if not suggest me.

    I am passing the value as
    (PRKYTP.PRTY_KEY_TYP_NM = ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM OR Here PART_KEY_IDENTIFIER is a Nested table. So you cant join it like that.
    Try like this
    prkytp.prty_key_typ_nm in (select party_key_typ_nm from table(ittprc.party_key_identifier)) orHere is a example based on EMP table.
    I have created following nested table.
    SQL> create or replace type my_emp_list as table of number(10)
      2  /
    Type created.
    SQL> create or replace type my_dept_obj as object(deptno number(10), emp_list my_emp_list)
      2  /
    Type created.
    SQL> create or replace type my_dept_tbl as table of my_dept_obj
      2  /
    Type created.I am going to use the below nested table data in a query to get value from emp table
    my_dept_tbl
       my_dept_obj
         10, my_emp_list(1,2,3,4,5)
       my_dept_obj
         20, my_emp_list(6,7,8,9)
    )The query would be like this
    SQL> select e.*
      2    from emp e
      3    join table
      4         (
      5           my_dept_tbl
      6           (
      7             my_dept_obj
      8             (
      9               10, my_emp_list(7839,7782)
    10             ),
    11             my_dept_obj
    12             (
    13               20, my_emp_list(7566,7369)
    14             )
    15           )
    16         ) t
    17      on e.deptno = t.deptno
    18     and e.empno in (select column_value from table(t.emp_list))
    19  /
         EMPNO ENAME  JOB              MGR HIREDATE         SAL        COM     DEPTNO
          7839 KING   PRESIDENT            17-NOV-81       5000          0         10
          7782 CLARK  MANAGER         7839 09-JUN-81       2450          0         10
          7566 JONES  MANAGER         7839 02-APR-81       2975          0         20
          7369 SMITH  CLERK           7902 02-APR-81       2975          0         20
    SQL>

  • GET_FILE_LIST action:Folder & Mask are the mandatory inputs for this action

    hi all,
    Iam using GET_FILE_LIST action to retrieve few files from a folder stored in WEB directory. Folder & Mask are the mandatory inputs for this action to read the files. To get any xml files we can use the Mask value as ".xml". Is there a way or any mask value which would get all the files from the folder and then using a condition or switch I can create a desired sequence based on file type.
    Thanks,
    Gilmour

    Hi Gilmour,
    Try with mask value  *  ("asterisk")
    or
    ("asterisk.asterisk")
    Regards,
    Anil
    Edited by: Anil Dwivedi on Feb 19, 2009 9:42 AM

  • 4) Numerial input for a group of data

    LookoutDirect 4.5
    4) I have a table of hundreds of data, and all of them need a input. How can I make only one numeral input for all of them? That means I click any data in the table I can get to the same numeral input popup window and enter a number and it goes to the object I clicked on?

    Ryan,
    It doesn't work. See the attachment below.
    I tried many different expressions of the links, even I directly used DL1.V3100, none of them worked.
    I noticed that in some expressions the link wouldn't show up in the selection list of the Pot2 remote URL, mycomputer\process1; and if I click on mycomputer\process1 under network, the Lookout itself became dead, and I got to shut down lookout.
    If you have a PLC (may not be the same DL260 as I used) Please try to make this test program work. I doubt the dynamic link will work in this way.
    If it doesn't working in this way, please find another way to help.
    Thanks.
    Attachments:
    Process1.JPG ‏35 KB
    process1.lks ‏4 KB

  • Using selected output from a RFC as input for another RFC

    Hi,
    I'm new at this so I may be doing things completely wrong.
    I have two models based on adaptive RFC.
    The first populates a list of Org Units. (Orgeh_Out)
    The user then selectes multiple Org Units from this list.
    I want to use the selected Org Units as Input for the second RFC which will display the personnel numbers in the selected Org Units. (Orgeh_Tab_In)
    Model 1 works fine but I am having difficulty in populating the Org Unit input table for the second model.
    public void RFCPernrFill( )
        //@@begin RFCPernrFill()
         Z_Wd_Pernr_Input pernrInput = new Z_Wd_Pernr_Input();
         wdContext.nodePernrList().bind(pernrInput);
        int orgCount = wdContext.nodeOrgeh_Out().size();
          for (int i=0; i<orgCount; i++) {
                if (wdContext.nodeOrgeh_Out().isMultiSelected(i)) {
                IOrgeh_OutElement thisOrgUnit = wdContext.nodeOrgeh_Out().getOrgeh_OutElementAt(i);     
              Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
              String st = String.valueOf(thisOrgUnit);
              tmpOrgTab.setOrgeh(st);            //<-- Causes error but will only accept a String
              pernrInput.addOrgeh_Tab_In(tmpOrgTab); 
    I don't understand why tmpOrgTab.setOrgeh will only accept a String and not the 'thisOrgUnit' variable.
    i.e. why couldn't I say tmpOrgTab.setOrgeh(thisOrgUnit) ?
    The command tmpOrgTab.setOrgeh(st); causes an error however if I hard code a Org Unit tmpOrgTab.setOrgeh("5000011"); it works. The error I get is :
    Type conversion error, field ORGEH, complex type class com.sap.com.testing.pernrlist.model1.Zwd_Orgeh

    Hi
       Can you give me the structure of the proxy classes generated. I will give you the working code :).
    The lines of code
    Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
    String st = String.valueOf(thisOrgUnit);
    tmpOrgTab.setOrgeh(st); //<-- Causes error but will only accept a String
    pernrInput.addOrgeh_Tab_In(tmpOrgTab);
    There is a structure in your RFC called ZWD_ORGEH.
    Instantiate this like you have done.
    Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
    Now the following line of code
    tmpOrgTab.setOrgeh(st)
    Here you say it is only accepting a string. But what i feel is that you would have another internal structure and u need to instantiate that.
    Anyway if you just send me the proxy classes generated i will be able to help you in your code.
    Also give me the structure of the RFC.
    Meanwhile check this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/effective web dynpro - adaptive rfc models
    The above link will also give you some input to your prob.
    regards
    Ravi

  • Use XML files stored in directory of Application server as a input for XI ?

    I have a scenario that there is a xml file stored in sap application server for example /inf/ERQ/XML/XXX.xml which i want to use it as an input for XI. I know that there is an adapter in XI for getting xml file stored in normal path but in my situation it's in application server of SAP so i don't know how to do this.
    Any solution or example for this? Thank you in advance.
    Best regards

    Hi,
    We can read this file through FILE adapter with FTP protocol, before that i think need permission from basis for access.  Configure source(according to xml format) and target structure according to your requirement.  But one thing should remember in XI/PI sour/target XML formats should contain Message type name & namespace name else it can't work.
    Find below link for more information.
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)

  • My Sony Bravia KDL-40CX520 does not have a coaxial input for my digital antenna...

    What can I do if my tv has no coaxial input for my digital antenna?
    Thanks...
    Update: I found a Euro connector which got me the connection I needed. However, I am still unable to locate any digital antenna channels within the 50 mile radius of the antenna/w amplifier.

    HI nikkijordyn,
    Welcome to the Sony Community!
    IMPORTANT: Before we proceed further, please check the supplied manual of the TV to confirm if the television is set to NTSC or PAL. US is under NTSC video system. 
    If the TV is set to NTSC, please perform the troubleshooting steps below:
    Upon checking the specifications, this TV has RF input that connects to your cable or over-the-air antenna.
    If no digital channels can be found, then there may not be any digital channels currently available. Perform an Auto Program to have the TV search for any available digital channels.
    Perform Auto Program, please check the steps below:
    Press Home button on the remote
    Go to Channels and Inputs
    Select Auto Program
    NOTE: We cannot guarantee the functionality or compatibility of those 3rd party devices. 
    If my post answers your question, please mark it as "Accept as Solution"

Maybe you are looking for