How can I programatically perform a conditional formula in "Eval Formula Node"?

Okay, I'm stumped. I have an application where I need to evaluate a conditional programatically, and I can't do it with a Formula Node.
Basically, my user wants to be able to enter some formula which describes conditionals, such as "if this temperature goes above X degrees or this temp goes above Y degrees, then take a reading" kind of thing. Since the conditional will be saved in a file, the formula node needs to be dynamic.
I've used the "Eval Formula Node" before, which is built for this type of application...sort of. I tried it, but after trying in vain to get it to work properly, found out that it doesn't do boolean and conditionals in its parser, so it won't work.
Does anyone
have a good idea how to do this??

Why do you even want to use the formula node at all? I don't think you "can take a reading" (i.e. interact with hardware) inside a formula node anyway.
The formula node allows conditionals, see e.g. the example in the online help (image attached).
You could also use a case structure with seperate formula node in each case.
I highly prefer to skip the formula node and use wires instead. It will be more efficient and also much easier to debug. A formula node is not "in the true spirit of LabVIEW" ;-)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
FormulaNode.gif ‏2 KB

Similar Messages

  • How can I programatically identify PDF files with embedded images?

    Our company has 27,266,949 .PDF files that we're planning to compress in order to save server space.
    We don't want to compress any of the .PDF files that have embedded images as to not alter the image's state.
    How can we programatically create a list to exclude from the compression process?

    Ah, see told you we were new to this and no, my taxs already have enough digits to the balance.
    Ok, so based on that, we should be able to use the preflighting tool to identify the PDF’s with images, factor them out, and then continue with lossless compression on the remaining balance.
    That will give us the compression we need to save space, but also allow us to stand in the court of law (if the scenario was to ever occur) and proclaim that none of our medical images have ever been altered by compression.
    Sound like a reasonable plan?

  • How can I have the pricing conditions at the item and header level of the d

    How can I have the pricing conditions at the item and header level of the delivery? There exist "condition" tabs both the header and the item level of the delivery but the contents of the tabs are empty. I'll be happy if you can help me. Thanks in advance....

    Hi
    If you want to have the pricing procedure at delivery level then you need to assign a pricing procedure at delivery level also
    Just go through the path to maintain the pricing procedure at delivery level.
    IMG -> Logistics execution -> Shipping -> Basic Shipping Functions -> Pricing -> Pricing Procedure. for Delivery.
    But can you be more clear if the above one is not your query ?
    Regards
    Srinath

  • How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?

    How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?
    For example: I have formulas in columns D and F that relate to columns C to CU
    If I want to move one column from one position to another (say S to T), the formula loses the colums that was moved, i.e. it doesn't recognize it has moved, rather sees it as deleted...  How can I do this without distorting the formula?

    Thanks for the feedback.
    If I often urge askers to look at the available resources, it's because  a large range of questions asked in the forums are already answered in these documents.
    As they are PDFs, they are easy to search in.
    CAUTION
    Download them while they are available.
    Given what is delivered with iBooks Author, I'm afraid that we will not get such easy to use documents.
    Searching infos in the  iBooks Author documentation available on line is awfully cumbersome and a lot of embedded links are wrongly flagged this way. In the Help files they aren't links but underlined strings.
    It seems that the tool used to generate the web pages was wrongly configured.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • How can I copy tables from Numbers to Pages without formula?

    hi everyone
    i need help
    How can I copy tables from Numbers to Pages without formula in the cells?

    Ok... I see your problem... when pasting into Pages, the formulas from Numbers are included. Perhaps this is really more of a Pages question (in which case I'm far from expert). A couple of ideas:
    • In Pages, try "Edit"/"Paste and Match Style", which may insert tab delimited cell values (no formulas). Then, if you want the table format back, select these newly pasted tabbed values and use Page's "Format"/"Table"/"Convert Text to Table"/
    • In Numbers, before copying, make a temporary table of the plain values first, then copy and paste that into Pages. To do this, select the range of cells you desire in the Numbers and "Edit"/"Copy". Then "Edit"/"Deselect All" and "Edit"/"Paste Values" and "Edit"/"Cut". Now just a table of values is on the clipboard and you can head over to Pages to paste.

  • How can i increase performance of interface

    while i am runing interface in odi it takes 5 days.so how can i increase performance of interface.
    source contains: 30 crores of records
    i want copy 30 crores to target.
    source:oracle
    target:oracle
    i am using lkm:lkm sql to sql
    IKM:ikm control append
    Edited by: 967609 on 25 Oct, 2012 2:55 AM
    Edited by: 967609 on 25-Oct-2012 10:13

    IT IS CREATED VIEW AND SYNONYM.
    MY SERVER NAME IS REPA,
    ANTHOER SERVERNAE IS MISREPL
    create or replace view REPA.C$_0XX_TR
         C1_TJD,
         C2_CID,
         C3_BOO,
         C4_TYPE,
         C5_GRP,
         C6_POAM,
         C7_BALINT,
         C8_DUIN2,
         C9_CRLMT,
         C10_IRN,
         C11_TDUE,
         C12_CHKHLD,
         C13_WDLMT,
         C14_ZSBU,
         C15_BAL,
         C16_MCHG,
         C17_LCHG,
         C18_ACR,
         C19_CR,
         C20_DR,
         C21_CRCD
    ) as
    select * from (
    select     
         XX.TJD     C1_TJD,
         XX.CID     C2_CID,
         XX.BOO     C3_BOO,
         XX.TYPE     C4_TYPE,
         XX.GRP     C5_GRP,
         XX.POAM     C6_POAM,
         XX.BALINT     C7_BALINT,
         XX.DUIN2     C8_DUIN2,
         XX.CRLMT     C9_CRLMT,
         XX.IRN     C10_IRN,
         XX.TDUE     C11_TDUE,
         XX.CHKHLD     C12_CHKHLD,
         XX.WDLMT     C13_WDLMT,
         XX.ZSBU     C14_ZSBU,
         XX.BAL     C15_BAL,
         XX.MCHG     C16_MCHG,
         XX.LCHG     C17_LCHG,
         XX.ACR     C18_ACR,
         XX.CR     C19_CR,
         XX.DR     C20_DR,
         XX.CRCD     C21_CRCD
    from     REPA.XX@REMOTE XX
    where     (1=1)
    create synonym     STG.C$_0XX_TR
    for           REPA.C$_0XX_TR@remote
    insert into     STG.XX_TR
         TJD,
         CID,
         BOO,
         TYPE,
         GRP,
         POAM,
         BALINT,
         DUIN2,
         CRLMT,
         IRN,
         TDUE,
         CHKHLD,
         WDLMT,
         ZSBU,
         BAL,
         MCHG,
         LCHG,
         ACR,
         CR,
         DR,
         CRCD
    select
    TJD,     CID,
         BOO,
         TYPE,
         GRP,
         POAM,
         BALINT,
         DUIN2,
         CRLMT,
         IRN,
         TDUE,
         CHKHLD,
         WDLMT,
         ZSBU,
         BAL,
         MCHG,
         LCHG,
         ACR,
         CR,
         DR,
         CRCD
    FROM (
    select      
         C1_TJD TJD,
         C2_CID CID,
         C3_BOO BOO,
         C4_TYPE TYPE,
         C5_GRP GRP,
         C6_POAM POAM,
         C7_BALINT BALINT,
         C8_DUIN2 DUIN2,
         C9_CRLMT CRLMT,
         C10_IRN IRN,
         C11_TDUE TDUE,
         C12_CHKHLD CHKHLD,
         C13_WDLMT WDLMT,
         C14_ZSBU ZSBU,
         C15_BAL BAL,
         C16_MCHG MCHG,
         C17_LCHG LCHG,
         C18_ACR ACR,
         C19_CR CR,
         C20_DR DR,
         C21_CRCD CRCD
    from     STG.C$_0XX_TR
    where          (1=1)     
    ) ODI_GET_FROM
    i am getting following error
    ODI-1228: Task INT_DBLINK (Integration) fails on the target ORACLE connection STG.
    Caused By: java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)
         at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)

  • How can I improve performance when scopes are open?

    How can I improve performance when scopes are open?
    When Color correcting, performance severely lags, stalls, freezes!
    Nothing to complex...simple 3 way color corrector, occasional curves filters.
    I am constantly waiting for the timeline to update as I move around....sometimes as long as a minute or so.
    I'm on brand new 2.7 Ghz 12-Core MacPro with 64 GB of RAM
    Thanks in advance.
    Jay

    http://forums.adobe.com/thread/1369260?tstart=0

  • How can I programaticly change settings on a FP-PG-522

    How can I programaticly change settings on a FP-PG-522 using Measurement
    Studio
    for Visual Basic and an FP-1000 module?
    Is there a Measurement Studio for VisualBasic DAQ control to do this?

    I am either in the wrong location or have a different layout than you.
    Apple button > system preferences > keyboard and mouse > mouse tab > then all I have are the options to change the tracking speed, scrolling speed, double-click speed, and which button is required to zoom with the scroll wheel. The only drop-down menu I have on this screen is to select which button + scroll wheel allows me to zoom.
    I am using version 10.5.6. Am I in the incorrect section of this forum?
    Message was edited by: Coop772

  • How can I programatically modify a teststand sequence global in Labview ?

    Hello,
    I am automating some tasks using Labiew to modify data in a Teststand sequence file. How can I programatically modify the value of a Sequence Global from labview ?
    Thanks,
    Sam

    You have to pass in the TestStand variable RunState.ThisContext to the vi through the connector pane.  I'm not sure about the exact variable name because I don't have TestStand loaded at this time.  But  there is a variable for the sequence context in TestStand and this has to be passed to the vi.  Note that you cannot run the vi stand alone.  You must run it from TestStand in order to get the proper sequence context.
    - tbob
    Inventor of the WORM Global

  • How can we stop BOM explosion conditionally ?

    Hi,
    How can we stop BOM explosion conditionally?
    Under certain status condition, I want to stop BOM explosion in CRM Sales Orders. How can we do that?
    Regards,
    Ankush

    You have to use settings to filter mail on the server in your webmail account using a web browser. There are no filters in the mail app. There is no way to bulk delete mail either in the iPad mail app.
    There are alternative mail apps that might suit your needs better than the built in mail app. You would have to search the app store to see what is available. Group Email with Attachments and MailShot are two that I know of, but I don't use either of them.

  • Mail has 16k  messages, and performance is very slow, with loading times taking up to 5 seconds every time I open Mail. How can I increase performance?

    Mail has 16k  messages, and performance is very slow, with loading times taking up to 5 seconds every time I open Mail.
    How can I increase performance?
    I'm running a MacBook Air 4GB 1.7GHz  10.7.2.
    Graham

    One possible solution would be to organise your inbox into folders.
    Its never relly good on any system to have one folder that has everything in it.
    Try going to you web gui for that mail account and organise your folders and move mails from your inbox into corresponding folders for better organisation.
    Several folders containing the same amount of one folder will usually load a little quicker as the folder may not be accessed to download its content unless veiwed.
    So having 10 folders with organised content, and you inbox as an area thats to hold only new emails would work much much quicker with imap.
    Most imap servers will only update the contents of a folder when its veiwed.

  • How to monitor the performances of VMs & Hyper-v Cluster host node running on SCVMM Cluster.

    hello...,
    How to monitor the performances of VMs & Hyper-v Cluster hosts node running on SCVMM Cluster from SCOM so that we can
    Identify the highest utilized(CPU and Memory ) VM on that from cluster  hyper-v host.
    Identify the lowest utilized (CPU and Memory )Hyper-v Host in the Cluster .
    After identifies VMs and Hyper-v cluster  host on SCVMM , so that we  can  proceed to do migrate the Highest Utilized VM to Lowest Utilized
    Hyper-v cluster host. 
    To identified and implement above ,what are the things I need to do or configured on SCOM.
    Thanks
    RICHA KM

    hello...,
    How to monitor the performances of VMs & Hyper-v Cluster hosts node running on SCVMM Cluster from SCOM
    so that we can
    Identify the highest utilized(CPU and Memory ) VM on that from cluster  hyper-v
    host.
    Identify the lowest utilized (CPU and Memory )Hyper-v Host in the Cluster .
    After identifies VMs and Hyper-v cluster  host on SCVMM , so that we  can  proceed
    to do migrate the Highest Utilized VM to Lowest Utilized Hyper-v cluster host. 
    To identified and implement above ,what are MPs i need to installed on SCOM for implementing
    this.
    Thanks
    RICHA KM

  • How can we improve performance while selection production orders from resb

    Dear all,
    there is a performance issue in a report which compares sales order and production order.
    Below is the code, in this while reading production order data from resb with the below select statement.
    can any body tell me how can we improve the performance? should we use indexing, if yes how to use indexing.
    *read sales order data
      SELECT vbeln posnr arktx zz_cl zz_qty
      INTO (itab-vbeln, itab-sposnr, itab-arktx, itab-zz_cl, itab-zz_qty)
      FROM vbap
      WHERE vbeln  = p_vbeln
      AND   uepos  = p_posnr.
        itab-so_qty = itab-zz_cl * itab-zz_qty / 1000.
        CONCATENATE itab-vbeln itab-sposnr
           INTO itab-document SEPARATED BY '/'.
        CLEAR total_pro.
    **read production order data*
        SELECT aufnr posnr roms1 roanz
        INTO (itab-aufnr, itab-pposnr, itab-roms1, itab-roanz)
        FROM resb
        WHERE kdauf  = p_vbeln
        AND   ablad  = itab-sposnr+2.

    Himanshu,
    Put a break point before these two select statements and execute in the production.This way you will come to know which select statement is taking much time to get executed.
    In both the select statements the where clause is not having the primary keys.
    Coming to the point of selecting the data from vbap do check the SAP note no:-185530 accordigly modify the select statement.
    As far as the table RESB is concerened here also the where clause doesn't have the primary keys.Do check the SAP Note No:-187906.
    I guess not using primary keys is maring the performance.
    K.Kiran.

  • How can I define same Price Conditions for two different Sales Deals ??

    I need to define for the same price condition, lets say ZPMP, two different values or condition records, for two different sales deals and the same valid dates
    For example, Sales deal 1, ZPMP equal to USD 15 and valid dates from 04/15/08 to 04/30/08.
    Another condition record for Sales deal 2, ZPMP equal to USD 20 and valid dates from 04/15/08 to 04/30/08
    How can I do this.
    Thanks in advance.

    While creating condition tables, you have the option to create different key combinations. So if you want the system to take different condition records for different sales deals, there has to be a point of differentiation between those 2 sales deals.
    This can be done in one of the following ways:
    by giving customer specific prices
    by giving material specific prices for a particular customer etc
    All this can be defined as different key combinations while creating the condition tables. For each key combination, you can specify different condition records, so that the system is able to pull prices according to the requirement.
    But if the sales deals are entirely similar (that is even the validity dates, delivery dates etc are also same), and there is no differentiating factor, then you will have to manually input the prices.
    Do get back if you require more clarification. Please reward points if useful.
    Regards,
    Swapna

  • How can I improve performance for BC4J/JSP-application

    Hi,
    I have developed a JSP-Applikcation with the master-detail views. This Application has been implemented
    as SSO enabled web portlet into portal. Whenn I click on a row retrieved from the master view (Master.jsp), it take 15 seconds
    until the associated data in detail view will be displayed on the other window(Detail.jsp). The master table has about 2500 records and detail table about 7000. (Other case: it takes 2 seconds for 162 rows (master) and 228 rows (detail) respectively)
    In Master.jsp I set rangesize = "10" to reduce data loading time.
    ======================== master.jsp =================================
    <jbo:DataSource id="dsMaster appid=testAppId viewobject="MaterView" rangesize="10">
    <a href="detail.jsp?RowKeyValue=<jbo:ShowValue datasource="dsMaster" dataitem="RowKey"/>">
    Here Click
    </a>
    ==================================================================
    Because all records from master view have firstly to be retrieved to locate right row, I set rangesize="-1" in detail.jsp. Consequently this leads to a lower performance.
    When rangesize="20" sets instead rangesize="-1", The performance is good, but the wanted Data from detail view are not displayed if the records of master view cliked on ist not in this range.
    ======================== detail.jsp ======================================
    <jbo:DataSource id="dsMaster appid=testAppId viewobject="MaterView" rangesize="-1">
    <jbo:RefreshDataSource datasource="dsMaster">
    <jbo:Row id="msRow" datasource="dsMaster" action="Find" rowkeyparam="RowkeyValue">
    <jbo:dataSource id="dsDetail" appid="testAppId viewobject="DetailView">
    ======================================================================
    Is my programming logic not to be suited for the high performance?
    How can I improve the performance, if it is so?
    Many thanks for your help.
    regards,
    Yoo

    http://forums.adobe.com/thread/1369260?tstart=0

Maybe you are looking for

  • Skytell

    Need help starting a thread! mayb doing it now, but if not can someone explain to me how? the instructions got from this cite are not helping! very smart, and this might be the hardest thing have ever done!! loll   also is there a forum number, that

  • Custom Printing

    Howdy Forum, Beginners question here for Lightroom 4 on pc. I`m trying to set up a large custom size 16x24 which includes a white border with the view to saving this as a template. I don`t have a printer therefore would have to save this to disk etc.

  • How to decide implementation way for share point site ?

    Hi, I am developing new share point site where i want to manage more hierarchical data with its own business requirements and flows. lets assume following scenario  there are multiple companies at very top level Every company contains multiple depart

  • Coherence 3.6 server startup issue weblogic 11gR1sp5

    Hi All, I had managed to startup my weblogic server monitored by node manager. It is a single server domain. I have a coherence cluster setup and a single coherence server listing to the unicast address/port of the coherence cluster. I had the setup

  • Error in Oracle Database Utilities 11g Release 2 (11.2) E22490-05

    In Utilities, there are a couple of typos in Chapter 19 "Using LogMiner to Analyze Redo Log Files" ( link ): 1. For example, consider the following the SQL statement 2. To specify that a query not finish until some future time occurs or SCN is reache