Generate output based on the analysis of a input array

Hello!
I would appreciate some help with this:
- I have an input array X. It is a phase array, in other words, it has values from -pi to pi. 
- I want to create digital pulses that match with certain values of phases in X. Example: If a value of X, in position "5", is -3*pi/2, i would like to generate , in the output array Y, a value of 1 in its position "5".
My problem here is that i am not being able to detect the position of the array where my condition is met. I tried to use a case structure and a for to do this, without success.
I hope i was clear enough, thank you very much.

Ok, now that i Got the phases, i have to generate the output. Knowing the period of the phases wave and the timing of a certain phase, i want to generate a digital output in a future time that falls in the specified phase. It's a closed-loop of stimulation. What i'm trying to do is this:
- First of all, I get the phases like Altenbach said.
- Then, i do the time calculus to predict time intervals that i would wait to generate my pulse, and that pulse should fall in the specified phase of the input waveform, since its a closed-loop system.
I'm attaching the current vi that i designed, and I appreciate any help. 
The real trouble now is generate the output pulse/ boolean in the right time, with a duration of, i dont know, 10ms, just to make it work. something like this: _______|              |________
                                                                                                                                                                                                                                            <--10ms-->
Best Regards,
Attachments:
PLOT_SIGNAL_ALTERNATIVA.vi ‏67 KB

