error in comparison

Hello, my name is Matias. I'm from Argentina, the ORT school. First of all, I must tell you that I'm not an expert when it comes to English, so if there is something that you do not understand please let me know, jeje. My team and I are working on a project, including the labview program. We have difficulties when comparing certain types of data. I don't know how to explain it, so I'll show you an example. This is not our program, is just one example that shows the problem we are having. If you prefer, I can download the full program.

Thanks in advance

The function or does not accept the dynamic data for both terminals. You need convert dynamic data in 'real' data to help convert VI of dynamic data. You can insert this function in the coming cable of your DAQ Assistant. In your case, you're just acquire a sample, if you want to convert to a scalar value. See attached the amendment.

Tags: NI Software

Similar Questions

  • conditional error for comparison of sine waves

    Hi all

    I do a small program concerning some changes in the sine waves, and later I compare to set my status. I can't get through this error. I really want to put out as Boolean so my loop condition is attached to this release. Everyone please help

    Concerning

    Qasim

    It's called Convert Dynamic Data type and on the Express > range of Manipulation of the Signal. When you drop on the diagram to a dialog box can be displayed and giving you options regarding the type of data.

    Lynn

  • Error of comparison while trying to round like Excel

    I have two different but related issues. First: my LabVIEW application is not passing validation of my client because the results in LabVIEW are not exactly the same as those that my customer buy when using MS Excel. The problem is with rounding: LabVIEW and Excel round numbers differently and (unfortunately) I have to round up the numbers in the way that Excel.

    Because I need to round up after the comma, I started using a beautiful VI I found here at ni.com called 'DecimalRoundingLV8.5vi'. However, due to the difference between LabVIEW and Excel, I can't use this VI as it is. For example, rounded to the third place after the comma:

    The number to round LABVIEW EXCEL
    0.0045 0.0040 0,0050

    So, my first question is this one, I need to round like Excel... However, the solution I implemented raised an odd question, and I don't know if I see a bug in LabVIEW.

    I changed the decimal rounded VI. Here is a picture of the code and I also enclose it:

    First of all, if the number is negative I change into a positive for rounding. In the end, I return the sign.

    Like the original VI, I multiply the number to round up times 10 ^ x, where x is the place after the decimal point, I would like to turn to, I'm rounding and then dividing by 10 ^ x.

    However, I also multiply the number of round 10 ^(x+1) time and divide the result by 10 to get the unit as the reminder and to evaluate this number. If the number is less than 5, I tour as usual; If not, round towards + infinity.

    So far, so good and everything seems to be fantastic. But when I tested this code I found the following bizarre scenario. For example, rounded to the third place after the comma:

    The number to round LABVIEW EXCEL
    0.0855 0.0860 0.0860
    0.0856 0.0860 0.0860
    0,0857 0.0860 0.0860
    0.0858 0.0860 0.0860
    0.0859 0.0860 0.0860
    0.0860 0.0860 0.0860
    0.0861 0.0860 0.0860
    0.0862 0.0860 0.0860
    0.0863 0.0860 0.0860
    0.0864 0.0860 0.0860
    0,0865 0.0860 0.0870
    0,0866 0.0870 0.0870
    0,0867 0.0870 0.0870
    0,0868 0.0870 0.0870
    0.0869 0.0870 0.0870
    0.0870 0.0870 0.0870
    0.0871 0.0870 0.0870
    0.0872 0.0870 0.0870
    0.0873 0.0870 0.0870
    0,0874 0.0870 0.0870
    0,0875 0.0880 0.0880

    Note When the flare 0,0865. LabVIEW is wrong! However, LabVIEW was not wrong for 0.0855 or 0,0875. When I ran the code using the highlight feature, it turns out that the problem was the comparison function. It is said literally than 5<5 is="">.

    I tested in LabVIEW 8.2 and LabVIEW 12. I use Windows XP SP3.

    These numbers are not the only cases with this weird behavior. Other numbers are 0.1425, 0.1725 0.1745 and more. I don't see a drawing (or a reason!)

    Can someone please test my code and report if you met the same behavior?

    Enrique,

    It is a fundamental issue with the help of the binary representation over for numbers.  Event that you post and think that numbers like decimal representations, the computer stores in a binary format.  As 0.0045 or 0.004 number can be represented in binary format used by LabVIEW.  Place a digital control on a new VI. Set the display format to show ~ 20 significant digits.  Type in 0.004 or 0.0045 hit and hit enter.

    0.0045-> 0.0044999999999999996600

    The correct rounding for this value is 0.004.  Of course typing 0.004 gives 0.004000000000000000080.

    I don't have Excel so I don't know what it does, but it will have the same problem with approximate representations of numbers.

    There are a lot of posts on the Forums about number representation.

    In addition, the reason that the exact equality comparisons on the non-entier data types should be avoided or used with caution.

    Lynn

  • BIOS problem, how downgrade

    I'm updating the bios to 2.14 to 2.21 on my aspire E1 - 571. MY video ram on version 2.14 was 128 MB and is now on 2.21 64 MB. How downgrade bios 2.14 because 64 MB is bad for the game, when I go to install 2.14 has error message "Comparison of bios problem" Please help, help, help

    Erkedo,

    Avoid any problems flashing the BIOS to an older version. Did you do that there is no way to manually change the video memory setting in the BIOS?

  • currentFrame AS 3.0 question

    According to me, only missing me something basic here. In my external .as file, I'm saying that "if my current image has the image of"enterdone"tag, then go to the section with the label"enter".

    The clip is called _cedars and all my labels image, variable, etc. are set up correctly.

    Here is my code:

    If (_cedars.currentFrame == "enterdone") {}

    _cedars.gotoAndPlay ("enter");

    }

    I get error #1176: comparison between a value with a static type int and may be unrelated to a String type.

    I appreciate any help!

    you want to compare the currentLabel of your movieclip with this string.  (and that the code should run repeatedly).

  • Rounding error causes a strange behaviour in comparisons

    Hi all

    I found a rounding error in my code yesterday, that apparently causes something impossible to happen. A comparison of one number in a superior has the value true, and the same comparison in a less than or equal to is also true. I've attached a zip with a VI test record and the values that produced the problem, in the README file. You only need to define Xa, Xb, newspaper, DEXfp, weight and DEXcon 5 min b/t Xa and Xb. None of the other controls on VariableCluster of importance, you will see when you open rule015 and rule016.

    Well, it is a rounding problem, but it is preventable.

    First of all, some backround. Comma floating itself has rounded up questions that are very well known and are an accepted matter. This is a resource for more information.

    Your problem occurs because you have your computing operations in the same order for each comparison. You have (Wt * 6 * DEXcon_inv) in rule015, but (DEXcon_inv * Wt * 6) in rule016. Correspond to these levels of calculation to the other and see what happens.

    Edit: For later use, you must use subVIs for calculations like that. This normalize the calculation in itself, so you don't meet for problems like this and it makes it also easier to make changes to your calculations in the future.

  • Date comparison error

    Hi, I have a situation, where I have to find a date between two dates

    I used under condition of filter, but I get the error

    (TO_DATE (PLAYER_MONTHLY_SUMMARY. CURRENT_MONTH, 'DD-MON-YYYY') BETWEEN
    TO_DATE (MARCH 1, 2012 ',' MON-DD-YYYY "") AND
    TO_DATE (MARCH 31, 2012 ',' MON-DD-YYYY "")
    )

    Error: -.

    ORA-12801: error reported in the parallel query P000 Server
    ORA-01841: (full) year must be between-4713 and 9999 and not 0
    ORA-02063: preceding 2 lines of EDW_REP_DBLINK
    12801 00000 - "error reported to request server %s Parallels.
    * Cause: A parallel query server reached an exception condition.
    * Action: Check the error according to the cause, and
    Manual of your error for appropriate action.
    * Comment: This error can be disabled with the 10397 event, in which
    case, the current server error is reported instead.


    is their any error in the code or this db level

    Hello

    916710 wrote:
    Hello

    Here are the details

    CURRENT_MONTH is the date data type in the table PLAYER_MONTHLY_SUMMARY

    To_date, as its name suggests, something to converts a DATE . If current_month already is a DATE, you don't need to convert it to a date.
    In addition, the 1st argument to TO_DATE is supposed to be a VARCHAR2. Do not use a DATE where we expect a VARCHAR2.

    and the date range of next_run_date where is my next_strt_date and next_end_date both the date data type

    instead under request

    (TO_DATE (PLAYER_MONTHLY_SUMMARY. CURRENT_MONTH, 'DD-MON-YYYY') BETWEEN
    TO_DATE (MARCH 1, 2012 ',' MON-DD-YYYY "") AND
    TO_DATE (MARCH 31, 2012 ',' MON-DD-YYYY "")
    )

    If I try below one then it worked

    PLAYER_MONTHLY_SUMMARY. CURRENT_MONTH BETWEEN

    TO_DATE (MARCH 1, 2012 ',' MON-DD-YYYY "") AND

    TO_DATE (MARCH 31, 2012 ',' MON-DD-YYYY "")
    )

    This approach is right

    Yes, that is designed to compare a DATE (current_month) more DATEs (TO_DATE results).
    Remember that all DATEs in Oracle include hours, minutes and seconds. If the hours, the minutes and the seconds of current_month are always 00:00:00 (for example, if current_month is always filled with TRUNC (some_date, 'MONTH')) then the comparison above is not serious. But if current_month can be something like 06:52; 31 on March 31, 2012, then it fails the condition, because the upper limit of the range is

    TO_DATE('31-MAR-2012', 'DD-MON-YYYY') 
    

    which is 00:00:00 on March 31, 2012. To include the current_month is any time of the day March 31, you would have to do something slightly different, such as

    PLAYER_MONTHLY_SUMMARY.CURRENT_MONTH  BETWEEN TO_DATE ( '01-MAR-2012'     -- Default time, 00:00:00, is okay here
                                                    , 'DD-MON-YYYY'
                                        )
                              AND     TO_DATE ( '31-MAR-2012 23:59:59'
                                                    , 'DD-MON-YYYY hh24:mi:ss'
                                        ) 
    

    or

    ...
         PLAYER_MONTHLY_SUMMARY.CURRENT_MONTH  >= TO_DATE ( '01-MAR-2012', 'DD-MON-YYYY')
    AND  PLAYER_MONTHLY_SUMMARY.CURRENT_MONTH  <  TO_DATE ( '31-MAR-2012', 'DD-MON-YYYY') + 1
    
  • BB::LowMemoryWarningLevel comparison of compiler error

    new to this environment of development :-(

    https://developer.BlackBerry.com/Cascades/reference/libbb/memoryinfo_lowmemory.cpp.html

    the lines:

    If (level == bb::LowMemoryWarningLevel:LowPriority) {...}

    If (level == bb::LowMemoryWarningLevel:HighPriority) {...}

    have the compile error:

    no match for ' operator ==' in ' level == ".

    1U (bb::LowMemoryWarningLevel:Type)"

    Thanks for the tips

    There seems to be an error in the code example:

    (1) replace bb::LowMemoryWarningLevel by bb::LowMemoryWarningLevel:Type argument of the method.

    (2) replacevoid onAwake(); in slots with:

    public Q_SLOTS:
        void onLowMemory(bb::LowMemoryWarningLevel::Type level);
    

    After these changes, it compiles.

  • Date comparison throwing error

    We have 1 table with two date columns: Column1 Column2 and timestamp date (9).

    In Column1 values look the same: 01.31.39.349474000 June 19, 15 AM and in Column2, we save the sysdate.

    What I'm confused about is select * from system_log where log_timestamp > 19 June 15 01.31.39.349474000 AM'; -This query works perfectly well and returns records of expeted. "While under query is throwingn error: ORA-01843: not a valid month select * from system_log where creation_date > 6 July 2015 03:51:18.

    Why the implicit conversion does not not for Column2? Is it because of the date data type or anything else that I'm missing?

    You can paste the output of

     select * from NLS_SESSION_PARAMETERS
     where parameter IN ('NLS_TIMESTAMP_FORMAT','NLS_DATE_FORMAT');
    
  • Premiere Pro CC 2015 export comparison of error

    When rendering of PPCC 2015 on OSX, all the class OS and applications - I noticed that my 1080 p prores project makes very good, (film length 24 hr. 2 p) when choosing Match Source.  However when choosing an option to export in 720 p, the same codec - full compilation film crash, with an unknown error error as the subcode.

    Is there a reason, or even the downsizing adding to the load of memory? that could be the case?

    Thanks in advance

    j.

    Hi JonF,

    Is there a reason, or even the downsizing adding to the load of memory? that could be the case?

    Yes, there is. The scale is a process accelerated by the GPU, upon export according to the Protocol of the Mercury playback engine. If you switch the GPU acceleration off the coast in the project settings (choose software only), you probably are not the film compilation error, but the treatment will take much more time. Probably, you need a GPU that has more VRAM to do what you want to do.

    Since we don't know your hardware configuration, it is all just a guess. If you have a low power GPU, then, I guess you got your bottleneck.

    Thank you
    Kevin

  • operation not permitted error in the comparison of documents

    I get an "operation not permitted" error when you try to compare documents in adobe pro XI.

    Make sure that no document is ATTACHED.

  • Error in the comparison of two numbers

    Hello

    I have the columns value_from and value_to both are number data type.

    I check if level_value_from is greater than level_value_to, I need to throw an exception.

    To do this, I wrote below, his mistake by giving the code. Can someone suggest me please a simple logic.



    String Level1Frm = pageContext.getParameter ("Level1From");
    String Level1To = pageContext.getParameter ("Level1To");

    If ((null! = Level1Frm) & & (null! = Level1To) & & (""! ")) = Level1Frm) & & (""! ") = Level1To))
    {

    Number of numLevel1Frm = new number (Level1Frm);
    Number of numLevel1To = new number (Level1To);
    }
    If (numLevel1Frm < numLevel1To)
    {
    throw new OAException ("is superior To", OAException.ERROR);
    }
    }

    This is in error, can someone help me how to solve this problem?


    Thank you
    Mahesh

    It works:
    If (pageContext.getParameter ("compare")! = null)
    {
    String s1 = pageContext.getParameter ("num");
    String s2 = pageContext.getParameter ("num1");
    Number n1 = null;
    Number n2 = null;
    try {}
    N1 = new Number (s1);
    N2 = new Number (s2);
    } catch (System.Exception e)
    {
    e.printStackTrace ();
    }
    If (N1.intValue () > n2.intValue ())
    {
    throw new OAException ("num1 > num2", OAException.ERROR);
    } else
    {
    throw new OAException ("num2 > = num1", OAException.ERROR);
    }
    }

  • Find the source of the massive compilation errors

    Hi all

    I am trying to determine the source of the errors on a generation of RT and therefore a massive to remove compilation live broken and unused running the project is important enough, so the output from compilation of mass is large.  One thing I am struggling with trying to determine * why * an error.  For example, I get a few CompileFile: error 7, which indicates that something is looking for a file that does not exist.  How can I determine which leader is the search for the missing file?  I've attached the output from the massive compilation, but also a python file that I use to interpret the files to find errors.

    On another note about this file - what I'm doing with the release of Bad VI/Subvi?  It almost seems as if he is allowed to disregard this output.

    Any help is welcome. At soon cirrus

    (okay, that I'm lame but you are not allowed to attach python so here is the script below)

    FName = "mass_compile_log_10202016.txt."
    with open (fname) as f:
    line = f.readline () .strip)
    I = 0 # track the error number
    j = 0 # track the line number
    # Only goes to find the first 30 records
    <>
    s = line [0:3]
    j += 1

    # Not interested in a failure to load, search or bad messages VI...
    otherwise (s == ' # ' or s == 'ISP' or s == 'Sea' or s == "(C:"):
    I += 1 # increment the error
    Print (STR (i) + "[" + str (j) + ' "].") + line)
    line = f.readline () .strip)
    f.Close)

    Thank you, udka.

    In fact, I came across the easy solution (although there is always only one instance dangling out there that I can't explain).  Simply

    1. Create a new project
    2. Add a snapshot of the file you want to compile mass

    If you lack the screws in the massive compilation, these will appear in the missing build dependencies and you can know who is dependent on them.

    About the wrong screw - it is difficult to know if this could be due to the fact that the compilation of mass occurs on local and he can't find the RT del VI (since it is not on the RT system).  Whatever it is, I'm building again to see if I have an exe works on the RT system (the reason why I was making the massive compilation has been a failure on the exe - not when you build, but when running).  I have attached my log of recent massive compilation for the comparison of what I started with.

  • Error reading POWER HP 66xx block

    / * New warning the user * /.

    I learned (slowly) obtain a set of instuments external connected to LabView. For the most part, I was a successful read and write commands and data from the basic instruments. There is a problem that I can not understand both of my Agilent 6653 power supplies.

    Can I get the supplies to put the power switch as well as setting volts/amps output. The problem is trying to read measured volts and amps back. The VI freezes and gives an error message I don't understand. Here are a few screenshots, if it is useful to download the VI, of course I can do it.

    It is a criterion VI the only function is to have control over basic food and read a Keithley DMM to make a comparison. Both work very well until I have add the SOUL READ vi on the block diagram power supply section. It seemed simple, VISA and ERROR pass through and he must spit, voltage and current as a DBL.

    I manually tested the controls and the returned data looks okay.

    FIRST MISTAKE...

    SECOND MISTAKE... It relates the Keithley DMM

    Don't know where to find an answer. Hoping there is a simple answer.

    Thanks in advance to all who wish to take the time to help.


  • Case returns the error on the value of type (error-17308)

    Hello

    I have the following problem with TestStand: I use a sequence setting tension on an instrument. The first step in this sequence is to choose the instrument to define. It worked absolutely fine so far. Next, I added a tool to select (called 2602A here). Now, it always works for all instruments, but not for this one. I also tested the Select / Case regardless, he does the same. The error message indicates that the type of my value does not match the type expexted. Yet, the type, as defined in the parameters.instrument is good (see attached photo). I tried with/without reference: same behavior. I tried with/without check Type: same behavior.

    Maybe I can specify that my instrument works very well, I tested the list of instructions under the indendently step case, without any difficulty.

    Any idea? Thank you in advance.

    TestStand:

    TS engine f1 2010 SP1 (4.5.1.144)

    4.5.1.134 sequence editor

    LabVIEW:

    Version 11.0.1f2

    Hello

    Looks like you do a comparison in the "select" for a string type as seen by the value, but the setting for the case is an assessment rather than a string of values to compare to and I can not make sense since he's looking for a game (chained a ternary operator) or returns - 1 - making in this case doesn't make no sense - do in the select to return whereby cases to go.

    The step case type is more than a 1:1 comparison, however, you have already demonstrated, the case itself may be an expression - you must ensure that the expression is returned exactly the correct type, so-1 is not valid, but would be "-1".

    Who is?

    So I tried to replicate this - if I send a pure (as in "2604" string) number when I'm looking for Parameters.Instrument == "2604 A '? '" 2604 A': Parameters.Instrument == "2604 B"? "" 2604B ':-1

    He then drops the default case.

    If I switch 2604 'B' which then activates OK.

    If I pass in "fred" which fails with the error since we were looking for - 1 because it is a number, it does not work.

    If I replace the case expression with:

    Parameters.Instrument == "2604 A '? '" 2604 A': Parameters.Instrument == "2604 B"? "" 2604-B ":"2604 A.

    While expression first only returns a string, so you'll get to the channel currently selected string comparison AND if I get A 2604 or 2604 B then I get a return value that corresponds to the string passed, or get a string that does not match, so the case is not the right one.

    So Don't pass return - 1 = return pass which is valid for this case, but do not match the incoming parameter.

    Thank you

    Sacha

Maybe you are looking for