Determination of the moment at a given value of channel

I have a simple script question DIAdem.  I have a dataset using two channels: 1) and 2) Switch_1.  'Switch_1' has Boolean values (0 or 1... or turn off).  In the file, the "Switch_1" varies from 0 to 1 several times.  I want to wrtie a script to determine the period of time which 'Switch_1' is equal to 1.  Can someone help me to do this?

Hi Dan,.

Sorry for the delay.  Put the two enclosed scripts in the same folder somewhere, and then run the 'County State Duration.VBS' in the Panel SCRIPT DIAdem.  It will pop up a dialog file - select the DDHN file that you sent me.  It loads the file, calculates the delta time, divides the values of the State of the switch in a group '0' and '1', then calculates the sum of all time to delta for each group.  You can find the result in the "Description" of each group and property 'Description' of each channel "time".

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • Capture the moment of execution prompt values to use in the formula of financial reports

    Hello
    I need to ask two things:

    1. we create a report (via Hyperion Financial reporting tool) in which the user will select a month (through the execution of a command prompt) for which data should be displayed.
    We need calculate and display in the report, A-T-D average until this month for which we have to count the chosen month (for example, our fiscal year starts from July, July count = 1. Y-T-D avg in October = A-T-D value until October/4). Therefore, to get this number, we need capture the value of the prompt of what month the user has selected.

    There are several other cases where you need to capture the prompt values selected by the user.

    2. can we compare the current value of a dimension with a string in the IfThen() structure in the reporting tool hyperion financial? I was not able to achieve the same thing with success. Also, I need to get the value of a cell to use in an IfThen() State, but it only supports line or column number and not a cell (for example IfThen([1]=0,1,2) and not IfThen([1,B]=0,1,2)).

    The pointers will be highly appreciated.

    Thank you and best regards.

    Published by: N.S. April 26, 2011 01:31

    Hi NS

    Have you seen the Workforce Planning or Capex Palnning for Hyperion Planning modules? They contain called members calendar TP-Index and Fiscal TP-Index (or something similar), these are members the value dynamic calc and their sole purpose is to return an index value for a given for use in formulas in Essbase reporting period (or as I've used them repeatedly in the reports).

    If you set these to the top then in your report, you can use the command prompt to call the TP-Index for OCTS, for example 4 tax value in one column and the guest even recover your CDA value in a second column then in a third column simply divide one by the other. You could even do the calculation in Essbase so if needed and just get it back.

    I do not think that the IfThen en function a text value.

    Hope this helps
    Stuart

  • The thickness of particle detection and eradication of these particles with thickniss less than a given value

    In my project after comparison of model or get I the image with defects.

    I defects (particles) are relevant with a thickness greater than a given value.

    I have tried a few methods, particle analysis, read a few articles in this forum... But I can't find any real solution to my problem.

    I need suggestions how to on this subject.

    Thanks in advance.

    Devrim

    Is there a way to filter the particles from erosion.  If the particle is still after N erosions, it is preserved.  Otherwise, it is removed.  The function is IMAQ RemoveParticle.

    Bruce

  • Hi, I do not know why the moment I try to buy a package of software for my business, I can't go any further because I can't select my country (ITALY-EURO) COSTA RICA control value is selected automatically. I need help. A lot of satisfaction

    Hi, I do not know why the moment I try to buy a package of software for my business, I can't go any further because I can't select my country (ITALY-EURO) COSTA RICA control value is selected automatically. I need help. A lot of satisfaction

    Contact Adobe Support when available (usually not weekends)...

    Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • Determination of the value of column based on previous records

    Hello

    I have this table. Please just exclude the Prev_Equal column for my original table.
    +---------+--------+---------+---------+------------+
    | info_id | fruit  | Qty In  | Qty Out | Prev_Equal |
    +---------+--------+---------+---------+------------+
    |       1 | apple  |      10 |       7 |         No |
    |       2 | apple  |      10 |      10 |         No |
    |       3 | apple  |      10 |       8 |        Yes |
    |       4 | orange |      20 |      18 |         No |
    |       5 | orange |      20 |      20 |         No |
    |       6 | orange |      20 |      17 |        Yes |
    |       7 | orange |      20 |      20 |        Yes |
    |       8 | orange |      20 |       1 |        Yes |
    |       9 | grape  |      15 |      15 |         No |
    |      10 | grape  |      15 |      15 |        Yes |
    +---------+--------+---------+---------+------------+
    For the table of Prev_Equal, it is marked as being:
    No: if it's the first item or there is no history that has quantity = QTY OUT
    Otherwise Yes

    How do I do this in Oracle SQL?

    Thanks in advance

    Hello

    Claude2005 wrote:
    ... For the table of Prev_Equal, it is marked as being:
    No: if it's the first item

    I assume you mean the first element in order of info_id for a given value of fruits.

    or there is no history that has quantity = QTY OUT
    Otherwise Yes

    How do I do this in Oracle SQL?

    LAG can only watch a specific previous line; This is why the above fails on the line where info_id = 7. We need a function that can examine all the previous lines, like this:

    SELECT       t.*
    ,       NVL ( MAX ( CASE
                         WHEN  qty_in = qty_out
                           THEN  'Yes'
                         END
                  ) OVER ( PARTITION BY  fruit
                               ORDER BY        info_id
                               ROWS BETWEEN  UNBOUNDED PRECEDING
                           AND        1          PRECEDING
                           )
               , 'No'
               )          AS prev_equal
    FROM       t
    ORDER BY  info_id
    ;
    
  • restrict the application of hierarchy based on a given value at the leaf node level

    Is it possible to restrict a query of the hierarchy based on a test given at the leaf node level?

    For example, in the data presented below, I like to shoot the entire hierarchy for terminal nodes that have 'John' in the criteria:

    Parent value criteria
    Z
    A Z
    B HAS
    C B John
    D B Smith
    E Z
    F E
    John F G
    H F Neal
    I have F John

    Filertering on John I want to return together to resemble the following prints:
    A
    B
    C
    F
    G
    I have

    I tried the following, but it only gives me the nodes:
    SELECT
    LPAD (' ', (LEVEL) * 3,'.) ') || t.Valeur
    OF tbl_test t
    WHERE t.criteria = "John".
    START WITH t.valeur = "Z".
    CONNECT BY PRIOR t.valeur = t.parent;

    Rule return form the above query:
    C
    G
    I have

    Any help is greatly appreciated.

    It is possible, but not conventional =)

    Sys_connect_by_path allows you to concatenate the path and another request of the hierarchy of dividing a value generated in the rows.

    with t as (
    select 'Z' as  Val , null as  Par, null as  Criteria from dual union all
    select 'A' as  Val , 'Z' as  Par, null as  Criteria from dual union all
    select 'B' as  Val , 'A' as  Par, null as  Criteria from dual union all
    select 'C' as  Val , 'B' as  Par, 'John' as  Criteria from dual union all
    select 'D' as  Val , 'B' as  Par, 'Smith' as  Criteria from dual union all
    select 'E' as  Val , 'Z' as  Par, null as  Criteria from dual union all
    select 'F' as  Val , 'E' as  Par, null as  Criteria from dual union all
    select 'G' as  Val , 'F' as  Par, 'John' as  Criteria from dual union all
    select 'H' as  Val , 'F' as  Par, 'Neal' as  Criteria from dual union all
    select 'I' as  Val , 'F' as  Par, 'John' as  Criteria from dual
    )
    select distinct regexp_substr(path, '[^,]+', 1, level) as val
    from (  SELECT  sys_connect_by_path(val,',') as path , rownum as row_id
              FROM   t
            WHERE t.criteria = 'John'
            START WITH t.val = 'Z'
            CONNECT BY t.par = PRIOR t.val
         )
    connect by nocycle regexp_substr(path, '[^,]+', 1, level) is not null
    and prior row_id= row_id
    and prior dbms_random.value is not null
    
  • Make editable field when the checkbox is enabled, otherwise given value read-only

    I try to make a PDF form to fill out, and a document existing, using Acrobat Pro, which does the following:

    Form is designed to allow customer agrees to buy a personalized work of art.

    The work has a base price, ArtworkPrice. (The ArtworkPrice field is editable)

    The customer can choose to include a picture frame. (AddFrame 'Yes' box.)

    Choose 'Yes' to add a frame, adds an amount.  (The FramePrice field is editable only if AddFrame checkbox is enabled)

    Otherwise, leaving unchecked AddFrame fills the FramePrice field with a value of 0.00.

    The TotalPrice is calculated as the sum of the fields FramePrice and the ArtworkPrice. (The TotalPrice field is read-only)

    So... this part of the form looks essentially this:

    AddFrame? [] Yes

    ArtworkPrice _ $ + FramePrice $_ = TotalPrice $_

    The FramePrice field must be 0.00 (and not editable) at all times unless the AddFrame checkbox is selected.

    How can I do this?

    Add this code to the MouseUp of AddFrame event:

    If (this.getField("AddFrame").value == "Off") {}

    this.getField("FramePrice").value = 0;

    this.getField("FramePrice").readonly = true;

    } else {}

    this.getField("FramePrice").value = "";

    this.getField("FramePrice").readonly = false;

    }

  • Show and hide the drop-down menus on the page of the product, based on selected values

    Hello.

    I wish that my product page to view different drop-down lists following, based on the values of individual drop-down list.


    I managed to achieve this through JavaScript, but I don't like how it works.

    As far as I know, there is no identifier for each individual drop-down list to determine who it is, so I can't for the moment is to rely on their order in the DOM, which is bad and it is difficult for me to create a solution that might work for all products.

    For example, if the following is a single attribute:

    < div class = "catProductAttributeGroup" style = "" display: none; "> < div class ="catProdAttributeTitle"> metal Foiling < / div > < div class ="catProdAttributeItem"> < select > < option value =" ">--please select--< / option > < option value ="6051720"> not necessary < / option > < option value ="6051721"> sheet ONE side + £45 < / option > < option value ="6051722"> Foiling BOTH sides + £75 < / option > < / select > < / div > < / div >"

    I would like to than the div outermost having some sort of html attribute that contains the product id attribute. Something like: data-attribute id = "XXXXXXX". Is this possible?

    Here's what I have so far:

    I use {tag_attributes_json}, {tag_product_json} and {tag_currency} to get these values in javascript on the page loading, so I can use them later.


    Then, I hang on to change the events of the drodpowns I have and then toggle their visibility based on those who are selected. I rely on the jequery ': eq (n)' selector to achieve, I don't like. Is there an option with {tag_attributes} which to add additional information (such as the ID attribute on the menu drop-down) on the generated HTML code?

    All works in the beginning, but if I can 'Add to Cart', the product element get ajax-reloaded and events are suddenly off the hook, so it no longer works. For this one, there are two options:

    1. I could hang on to an event that triggers once the product added to the shopping cart and the page is ready. Is there such an event?

    2. I could set up my own add to cart using bcInternals.shop.addToCart. I tried to do this, but I have two problems with it.

    a. addToCart seems add my selection twice, for some reason any. Any ideas what I could do wrong?

    b. the news of cart in the upper right corner don't refresh. Apparently, he's trying to refresh, but there is a kind of access error in the script. This part is not yet fully added to the page, but there is a function which would add it to the basket at the bottom of the largest block of script. Am I using the function addToCart incorrectly?

    It's the page, sure I have the feature added partial implementation:

    Matt Laminated business cards

    The scripts are currently embedded in the HTML code. Once I put it in place correctly, I would like to extract in a separate file. Search for "'$productAttributesElement ' to find the block with the features and for 'productInfo' to find the part where I store the product with tags. _json data "

    Hello

    No worries, na not know if you have solved or that the answer was not helpful

    You need trigger the script you in the presentation of product details model, or you can add a listener for the container of the product and to trigger the script if changes are detected.

    Concerning

  • ADF 11 - stop the user to select some values of a LOV

    Hello
    Jdev ADF BC 11

    I have a DB table countries hence, I've created a VO EO for the creation of country
    and a second reading only VO to be used as a country LOV in other tables.

    I have a second holiday table that uses the country LOV to choose the country for which
    the holiday must be registered.

    A country may be Active, blocked or cancelled

    What I have to do is to stop the user to select a value from the LOV country
    who is blocked or cancelled.

    How is it possible...

    Concerning
    Paul

    OK, this will be much better than just having it scattered randomly in the list.

    What you want to do is to create another view (to the same instance of VO) accessor, this time in your entity object. For this class accessor, you include a named view criteria (change the accessor for that) which limit the selection that the entries 'selectable '. Then, set a validation rule 'List' to the entity object attribute target, select 'In', 'View attribute accessor', and your display accessor and the attribute. Given that the VO attribute uses the more general accessor, which will determine what appears in the LOV, but an attempt to choose something that is not in the narrow view accessor will send a validation error.

  • Caveat "the formula uses a Boolean value instead of a number" would dismiss

    Hello!

    I do a "Calculator" to get estimates of price for the projects, according to which processes the customer wants.

    Rates for each process are added in another table, and I use the list of control buttons to enable or disable the various processes.

    Here is an example of a formula:

    D3 determines if the part of the project modeling is performed, so the price will be or will not be calculated.

    If D3 is true, the result is multiplied by 1, give me a positive amount. If false, the result will be multiplied by 0, 0, so nothing to add to the final cost he send me some.

    Same for B4 in the same formula.

    This formula is repeated all over the chart, with minor changes to add more complex options, but it's all the same.

    Everything works fine, but I got those blue triangles warning me of "the formula uses a Boolean value instead of the number". That's fine with me, I like the use of the Boolean types, and they make my formulas work well in my calculator. How can I reject the blue triangles?

    They are a little annoying. And they do not really correspond with the general style of my calculator.

    I saw someone talking other types of formulas, with SEARCH and yews, but who is really complicated and I don't know how to do... Especially for a simple calculator

    Is there a way to simply do not display warnings?

    Using the version 3.6.2 on a MacBook Pro, OSX El Capitan 10.11.5

    Thank you!

    Hi Sinshassan,

    I don't know a way to escape your blue flags except to make a formula which is consistent with the expected numbers. It is not difficult.

    My formula D2 = yew (AND(D1,B2), C2, 0)

    The IF statement tests the two D1 AND B2. If they are true, then it indicates the value of C2 your carbon Modeling::High Poly #1, if one or both are false (unchecked) then 0 is displayed.

    Give it a try.

    Quinn

  • Determine if the tab is active

    If you have a tab control that has 3 legs for example, I wonder how do you determine if the 3rd tab is selected?  For example, I would use that a True/False Boolean output according to the 3rd tab is selected... If the tab is selected, the Boolean value is true, otherwise false then.  I guess it has to do with the creation of a property of the tab control node, but I'm not sure that would apply to this situation.  Any help would be appreciated.

    A tab page has a terminal on the block diagram which can be read and checked to see if a specific tab is selected. See the code below. It is the best way to do what you want to do.

    Rob

  • "the service cannot accept messages of control at the moment."

    Cannot download and install all files. I get this response, "the service cannot accept messages of control at the moment."

    Hi Frank St.

    What web browser do you use? This happens on a particular Web site or any web sites?

    Please provide the complete error message you receive.

    Let us know which files you are trying to download for a better understanding of the issue.

    The problem may be temporary. Wait a few minutes and then retry your operation.

    If the problem persists,

    Step 1: Run Internet Explorer in "no Add-ons" mode and test

    To determine if the error is caused by an add-on, run Internet Explorer in "no Add-ons" mode To do this, follow these steps:

    1. click Startand type Internet Explorer in the box start the search .

    2. click on Internet Explorer (No Add-ons). Internet Explorer opens without Add-ons, toolbars, or plug-ins.

    3. test Internet Explorer to verify that it works correctly. If problems occur always, try step 2

    If no error occurs, the problem is caused by one of the Add-ons that typically load with Internet Explorer. In this case, follow the steps mentioned in the link to determine which add-on is causing the problem

    Optimize internet Explorer

    http://support.Microsoft.com/kb/936213

    (See method 3-2 in the link)

    Let us know if it works

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to get the balance of an element value

    Hello

    I have a requirement to obtain related information with balance. I am able to read the information on the element except balance.how to get the value of the particular item balance.

    for the application-> transfer and process-> queries with trust-> value the month selected and chosen balances button and queries with the obtained item name break it down the value of the balance.

    These values I want in my query.i tried backend with calling package by passing parameters like the number of transfer, balance the id and date but iam getting value "0".

    IAM new to hrms, Please help me on how to get this balance of values

    Thank you

    Hello

    It is not very clear what you want to display in the form of balance for a given range of dates.

    It depends on how you have configured your balances and periods and balance which you are referring.

    The API allows for a given only date that matches the date earned.

    Say, for example, that you have a "basic salary" defined with a "Treatment period assignment to Date" dimension and feed of the element that corresponds to the base salary.

    "If you need get the 'wage base Total' (balance?) for the period February 1, 2015 ' to March 31, 2015", then you need get dates earned for payroll passes made during that period and call the package above with the appropriate settings.

    Another way is by querying the tables/views directly: you can use, for example - it's perhaps easier to your situation:

    Select sum (nvl (pbv.value, 0))

    of pay_balance_values_v the VB.

    where pbv.balance_name = 'base salary.

    and pbv.database_item_suffix = '_ASG_PTD. '

    and pbv.assignment_id =

    and pbv.effective_date between to_date (' 01/02/2015 ',' dd/mm/yyyy')

    and to_date (' 31/03/2015 ',' dd/mm/yyyy');

    Kind regards
    Rajen

  • The export of a variable value of Jython in a Variable of the ODI

    Hello everyone,

    I use ODI for the first time and I have a few simple questions.

    I wrote a Java program 'P' to perform three operations: 'X', 'Y', 'Z '. The program returns a string with the result encoded in JSON format (and never raise an exception).

    Now I have the pot of P.

    In ODI 12 c demo I created with success a procedure with 3 tasks (1 running X, Y of 2nd, 3rd Z). I run P every time a Jython script that loads the jar with some ODI environment options and pass as arguments to the main method.

    At the moment there is executed even if X fails and the Z are executed even if fails. What I need is to check the result of the operation: If the result of X is equal to a certain channel then run Y. If the result of Y is equal to a certain String then run Z.

    That's why I created 3 different procedures, each with a single (jython) task (we run X, a Y, and a Z).

    I created a new package and put in the three procedures.

    My problem is how to connect the three procedures: I need to store the result of an operation and check it before performing the next step.

    I saw that it "Assess the Variables", but how can I store the value in a variable of Jython (string JSON) in a Global Variable ODI?

    It seems that the Options of ODI are unalterable (How to set the value of the variable of Jython Script ODI). Any suggestion?

    I can't use the ODI OS calls. Jython is not strictly necessary.

    Thanks for reading.

    Gianvito

    Oh! Now your example clearly what you want to do then it is much easier. No need to do anything special... just use Jython throughout the whole, since the variables are "persistent session." Like this:

    First proc:

    Second proc:

    The result of the execution:

    Is that what you want?

  • Query PHP: how to determine if the variable time is before or after today

    Hello

    I have this code which determines the issue of whether or not the date of return of a book (format: d/m/Y) either before or after today.

    <? PHP if ($row ['return_date'] > = date("d/m/Y")) {? >}

    < a href = "loaning_remind.php? loan_id = <?" PHP echo $row ['id'];? ">" onClick = "return confirm (" the loan will receive an e-mail to remind their ready point is due to return ' ")" >

    < div class = "record_button" >

    "" < img src = "... / images/icons/mail_icon_blue.png" width = "100%" height = "auto" title = "Send Email Reminder" >

    < / div >

    Future

    < /a >

    <? PHP} else {? >}

    < a href = "loaning_remind_late.php? loan_id = <?" PHP echo $row ['id'];? ">" onClick = "confirm return (" the loan product will receive an e-mail reminding that ready article's late return ' ")" >

    < div class = "record_button" >

    "" < img src = "... / images/icons/mail_icon_blue.png" width = "100%" height = "auto" title = "Send Email Reminder" >

    < / div >

    Towards the end

    < /a >

    <? PHP}? >

    At the moment it does not work, as the script checks the date and adds 2 months.

    For example:

    Today's date is: 10/15/2015

    If the date of return to the book is: 15/12/2015 (2 months from today ' hui), the script will display the icon NOT LATE .

    If the date of return to the book is 12/14/2015 (less than 2 months from today ' hui), the script will display the LATE icon.

    I don't have any other script to do it with the time or date, so I ruled out the possibility that it gets messed up by other code.

    The database variable takes the form: d/m/Y

    Then, it is not stored as a date data type. MySQL stores dates in the form A-m-j. I think it's really important to use the date data type, so I recommend you, if it's humanly possible, change your dates in the correct format. Otherwise, as the application evolves, you'll regularly find yourself having to deal with the fact that your arrival dates are not really dates.

Maybe you are looking for