Similar Messages

  • STO - Generating an Output based on the Plant

    Hello
    I do have a requirement to generate an Output(EDI) based on the Plant to which the material is being delivered to. The condition record that I have in place(Configured via M/59) is Doc. Type/P.Org/P.group/Supplying Plant/Plant. In the list of available fields, i see both Supplying plant as well as Plant. Access sequence and MN04 condition records have been maintained. Likewise an output device has also been maintained. The Q's i have are -
    1. Have any of you had such a  requirment( to use the Plant)?
    2. Plant is at item level and what should happen if the plant in the STO is different at the item level.
    3. SAP have also provided Material, which again is at the item level. What is the logic behind such?
    Appreciate if you can advice.
    Thanks
    Ajay

    Hi Ajay,
    This is related to PP/MM query pls put in the pp/mm form.
    Regards,
    Anil

  • Generating AO based on the value of AI?

    Hello all,
    I am new to labview and require help in putting together an application.
    I have a PCI-6229 card hooked up with a set of 64pin- BNC converters.
    The DAQ card has 32 analog inputs and 4 analog outputs. I have an
    analog input which is pressure data coming from a analog pressure
    transducer. This pressure data ranges between 0 mm Hg to 140 mm Hg.
    When the pressure reaches 20mm Hg, I want to generate an analog output
    on the 4 analog channels and stop this generation once the pressure
    goes beyond 50mm Hg. This generated analog output is used to control
    the motion of 4 linear actuators hooked onto each analog output channel.
    I would appreciate it, if someone could help me out with this project.
    Thanks
    Murali.

    Hi Murali,
    You will need to use triggering for your application.  In this case, you have a few options of how you want to program it.  Your application is going to require 2 triggers: one to start the analog output and one to stop the analog output. 
    You can use the analog input from the pressure transducer as one of your triggers.  You can acquire the pressure as a voltage and trigger the analog output off of the voltage level.  You will have to use software for the other trigger.
    For example: you can continuously acquire your analog input data and use a start trigger based on that analog signal to start your analog output.  Then you can use a software trigger to stop your analog output when your analog input voltage reached a defined level. I created an example program by modifying a couple of LabVIEW shipping examples programs to show you this.
    The LabVIEW example finder is another great resource.  I recommend looking at 2 examples:
    1. Continuous Acquire and Graph Voltage Internal Clock which is located in Help>>Find Examples>> Hardware Input and Output>>DAQmx>> Analog Measurements>> Voltage.
    2. Continuous Generate Voltage Waveform Internal Clock Analog Start which is located in Help>>Find Examples>> Hardware Input and Output>>DAQmx>> Analog Generation>> Voltage.  This example will generate an analog output after receiving an analog trigger.
    I hope this information helps you with your project.
    Regards,
    Hal L.
    Attachments:
    analog input analog output triggering.vi ‏172 KB

  • Setting up a different printer for a delivery output based on the sales grp

    Hi All,
    Is there a way to send delivery output to a specific printer based on the sales group in the delivery document apart from the normal printer maintained in VV22 for that output type.
    I have seen printer determination based on plant and storage location combination but not specific to any other fields.
    Your suggestions will be highly appreciated.
    Regards,
    MS

    Dear mandapathi ,
    In the output determination for delivery. check whether there is SALES GROUP in the condition table (field catelog).
    Else you may add this field (have done in pricing and it requires adding the new field to some pricing tables.. similarly we might need to add this new field in the output tables also)
    If adding this new field works well, then i hope we can set the printer for this combination in the condition record.
    Thanks & Regards,
    Hegal K Charles

  • Query output based on the date range ...

    Hi All,
    I have an issue related to the jump query, main query based on the time frame. For Example if he selects Sold_To : 6895 for the Calday 10/01/2007 – 01/31/2008 and when jumps to jump query , the jump query should display the data based on the input given in the main query. That is it should show the data individually for four months.
    Expecting the reply from your side...
    Thanks in advance…
    Regards,
    Sruthi

    Sruthi,
    Make sure that u have those 3 fields in 2nd Query and CALDAY with Variable.
    Create settings in RSBBS.
    Click on ASSIGNMENT DETAILS tab
    CALDAY  >  Type = Variable  > Selection Type = Selection/Single value/Multiple single values ( same like ur first query )
    All other fields ( 3 na ) > Type = Generic
    Click on Continue / Save.
    If you need more info...if possible come to yahoo chat my ID is [email protected]....and am online now.
    Regards,
    Ramkumar.

  • How to determine output based on the content of purchase order

    Hi Gurus,
    I've a typical requirement at my present project. With vendor X we have punchout catalogs. while creation of shopping cart, we are not allowing the user to mix catalog items and non catalog items into the same shopping cart. Once the shopping cart all shopping carts are automatically coverted into PO.
    Now the challenge we are facing is, if the PO is created based on items from catalog, we want to send such PO via XML interface to the vendor. If the PO is created based of items which are free-form, we want to send such PO via Smartform email attachment.
    As this condition can only be determined at runtime, I'm finding a challenge to configure this. In both PO cases, vendor is same but the content of the PO is different. One contains all items that are catalog based and other contains items which are non catalog.
    Can someone help me find solution for this issue.
    Regards,
    Sam K

    Change Forms for Document Output
    You can use the Business Add-In BBP_OUTPUT_CHANGE_SF to override the Smart Forms that are defined in the activity Define Actions for Document Output.
    This BAdI serves as an alternative to the IMG activity Condition-Dependent Document Output.
    Note that no Smart Forms are used for output via XML.
    Standard settings
    The following parameters are available in the method CHANGE_FORMS. Depending on the input parameters, you can define other Smart Forms to output the document type.
    Importing
    IV_GUID
    Globally Unique Identifier of the document.
    IV_MEDIUM
    Output medium found for this document according to Define Actions for Document Output (print: PRN, fax: FAX, e-mail: MAI, XML: MET).
    IS_PARTNER
    Business partner to whom the document is sent.
    IV_OBJECT_TYPE
    Business transaction type.
    Changing
    CV_SMARTFORM
    Smart Form used to output the document.
    E-mail output
    Smart Form with which the document is added to the e-mail in the form of a PDF attachment.
    Note:
    Note that the BAdI with this parameter overrides the parameter form name (technical name of the Smart Form BBP_PO for example) irrespective of the defined determination technology (SRM: Purchase Order Output Determination, for example).
    CV_SMARTFORM_MAIL
    Smart Form used to define content and layout of the e-mail text in the case of e-mail output.
    CV_SUBJECT_MAIL
    Smart Form that determines the text in the (short description of the e-mail content).
    As an alternative to this BAdI, you can control document output via determination technology.
    For more information, see Condition-Dependent Document Output.
    EXPLORE THIS badi

  • Filtering based on the value in a Input Box?

    Is it possible to filter a gallery based on something I enter into an input box?
    If so what is the syntax for the command I need?
    Right now I am trying Filter(UF_Football_Roster, Number =) and then I have no idea what to put after the equals sign.
    Thanks for the help!

    Hi Philip,
    Yes. Assuming Number is a column in the table_UF_Football_Roster, and assuming you added an input text visual named InputText1, here is the syntax:
    Filter(UF_Football_Roster, Number = InputText1!Text)
    If the value in the Number column are stored as numbers you may need to use the function
    Value:
    Filter(UF_Football_Roster, Number = Value(InputText1!Text))

  • PO output messages control based on the reason code

    HI,
    The requirement is to generate the PO output message based on the value of 'Reason for change' code. suppose
    Ex:generate the output if the reason code is 2.
    I know there is a way to control the message output by defining the 'fields relevant to printout of changes' in SPRO. But we are not going to use this option.
    I have to control the output based on the Reason code. Please let me know.
    Regards,
    Nishant

    Hi Nishant,
    I will give you another input. This should be your last option. As mentioned above, you need to create an implicit enhancement in the following class method and export the content of the internal table MY_TABLE which contains the current values of the versions.
    Class - CL_GRID_VIEW_MM , Method - HANDLE_ON_DATA_CHANGED
    Then you import the same in your exit.
    Regards,
    Abijith

  • How to group the output based on DAYS field

    Hi
    I am modifying the predefined ALV report "RFTMBL01" .I had added the days field to that report output and I have to group the output based on the DAYS field
    Records within 0-10 days in one group
    Records within 10-30 days in one group
    Records above 30 days should be  one group
    No of days may repeat that means with no of days 10 .many records will be there
    There is also a field by name "AMOUNT" in my output.
    I have to calculate SUBTOTALs at the end of every group and at the end of the report i should caluculate GRAND TOTAL.
    Please remember that i should not use any any BLOCKED ALVs and for Totals i should not use the SYMBOLS provided in the application toolbar of the report
    Thanks in Advance

    <b>>>>The file has to be routed based on the Company Code</b>
    check with xpaths.
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    <b>>>>different file should have different file name again based on the company code.</b>
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

  • Generating report based on dynamically generated sql query

    I have to rewrite asp reports to oracle reports.
    The original application has forms in asp where reports are generated dynamically based on the options selected.
    There are many options to select.
    Some add filter criteria to where clause.
    I have no problem with this. As i can generate report using parameter form.
    whereas i don't know how to generate reports whose columns change based on the user selection.
    The front end screens are going to be in java and jsp pages. The only way i can think of is generating reports on all possible options the user may select. But, as there are more than 15 options, i think this is not the right approach.
    How can i achieve this.
    Thank you very much.
    navya.

    One method that comes to mind would be to use an after parameter form, and use lexical parameters to create dynamic statements.
    For example in your after pform:
    If :P_NAME = 'JOHN' then
    :P_SELECT = 'SELECT COL1, COL2 ';
    :P_FROM = 'FROM JOHN ';
    :P_WHERE = 'WHERE COL3 = 'JOHN';
    END IF;
    Then in your query, you could say:
    &P_SELECT
    &P_FROM
    &P_WHERE
    Something like that - If only parts of you where statement will change, you can just write that one part -
    like
    IF :P_STATE is not null then
    :P_STATE = ' and table.state = :P_STATE_IN ';
    else :P_STATE = ' and 1=1 ';
    end if;
    and in your query...
    where....
    &:P_STATE
    So IF a person enters a state, then limit the search to that state, or else do a 1=1.
    Hope this gives you a start

  • The ABAP/4 Open SQL array insert results in duplicate Record in database

    Hi All,
    I am trying to transfer 4 plants from R/3 to APO. The IM contains only these 4 plants. However a queue gets generated in APO saying 'The ABAP/4 Open SQL array insert results in duplicate record in database'. I checked for table /SAPAPO/LOC, /SAPAPO/LOCMAP & /SAPAPO/LOCT for duplicate entry but the entry is not found.
    Can anybody guide me how to resolve this issue?
    Thanks in advance
    Sandeep Patil

    Hi Sandeep,
              Now try to delete ur location before activating the IM again.
    Use the program /SAPAPO/DELETE_LOCATIONS to delete locations.
    Note :
    1. Set the deletion flag (in /SAPAPO/LOC : Location -> Deletion Flag)
    2. Remove all the dependencies (like transportation lane, Model ........ )
    Check now and let me know.
    Regards,
    Siva.
    null

  • IDOC Number based on the output type

    Hi,
    I have a special requirement where in I need to find the IDOC number generated from the output type .
    I have the NAST details and the Invoice number and need to find the IDOC generated for the particular NAST entry.
    Is there any table or FM which gives this information in SAP.
    Please let me know.
    Regards
    Praneeth

    All,
    Solved myself.
    Used FM WFMC_PROTOCOL_GET to get the IDOC number based on the NAST value.
    Regards
    Praneeth

  • Generate multiple Shipment Output based on Ship-to

    Hi,
    In a shipment i have deliveries that belongs to more than one ship to.
    Ex : Shipment 2345
    Deliveries 80003435 - Sold To 100034, Ship To 456456
    Deliveries 80003436 - Sold To 100034, Ship To 456458
    We need to generate output for this shipment for both the ship to's.
    Could you please advise .
    Thanks,
    Kumar.

    Hi,
    pleaseconfigure out put determination procedure in SPRO or NACE for V7 application.
    maintain two condition types named as SOP1 for 1st SH and SOP2 for the second SH and one or two condition tables basing on the requriment.
    create condition record giving importace to SH.
    follow the standard out put determination procedure steps.
    hope this willl solve your issue.
    regards
    balajia

  • OBIEE Report - filter based on the result from another analysis

    Hi,
    I am using OBIEE 11g,
    I am trying to use a filter which is based on the result from another analysis. I have an analysis A which is as table 1, and I want to filter the respective columns of analysis B (Table B) based on analysis A to remove the duplicates for march 01, 02, and 07 , but it is not working properly. I took a max of start and end time when I created analysis A. Please let me know if I did anything wrong. thanks.
    Table 1
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    xxxxxxx
    2015-02-26
    9:00
    13:00
    00:00:00
    00:00:00
    2015-02-27
    12:00
    18:00
    00:00:00
    00:00:00
    2015-02-28
    8:00
    14:00
    00:00:00
    00:00:00
    2015-03-01
    14:00
    20:00
    14:00:00
    20:00:00
    2015-03-02
    16:00
    20:00
    16:00:00
    20:00:00
    2015-03-07
    14:06
    20:02
    14:00:00
    20:00:00
    2015-03-11
    16:00
    20:00
    16:00:00
    20:00:00
    2015-03-14
    8:00
    14:00
    00:00:00
    00:00:00
    2015-03-25
    14:00
    20:00
    16:00:00
    20:00:00
    Table 2
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    Hours
    xxxxxxx
    2015-02-26
    9:00
    13:00
    00:00:00
    00:00:00
    -3
    2015-02-27
    12:00
    18:00
    00:00:00
    00:00:00
    6
    2015-02-28
    8:00
    14:00
    00:00:00
    00:00:00
    6
    2015-03-01
    14:00
    20:00
    00:00:00
    00:00:00
    6
    14:00:00
    20:00:00
    6
    2015-03-02
    16:00
    20:00
    00:00:00
    00:00:00
    4
    16:00:00
    20:00:00
    4
    2015-03-07
    14:06
    20:02
    00:00:00
    00:00:00
    6
    14:00:00
    20:00:00
    6
    2015-03-11
    16:00
    20:00
    16:00:00
    20:00:00
    4
    2015-03-14
    8:00
    14:00
    00:00:00
    00:00:00
    6
    2015-03-25
    14:00
    20:00
    16:00:00
    20:00:00
    4

    Why avg here?
    What columns you want to show in the report?
    for a employee for given date if he have 2 rows then you may sum up hours right?
    Employee Number
    Date
    IN
    Out
    Start Time
    End Time
    Hours

  • Conv. based on the month - Need to display the output in quarterly basis.

    Hi Gurus,
    I need to display the output quarterly based on the month.
    For example,
    If the year is 2012 and month is between
    01 to 03 i need to display it as 2012Q1
    likewise 04 to 06 as 2012q2
    and 07 to 09 as 2012q3
    and 10 to 12 as 2012q4.
    Please help me by providing sample codes. Please help yourself by writing the code and get back when you have a specific question.
    Thanks!
    Regards,
    Manoj
    Edited by: kishan P on Mar 2, 2012 3:14 PM

    Hi Vinod
    To get the last 13 months in webi report .follow below approach
    Assuming you have calendar Month object in the report.
    convert your selected date into M/d/yy format . let's say you selected 12/18/13 , your variable should be 12/1/13
    variable :
    Selected Month =ToDate(FormatDate(useresponse("Date");"Mmm yyyy");"Mmm yyyy")
    Flag for month     =ToDate([CalMonth];"Mmm yyyy")<=[Selected Month]
    Report filter          =[Flag for month]+Previous(Self)
    select the table you want to filter
    add filter -> Report filter between 1 to 13.
    Hope this will help.

Maybe you are looking for