Indicator string displays incorrect results

Hello, I have a duty, and I am facing some problems with string indicator.

What I am assigned is:

The user fills 2 bays with 5 numbers

E FILL button is clicked, and then the program checks if the items created in table 3 matches elements in table 1 and 2.

(I have attached the file doc for clarity).

Channel indicator sometimes give the wrong answers. (is there a better way to solve the channel indicator?)

Thank you.

the vi is version 10.

Better is how? Do not place the extra empty lines in the string? If this is the case you only need to update the chain when necessary, not every iteration of the loop. If you mean something else I don't know what you want to improve.

There are many things that can be improved from a coding perspective. When you wire up a table in a loop, it is preferable to use automatic indexing to determine the number of iterations of the loop will run. Except that as in the case of your first loop, you must use table size to determine the number of iterations to run, not a constant value. Your second loop can be simplified and does not require the table. Use a shift register and reduce to zero the value of the Boolean value each iteration. In addition, the logic in the context of the third would be easier to understand if you used one or rather than an and. If any value is True check tables. Your actually have the reverse logic. If it is true, it is the opposite of what someone might think. Another method would be to add the two results and wire numberic value to the structure of the case. Case '0' means that everything is acceptable. If default (anything not 0) means you have unacceptable values.

A final comment would be what is actually your stop condition? The two nested while loops seems rather strange and unnecessary.

Tags: NI Software

Similar Questions

  • Display the results in the String form: dosen't work based on the example

    Hello

    To understand How to display the results as a string, I tried to reproduce this:
    [http://apex.oracle.com/pls/otn/f?p=31517:84 | http://apex.oracle.com/pls/otn/f?p=31517:84]

    I have my emp table
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO 
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
     7839  KING PRESIDENT -  81-11-17 5000 -  10 
     7698 BLAKE MANAGER 7839 81-05-01 2850 -  30 
     7782 CLARK MANAGER 7839 81-06-09 2450 -  10 
     7566 JONES MANAGER 7839 81-04-02 2975 -  20 
     7788 SCOTT ANALYST 7566 82-12-09 3000 -  20 
     7902 FORD ANALYST 7566 81-12-03 3000 -  20 
     7369 SMITH CLERK 7902 80-12-17 800 -  20 
     7499 ALLEN SALESMAN 7698 81-02-20 1600 300 30 
     7521 WARD SALESMAN 7698 81-02-22 1250 500 30 
     7654 MARTIN SALESMAN 7698 81-09-28 1250 1400 30 
     7844 TURNER SALESMAN 7698 81-09-08 1500 0 30 
     7876 ADAMS CLERK 7788 83-01-12 1100 -  20 
     7900 JAMES CLERK 7698 81-12-03 950 -  30 
     7934 MILLER CLERK 7782 82-01-23 1300 -  10 
    I've created with the wizard, on my page, a new AREA of REPORT
    -Selected SQL - RESULTS
    -Name: Test
    -Area Source Type: SQL Query
    -Model region: region report


    IN function enter SQL Query or PL/SQL returns a SQL query, I COPY-PASTE the following code to [http://apex.oracle.com/pls/otn/f?p=31517:84 | http://apex.oracle.com/pls/otn/f?p=31517:84]

    DECLARE
       p_vc_arr2   htmldb_application_global.vc_arr2;
       p_string    VARCHAR2 (2000);
    BEGIN
       SELECT ename
       BULK COLLECT INTO p_vc_arr2
         FROM emp
        WHERE deptno = :p84_select_deptno;
    
       p_string := 
         HTMLDB_UTIL.table_to_string (p_vc_arr2, ':');
       HTP.p (p_string);
    END;
    AND I have this error:

    + 1 error has occurred.
    Invalid query, no found select statement

    Is not a PL/SQP selected?

    Do I did wrong?


    Thank you

    Roseline Paquin
    Montreal, Canada

    1 error has occurred
    Invalid query, no found select statement

    What happens if you try

    DECLARE
       p_vc_arr2   htmldb_application_global.vc_arr2;
       p_string    VARCHAR2 (2000);
    BEGIN
       SELECT ename
       BULK COLLECT INTO p_vc_arr2
         FROM emp
        WHERE deptno = :p84_select_deptno;
    
        return 'select ''' ||  HTMLDB_UTIL.table_to_string (p_vc_arr2, ':') || ''' str from dual';
    
    END;
    

    ??

  • To display the result in the dialog box

    Hi all!

    I wonder if there is a way to make me at the end of a process, to display the result (number or string), I got in a dialog box.

    I mean at the end there is a dialog box containing the message as "the result is xxx" xxx is the result of this process.

    Any idea about it? Thanks in advance!

    Chao

  • How to display the result sqlplus in java?

    I want to call sqlplus to run some commands sql in java, but how can I print the result of sqlplus?

    In java code, I call sqlplus as:

    Process of p;
    Run the command
    p = Runtime.getRuntime () .exec (commandString);
    print the result of the command
    InputStream inputStream = p.getInputStream ();

    How to display the result of the execution?

    Published by: Yi on February 26, 2012 23:41

    You can use ProcessBuilder. Copy the following code starts sql * more and runs the script in the variable "filename". It displays the results in the console of NetBeans.

    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.File;
    import java.util.Map;
    
    public class test1 {
    
        public static void main (String args []) {
    
            test_script();
        }
    
        public static void test_script () {
    
            String fileName = "@test_table.sql";
            String sqlPath = "E:\\";
    
            String sqlCmd = "sqlplus";
    
            String arg1   = "user/password@sid"; -- plug in your user, password and db name
            String arg2   = fileName;
            try {
                String line;
                ProcessBuilder pb = new ProcessBuilder(sqlCmd, arg1, arg2);
                Map env = pb.environment();
                env.put("VAR1", arg1);
                env.put("VAR2", arg2);
                pb.directory(new File(sqlPath));
                pb.redirectErrorStream(true);
                Process p = pb.start();
              BufferedReader bri = new BufferedReader
                (new InputStreamReader(p.getInputStream()));
              BufferedReader bre = new BufferedReader
                (new InputStreamReader(p.getErrorStream()));
              while ((line = bri.readLine()) != null) {
                System.out.println(line);
              }
              bri.close();
              while ((line = bre.readLine()) != null) {
                System.out.println(line);
              }
              bre.close();
              System.out.println("Done.");
            }
            catch (Exception err) {
              err.printStackTrace();
            }
    
        }
    
    }
    

    Here is the content of the script at E:\\test_table.sql

    Prompt drop TABLE ANOTHER_TEST;
    DROP TABLE ANOTHER_TEST CASCADE CONSTRAINTS
    /
    
    Prompt Table ANOTHER_TEST;
    CREATE TABLE ANOTHER_TEST
    (
      BATCH_SEQ             NUMBER,
      BATCH_GROUP_ID        NUMBER,
      STATUS_FLAG           VARCHAR2(30 BYTE),
      OBJ_BEING_PROCESSED   VARCHAR2(80 BYTE),
      BATCH_RUN_START_DTTM  DATE,
      BATCH_RUN_END_DTTM    DATE,
      CREATE_DTTM           DATE,
      CREATE_USER           VARCHAR2(30 BYTE),
      UPDATE_DTTM           DATE,
      UPDATE_USER           VARCHAR2(30 BYTE)
    )
    LOGGING
    NOCOMPRESS
    NOCACHE
    PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
    MONITORING
    /
    
    COMMENT ON TABLE ANOTHER_TEST IS 'This is a test table.'
    /
    
    EXIT
    /
    
  • Incorrect results of SDO_GEOM. Relate()

    Hi all

    I get incorrect results of calls to SDO_GEOM.relate / SDO_RELATE / SDO_INSIDE etc., apparently because they cannot handle the values of Longitude both positive and negative in the same query.

    The request goes in the direction of
    SELECT COUNTRY,
     SDO_GEOM.relate(SCOTT.ASIA.GEOLOC, 'DETERMINE', < A Transient Geometry>, '0.005') from SCOTT.ASIA;
    Where SCOTT.ASIA is a layer containing a geometry for each Asian countries (although I experienced the same behavior with other, more simple polygons)
    And transitional geometry is defined:
    MDSYS.SDO_GEOMETRY(
                2003,
                8307,
                null,
                MDSYS.SDO_ELEM_INFO_ARRAY(1,1003, 1),
                MDSYS.SDO_ORDINATE_ARRAY(-1.2,   89.9,   6.6,  -16.2,  170.3,  -21.1,  168.25,  89.9,  -1.2,  89.9))
    This query gives me:
    Malaysia     DISJOINT
    Maldives     DISJOINT
    Mongolia     DISJOINT
    Myanmar     DISJOINT
    ...etc
    When all these geometries have to resolve on the INSIDE.
    I traced this issue to the fact that there is a selected point with a negative longitude (-1.2, 89.9), which should be perfectly fine. If I change of (1,2, 89.9):
    I get:
    Malaysia     INSIDE
    Maldives     INSIDE
    Mongolia     INSIDE
    Myanmar     INSIDE
    ...etc
    This occurs regardless of what point is outside the hemisphere for example:
    ...  MDSYS.SDO_ORDINATE_ARRAY(-1.2,   89.9,   6.6,  -16.2,  170.3,  -21.1,  168.25,  89.9,  -1.2,  89.9)...
    ...  MDSYS.SDO_ORDINATE_ARRAY(1.2,   89.9,   6.6,  -16.2,  170.3,  -21.1,  *191.75*,  89.9,  1.2,  89.9)...
    ...  MDSYS.SDO_ORDINATE_ARRAY(1.2,   89.9,   6.6,  -16.2,  170.3,  -21.1,  *-168.25*,  89.9,  1.2,  89.9)...
    Note that the second and third entries represent a limit to the East that surrounds the Western hemisphere. None of these definitions provide good results when using SDO_GEOM.relate

    Is there a way to make sure that spatial queries returning correct results with geometries that envelop this way?

    Thank you

    This type of query "whole earth" does not work as you did. See http://download.oracle.com/docs/html/B14255_01/sdo_cs_concepts.htm#i891851
    >
    The following size limits apply, with geodetic data
    No polygon element can have an area larger than half of the surface of the Earth.
    Online, the distance between two adjacent coordinates cannot be greater or equal to half of the perimeter (a great circle) of the Earth.

    If you need to work with larger items, first break these elements into several smaller components and work with them. For example, you cannot create a geometry that represents the entire surface of the Earth; However, you can create several geometries, each representative of the global ocean surface. To work with a line string that is greater than or equal to half of the perimeter of the land, you can add one or more points on the line so that all adjacent coordinates are less than half of the perimeter of the land.
    >

    Search this forum for "Earth." for example
    Re: Simple Transformation work not as expected
    the whole earth MBR GEODESIC

  • When I type in my Thunderbird email all characters are displayed correctly, but in Firefox characters are displayed incorrectly.

    When I type in my Thunderbird email all the characters appear correctly. When I type in a web site using Firefox or Chrome the characters are displayed incorrectly. For example: I'm going to type the same thing here. It will come out like this or a Variant: 456 7890-= qwe rtyu. If I do the same thing again it will be: [IOPS] as dia jkl;' ' \zx. What is going on? Bye the way I had to type this in Thunderbird and copy and paste into this web site. Also, if I type in MS Word or Excel, all is good. The problem is on the web sites.
    Using Win7.

    This problem may be caused by the Anti-Keylogger in ZoneAlarm, so you can disable this function until ZoneAlarm has published an update.

  • page displayed incorrectly

    From time to time various web site displayed incorrectly - today, it's Facebook http://www.facebook.com/home.php?ref=hp but it another day it was my pages of the Bank.
    Generally, it corrects after the re - start the computer.
    Please advise how to stop what is happening, or correct the problem when it occurs.
    I checked simple things like the latest drivers display, Java, Flash Player, etc.. The add-on only it's a show like a problem is Acrobat and that seems to be because I have a race Acrobat 9 Standard and the last update is for Acrobat Reader 10, but the same problem happens when I run Firefox in safe mode.

    Press CTRL + 0 (zero) to Reset the Zoom

    Websites look wrong

    Check and tell if its working.

  • Please explain CVI question #335358: using the operator of bit-shift twice on the same line of code produces incorrect results

    Hello

    I just stumbled on http://www.ni.com/white-paper/12323/en#335358_by_Category.

    With the help of the bit-shift operator twice on the same line of code produces incorrect results.
    Workaround: Separate the operations of shift of two bits in two distinct lines of code.

    Reported Version: 9.0    Solved Version: N/A    Added the: 14/02/2012

    Could someone please explain what kind of construction causes such a question?

    I have not noticed problems again and not have not noticed or found a thread about it.

    Thank you.

    The reported scenario looks like this:

    unsigned int a = 1, b = 62;
    unsigned  long long result = 1ULL << a << b;
    

    The problem arises because of the temporary variable used when do two little is placed in the same line. This separation into two lines will produce correct results:

    unsigned int a = 1, b = 62;
    unsigned  long long result = 1ULL << a;
    result = result << b;
    
  • How to make a loop to display the results of each iteration?

    I have a process inside a for loop and I want to display the results of 1, 2, 3 and 4 iterations all at once. Is it possible to do without creating 4 distinct for loops with a different constant for every N?

    Thanks for the help.


  • Is there a way to divide such ads and Add ons in a screen and automatically display search results in the other

    Original title: twomonitorsononepc

    I have two monitors on my pc is there any way for example divide ads and Add ons in a screen and automatically display search results in the other.

    or if facebook were used cat into one screen and status on the other screen please

    Hi Richard,

    What is the operating system installed on the computer?

    It seems that you need to divide the same application in several windows and place them in different monitors. Is this correct?

    Unfortunately, it is normal and you can not split the same application on two different monitors.

    Hope this information helps. Get back to us if you have more queries about Windows.

  • Programmatically change text in PS? Legend on an invisible control? Indicator string as the title?

    I have a nice decoration on my panel indicating the name of the program and the version in big bold letters. I quickly read the text to the place an ini file, but do not know how to properly present it.

    In fact, I like having the channel indicator that resembles a title and not an indicator of the chain.

    Because it is easy to change the caption on a control I tried, but then I just want to see the legend, not the control.

    I guess I can change something indicator string if the text is on the left.

    Quick question and I feel quite stupid, not knowing how to solve...

    Use a classic string indicator.  Manually change to the background and framework are transparent.  It will now look like a label.

    Programmatically write new text as needed.

  • Creation time of the file on the local FTP site displays incorrectly.

    On the local FTP site displays incorrectly. My computer running Windows 7. The network is a plotter/Analyzer server running Win XP special edition designed for things like servers of tracer. Analyses are stored in a folder of analysis/tempstore/on the XP machine and accessed as a FTP site. If I access it via a browser, everything is correct. If I access it through the Solution Explorer window, there is a difference of five hours at the specified time. Five hours is be the offset UT, but it's in the wrong direction, unless he thinks that the file time is UT and it adjusts to AND. To make things more strange, if I write click on the file and select Properties, the time is displayed correctly. Other office machines do not have this problem.

    Hi J.smart,

    Thanks for posting in the Microsoft Community.

    Since local time on FTP site indicates incorrectly, the question you posted would be better suited for COMPUTING public Pro on TechNet. I would recommend posting your query in the TechNet Forums to get help:

    Windows 7 Security Forums

  • Search Google in Internet Explorer 10 does not display search results.

    Yesterday, I received my new laptop Pavilion dv6 Quad Edition.

    When I use Google seaech in Internet Explorer 10 it does not display the results,

    It displays a blank page.

    I uninstalled IE - 10 and he returned to IE - 8 and google search works correctly.

    I then downloaded IE - 9 and it worked normally. Ithen reinstalled IE - 10 and it still

    has not displayed the search results. I am at my wits end and I'm about to return

    HP computer. Either way, I am running Windows 7 Home Premium 64-bit.

    I used the solution of UTube and it solved my problem.

    Thank you very much, your help is greatly appreciated, my laptop problems were resolved.

    Chef Bob

  • OBIEE 11 g: get incorrect results when you browse detailed report summary.

    Hello

    I get incorrect results when you browse detailed report summary.

    Please find the attached document, I have gives step by step with screen shots.

    Please let me the problem and the solution.

    Kind regards

    Srinivas.

    1. What are you going through the link of action, only pass you the values (between 61 and 65) and Total, are

    If so that the parameter value will not restrict your report in detail, try filterout gender and age (between 61 and 65) group through action link.

    2 Total, to filter only the sex,

    Concerning

    Rajagopal.

  • Automatic page numbers displaying incorrectly

    I only use Indesign CS6 about once a year for work. I had the same thing happen last year and managed to solve the problem but, for the life of me I don't remember what I changed.

    When I add automatic page for master pages numbers, two-digit numbers appear just to left instead of left to right. For example: "10" displays as "01", displays '12' '21' and so on.

    Does anyone know how to fix this?

    I finally thought to it. The text box was too small and was originally the text to display incorrectly. I did the larger box, and it fixed the problem.

Maybe you are looking for

  • Recent missing items in Menu Apple

    I 10.11.4 OS on my MacBook Air, and recently the recent items in the Apple Menu option stopped appearing. When I go to system preferences > general, recent items usually resets to zero. If I put it to another number, sometimes I can go to another ele

  • Why Firefix does not load my homepage?

    When I open a new window, Firefox does not open with my home page, but with the last page I was on before closing the browser. Why is this happening? How can I fix the problem? Respectfully,. Cristina Herrera

  • doc-exporter of Safari is unable

    When I try to export a PDF from Safari, insists the app save the doc in another computer. Safari only gives me the ability to save to this computer running Safari, where I am writing this request for assistance. The external computer has been previou

  • Bluescreen download McAfee Total Protection

    Hello Can someone please help - I just spent 5 1/2 hours chatting with McAfee, then more with Microsoft but not just anywhere. I uninstalled and I try to reinstall McAfee Total Protection. However, when you try to download the software, I get the blu

  • Update XP, Vista and win7 PC with disk ssd

    Hello I have 3 computers with XP, Vista and Win7. I wonder if computers laptops XP and Vista (sata) will be able to get the most out of the SSD HDD?The sine qua non of not losing a lot of performance, is that the bios ahci mode available for hard dis