LabVIEW Serial port wait event with Serial Termchar

Hello world!

I'm quite new with LabVIEW and I'm having some trouble trying to communicate using the serial port.

I'm trying to detect a data frame with an 'X' as the terminal character sent to the serial port.

The problem is that with the VI attached on this post I am not being able to detect the chariot of the term series.

I tried to make some changes to fix this, but I can't.

In VI, I used a function of Type Cast when I was using the wrong ASCII for 'X' value, but it still the same.

Can anyone help with this?

Thank you!

Best regards

Omar

This will work only if your message can never be more than 8 characters including the character. term set this value to 1000 or something that is guaranteed to be always bigger than the size of your message and all should be good.

Tags: NI Software

Similar Questions

  • DB file scattered read with Free (CBC) latch wait events

    Hi all

    On our production database server, we found about 50 sessions in lock Free (CBC) wait wait event with about 30 sessions waiting for db file scattered read... Also, the CPU load was obviously very high(90-99%).

    Our server has 4 CPU and OS is HP - UX
    Oracle version: 8.1.6.0.0
    The optimizer mode is RULE

    We found all sessions waiting performing this query below:
    (SELECT /*+ORDERED*/
            ud.user_id,
            DECODE (udl.new_user_name,
                    NULL, ud.user_name,
                    udl.new_user_name
                   ) AS user_name,
            udl.old_user_name, ud.PASSWORD, ud.status, au.first_name,
            au.last_name, sd.sd_id, sd.site_id, s.manager_number,
            sd.delivery_code, sd.site_server_id, au.email_address, au.outorg_id,
            udl.action_code, udl.action_category, udl.action_date AS action_date,
            au.admin_users_uid
       FROM user_delivery_log udl,
            user_delivery ud,
            appuser au,
           site_delivery sd,
            site_t s
      WHERE udl.action_date BETWEEN TO_DATE ('04/21/2009 17/46/25',
                                             'MM/DD/YYYY HH24/MI/SS'
                                            )
                                AND TO_DATE ('04/21/2009 17/47/26',
                                             'MM/DD/YYYY HH24/MI/SS'
                                            )
        AND (   (udl.action_category = 'I' AND BITAND (udl.action_code, 8195) != 0
                )
             OR (udl.action_category = 'U' AND BITAND (udl.action_code, 2079) != 0
                )
            )
        AND udl.site_id != 0
        AND ud.user_id = udl.user_id
        AND ud.sd_id = udl.sd_id
       AND ud.user_id = au.user_id
        AND ud.sd_id = sd.sd_id
        AND sd.site_id = s.site_id
        AND (sd.delivery_code = 'AEN')
        AND (   udl.new_user_name IS NOT NULL
            OR 0 =
                   ((SELECT /*+ORDERED*/
                            COUNT (*)
                       FROM user_delivery_log udl1
                      WHERE udl1.action_date
                               BETWEEN TO_DATE ('04/21/2009 17/46/25',
                                                'MM/DD/YYYY HH24/MI/SS'
                                               )
                                   AND TO_DATE ('04/21/2009 17/47/26',
                                               'MM/DD/YYYY HH24/MI/SS'
                                               )
                        AND (   (    udl1.action_category = 'I'
                                 AND BITAND (udl1.action_code, 8195) != 0
                                )
                             OR (    udl1.action_category = 'U'
                                 AND BITAND (udl1.action_code, 2079) != 0
                                )
                            )
                        AND udl1.site_id != 0
                        AND udl1.sd_id = ud.sd_id
                        AND udl1.user_id = ud.user_id
                        AND udl1.new_user_name IS NOT NULL))
            ))
    UNION
    (SELECT /*+ORDERED*/
            ud.user_id,
            DECODE (udl.new_user_name,
                    NULL, ud.user_name,
                    udl.new_user_name
                   ) AS user_name,
            NULL AS old_user_name, ud.PASSWORD, ud.status, au.first_name,
            au.last_name, sd.sd_id, sd.site_id, s.manager_number,
            sd.delivery_code, sd.site_server_id, au.email_address, au.outorg_id,
            1536, 'U', udl.action_date AS action_date, au.admin_users_uid
       FROM user_delivery_log udl,
            user_delivery ud,
            appuser au,
            site_delivery sd,
            site_t s
      WHERE (udl.user_id, udl.action_date) IN (
               SELECT   udl.user_id, MAX (action_date)
                   FROM user_delivery_log udl
                  WHERE udl.action_date <
                           TO_DATE ('04/21/2009 17/46/25',
                                    'MM/DD/YYYY HH24/MI/SS')
                    AND (   (    udl.action_category = 'I'
                             AND BITAND (udl.action_code, 8195) != 0
                            )
                         OR (    udl.action_category = 'U'
                             AND BITAND (udl.action_code, 2079) != 0
                            )
                        )
                    AND udl.user_id IN (
                           SELECT user_id
                             FROM appuser_log aul
                            WHERE aul.action_date
                                     BETWEEN TO_DATE ('04/21/2009 17/46/25',
                                                      'MM/DD/YYYY HH24/MI/SS'
                                                    )
                                         AND TO_DATE ('04/21/2009 17/47/26',
                                                      'MM/DD/YYYY HH24/MI/SS'
                                                     )
                              AND aul.action_category = 'U'
                              AND BITAND (aul.action_code, 5632) != 0)
                    AND udl.new_user_name IS NOT NULL
               GROUP BY user_id)
        AND udl.site_id != 0
        AND 0 =
               (SELECT COUNT (*)
                  FROM user_delivery_log udl, site_delivery sd
                 WHERE udl.action_date BETWEEN TO_DATE ('04/21/2009 17/46/25',
                                                        'MM/DD/YYYY HH24/MI/SS'
                                                       )
                                           AND TO_DATE ('04/21/2009 17/47/26',
                                                        'MM/DD/YYYY HH24/MI/SS'
                                                       )
                   AND (   (    udl.action_category = 'I'
                           AND BITAND (udl.action_code, 8195) != 0
                           )
                        OR (    udl.action_category = 'U'
                            AND BITAND (udl.action_code, 2079) != 0
                           )
                       )
                   AND udl.site_id != 0
                  AND udl.sd_id = sd.sd_id
                   AND udl.user_id = au.user_id
                   AND (sd.delivery_code = 'AEN'))
        AND ud.user_id = au.user_id
        AND ud.user_id = udl.user_id
        AND ud.sd_id = sd.sd_id
        AND sd.site_id = s.site_id
        AND (sd.delivery_code = 'AEN'))
    ORDER BY action_date ASC;
    
    Below is the execution plan:
    Execution Plan
    ----------------------------------------------------------
       0      SELECT STATEMENT Optimizer=RULE (Cost=341 Card=3 Bytes=312)
       1    0   SORT (UNIQUE) (Cost=342 Card=3 Bytes=312)
       2    1     UNION-ALL
       3    2       CONCATENATION
       4    3         FILTER
       5    4           NESTED LOOPS (Cost=12 Card=1 Bytes=100)
       6    5             NESTED LOOPS (Cost=11 Card=1 Bytes=94)
       7    6               NESTED LOOPS (Cost=10 Card=1 Bytes=77)
      8    7                 NESTED LOOPS (Cost=8 Card=1 Bytes=52)
       9    8                   TABLE ACCESS (BY INDEX ROWID) OF 'USER_DEL
              IVERY_LOG' (Cost=4 Card=2 Bytes=58)
      10    9                     INDEX (RANGE SCAN) OF 'IE1_USER_DELIVERY
              _LOG' (NON-UNIQUE) (Cost=3 Card=2)
      11    8                   TABLE ACCESS (BY INDEX ROWID) OF 'USER_DEL
              IVERY' (Cost=2 Card=1192563 Bytes=27428949)
      12   11                     INDEX (UNIQUE SCAN) OF 'IDX_PK_INV_USER_
              SD_ID' (UNIQUE) (Cost=1 Card=1192563)
      13    7                 TABLE ACCESS (BY INDEX ROWID) OF 'APPUSER' (
              Cost=2 Card=863102 Bytes=21577550)
      14   13                   INDEX (UNIQUE SCAN) OF 'PK_APPUSER' (UNIQU
              E) (Cost=1 Card=863102)
      15    6               TABLE ACCESS (BY INDEX ROWID) OF 'SITE_DELIVER
              Y' (Cost=1 Card=3494 Bytes=59398)
      16   15                 INDEX (UNIQUE SCAN) OF 'PK_NEW_SITE_DELIVERY
              ' (UNIQUE)
      17    5             TABLE ACCESS (BY INDEX ROWID) OF 'SITE_T' (Cost=
              1 Card=64113 Bytes=384678)
      18   17               INDEX (UNIQUE SCAN) OF 'PK_SITE_T' (UNIQUE)
      19    4           TABLE ACCESS (BY INDEX ROWID) OF 'USER_DELIVERY_LO
              G' (Cost=6 Card=1 Bytes=27)
      20   19             INDEX (RANGE SCAN) OF 'IE1_USER_DELIVERY_LOG' (N
              ON-UNIQUE) (Cost=3 Card=1)
      21    3         FILTER
      22   21           NESTED LOOPS (Cost=12 Card=1 Bytes=100)
      23   22             NESTED LOOPS (Cost=11 Card=1 Bytes=94)
      24   23               NESTED LOOPS (Cost=10 Card=1 Bytes=77)
      25   24                 NESTED LOOPS (Cost=8 Card=1 Bytes=52)
      26   25                   TABLE ACCESS (BY INDEX ROWID) OF 'USER_DEL
              IVERY_LOG' (Cost=4 Card=2 Bytes=58)
      27   26                     INDEX (RANGE SCAN) OF 'IE1_USER_DELIVERY
             _LOG' (NON-UNIQUE) (Cost=3 Card=2)
      28   25                   TABLE ACCESS (BY INDEX ROWID) OF 'USER_DEL
              IVERY' (Cost=2 Card=1192563 Bytes=27428949)
      29   28                     INDEX (UNIQUE SCAN) OF 'IDX_PK_INV_USER_
              SD_ID' (UNIQUE) (Cost=1 Card=1192563)
      30   24                 TABLE ACCESS (BY INDEX ROWID) OF 'APPUSER' (
              Cost=2 Card=863102 Bytes=21577550)
      31   30                   INDEX (UNIQUE SCAN) OF 'PK_APPUSER' (UNIQU
             E) (Cost=1 Card=863102)
      32   23               TABLE ACCESS (BY INDEX ROWID) OF 'SITE_DELIVER
              Y' (Cost=1 Card=3494 Bytes=59398)
      33   32                 INDEX (UNIQUE SCAN) OF 'PK_NEW_SITE_DELIVERY
              ' (UNIQUE)
      34   22             TABLE ACCESS (BY INDEX ROWID) OF 'SITE_T' (Cost=
              1 Card=64113 Bytes=384678)
      35   34               INDEX (UNIQUE SCAN) OF 'PK_SITE_T' (UNIQUE)
      36    2       NESTED LOOPS (Cost=314 Card=1 Bytes=112)
      37   36         NESTED LOOPS (Cost=313 Card=1 Bytes=106)
      38   37           NESTED LOOPS (Cost=312 Card=1 Bytes=89)
      39   38             NESTED LOOPS (Cost=310 Card=1 Bytes=64)
      40   39               NESTED LOOPS (Cost=306 Card=1 Bytes=41)
      41   40                 VIEW OF 'VW_NSO_1' (Cost=302 Card=1 Bytes=22
              )
      42   41                   SORT (GROUP BY) (Cost=302 Card=1 Bytes=35)
      43   42                     NESTED LOOPS (Cost=299 Card=1 Bytes=35)
      44   43                       TABLE ACCESS (FULL) OF 'APPUSER_LOG' (
              Cost=93 Card=1 Bytes=16)
      45   43                       TABLE ACCESS (FULL) OF 'USER_DELIVERY_
              LOG' (Cost=206 Card=73505 Bytes=1396595)
      46   40                 TABLE ACCESS (BY INDEX ROWID) OF 'USER_DELIV
              ERY_LOG' (Cost=4 Card=429251 Bytes=8155769)
      47   46                   INDEX (RANGE SCAN) OF 'IE1_USER_DELIVERY_L
              OG' (NON-UNIQUE) (Cost=3 Card=429251)
      48   39               TABLE ACCESS (BY INDEX ROWID) OF 'USER_DELIVER
             Y' (Cost=4 Card=1192563 Bytes=27428949)
      49   48                 INDEX (RANGE SCAN) OF 'IDX_PK_INV_USER_SD_ID
              ' (UNIQUE) (Cost=3 Card=1192563)
      50   38             TABLE ACCESS (BY INDEX ROWID) OF 'APPUSER' (Cost
              =2 Card=43156 Bytes=1078900)
      51   50               INDEX (UNIQUE SCAN) OF 'PK_APPUSER' (UNIQUE) (
              Cost=1 Card=43156)
      52   51                 NESTED LOOPS (Cost=7 Card=1 Bytes=31)
      53   52                   TABLE ACCESS (BY INDEX ROWID) OF 'USER_DEL
             IVERY_LOG' (Cost=6 Card=1 Bytes=24)
      54   53                     INDEX (RANGE SCAN) OF 'IE1_USER_DELIVERY
              _LOG' (NON-UNIQUE) (Cost=3 Card=1)
      55   52                   TABLE ACCESS (BY INDEX ROWID) OF 'SITE_DEL
              IVERY' (Cost=1 Card=3494 Bytes=24458)
      56   55                     INDEX (UNIQUE SCAN) OF 'PK_NEW_SITE_DELI
              VERY' (UNIQUE)
      57   37           TABLE ACCESS (BY INDEX ROWID) OF 'SITE_DELIVERY' (
              Cost=1 Card=3494 Bytes=59398)
      58   57             INDEX (UNIQUE SCAN) OF 'PK_NEW_SITE_DELIVERY' (U
              NIQUE)
      59   36         TABLE ACCESS (BY INDEX ROWID) OF 'SITE_T' (Cost=1 Ca
              rd=64113 Bytes=384678)
      60   59           INDEX (UNIQUE SCAN) OF 'PK_SITE_T' (UNIQUE)
    For a clear view of the execution plan:
    Plan Table
    --------------------------------------------------------------------------------------------------------
    | Operation                 |  Name    |  Rows | Bytes|  Cost  | Pstart| Pstop |
    --------------------------------------------------------------------------------
    | SELECT STATEMENT          |          |     3 |  312 |    341 |       |       |
    |  SORT UNIQUE              |          |     3 |  312 |    342 |       |       |
    |   UNION-ALL               |          |       |      |        |       |       |
    |    CONCATENATION          |          |       |      |        |       |       |
    |     FILTER                |          |       |      |        |       |       |
    |      NESTED LOOPS         |          |     1 |  100 |     12 |       |       |
    |       NESTED LOOPS        |          |     1 |   94 |     11 |       |       |
    |        NESTED LOOPS       |          |     1 |   77 |     10 |       |       |
    |         NESTED LOOPS      |          |     1 |   52 |      8 |       |       |
    |          TABLE ACCESS BY I|USER_DELI |     2 |   58 |      4 |       |       |
    |           INDEX RANGE SCAN|IE1_USER_ |     2 |      |      3 |       |       |
    |          TABLE ACCESS BY I|USER_DELI |     1M|   26M|      2 |       |       |
    |           INDEX UNIQUE SCA|IDX_PK_IN |     1M|      |      1 |       |       |
    |         TABLE ACCESS BY IN|APPUSER   |   863K|   20M|      2 |       |       |
    |          INDEX UNIQUE SCAN|PK_APPUSE |   863K|      |      1 |       |       |
    |        TABLE ACCESS BY IND|SITE_DELI |     3K|   58K|      1 |       |       |
    |         INDEX UNIQUE SCAN |PK_NEW_SI |     3K|      |        |       |       |
    |       TABLE ACCESS BY INDE|SITE_T    |    64K|  375K|      1 |       |       |
    |        INDEX UNIQUE SCAN  |PK_SITE_T |    64K|      |        |       |       |
    |      TABLE ACCESS BY INDEX|USER_DELI |     1 |   27 |      6 |       |       |
    |       INDEX RANGE SCAN    |IE1_USER_ |     1 |      |      3 |       |       |
    |     FILTER                |          |       |      |        |       |       |
    |      NESTED LOOPS         |          |     1 |  100 |     12 |       |       |
    |       NESTED LOOPS        |          |     1 |   94 |     11 |       |       |
    |        NESTED LOOPS       |          |     1 |   77 |     10 |       |       |
    |         NESTED LOOPS      |          |     1 |   52 |      8 |       |       |
    |          TABLE ACCESS BY I|USER_DELI |     2 |   58 |      4 |       |       |
    |           INDEX RANGE SCAN|IE1_USER_ |     2 |      |      3 |       |       |
    |          TABLE ACCESS BY I|USER_DELI |     1M|   26M|      2 |       |       |
    |           INDEX UNIQUE SCA|IDX_PK_IN |     1M|      |      1 |       |       |
    |         TABLE ACCESS BY IN|APPUSER   |   863K|   20M|      2 |       |       |
    |          INDEX UNIQUE SCAN|PK_APPUSE |   863K|      |      1 |       |       |
    |        TABLE ACCESS BY IND|SITE_DELI |     3K|   58K|      1 |       |       |
    |         INDEX UNIQUE SCAN |PK_NEW_SI |     3K|      |        |       |       |
    |       TABLE ACCESS BY INDE|SITE_T    |    64K|  375K|      1 |       |       |
    |        INDEX UNIQUE SCAN  |PK_SITE_T |    64K|      |        |       |       |
    |    NESTED LOOPS           |          |     1 |  112 |    314 |       |       |
    |     NESTED LOOPS          |          |     1 |  106 |    313 |       |       |
    |      NESTED LOOPS         |          |     1 |   89 |    312 |       |       |
    |       NESTED LOOPS        |          |     1 |   64 |    310 |       |       |
    |        NESTED LOOPS       |          |     1 |   41 |    306 |       |       |
    |         VIEW              |VW_NSO_1  |     1 |   22 |    302 |       |       |
    |          SORT GROUP BY    |          |     1 |   35 |    302 |       |       |
    |           NESTED LOOPS    |          |     1 |   35 |    299 |       |       |
    |            TABLE ACCESS FU|APPUSER_L |     1 |   16 |     93 |       |       |
    |            TABLE ACCESS FU|USER_DELI |    73K|    1M|    206 |       |       |
    |         TABLE ACCESS BY IN|USER_DELI |   429K|    7M|      4 |       |       |
    |          INDEX RANGE SCAN |IE1_USER_ |   429K|      |      3 |       |       |
    |        TABLE ACCESS BY IND|USER_DELI |     1M|   26M|      4 |       |       |
    |         INDEX RANGE SCAN  |IDX_PK_IN |     1M|      |      3 |       |       |
    |       TABLE ACCESS BY INDE|APPUSER   |    43K|    1M|      2 |       |       |
    |        INDEX UNIQUE SCAN  |PK_APPUSE |    43K|      |      1 |       |       |
    |         NESTED LOOPS      |          |     1 |   31 |      7 |       |       |
    |          TABLE ACCESS BY I|USER_DELI |     1 |   24 |      6 |       |       |
    |           INDEX RANGE SCAN|IE1_USER_ |     1 |      |      3 |       |       |
    |          TABLE ACCESS BY I|SITE_DELI |     3K|   23K|      1 |       |       |
    |           INDEX UNIQUE SCA|PK_NEW_SI |     3K|      |        |       |       |
    |      TABLE ACCESS BY INDEX|SITE_DELI |     3K|   58K|      1 |       |       |
    |       INDEX UNIQUE SCAN   |PK_NEW_SI |     3K|      |        |       |       |
    |     TABLE ACCESS BY INDEX |SITE_T    |    64K|  375K|      1 |       |       |
    |      INDEX UNIQUE SCAN    |PK_SITE_T |    64K|      |        |       |       |
    --------------------------------------------------------------------------------
    All the locks of CBC point to the APPUSER_LOG and USER_DELIVERY_LOG tables.
    Could someone help me please in the setting of this query, I need to avoid latch and scattered read... .as application knows huge slow...

    -Yasser

    YasserRACDBA wrote:

    Oracle version: 8.1.6.0.0
    The optimizer mode is RULE

    We found all sessions waiting performing this query below:

    (SELECT /*+ORDERED*/
    

    Even if you run based on rules in general, this query will run based on costs due to the indicator.
    Do you have statistics in place to support the OBC?

    | VIEW |VW_NSO_1 | 1 | 22 | 302 | | |
    | SORT GROUP BY | | 1 | 35 | 302 | | |
    | NESTED LOOPS | | 1 | 35 | 299 | | |
    | TABLE ACCESS FU|APPUSER_L | 1 | 16 | 93 | | |
    | TABLE ACCESS FU|USER_DELI | 73K| 1M| 206 | | |

    This is typical of an unnested "IN" subquery - it looks like the optimiser has unnested your double-level IN subquery finding the maximum action date for a user who has done something in the last minute into a massive group and aggregate (so we've got unnesting and complex view merging all in one - I don't think I've seen that in 8i before).

    Your db file scattered reads are probably extreme because (a) the USER_DELIxxxx table is big, and (b) the number of rows you are getting from the APPUSER_Lxxx table is more than the one that Oracle expects. You may find that collecting stats on APPUSER_Lxxx addresses this issue

    I can't see any reason why the appuser_log table should be subject to cache buffers chains latch problems - if the plan is true than the only thing it suffers is one full scan. However, given the "one row" estimate that comes out of the VW_NOS_1 line, the optimizer is free to do all sorts of silly things as it works through the chain of nested loops, and if the number of rows from the driver is much more than one then the indexed activity against USER_DELIxxx could be huge.

    For example:

    |         TABLE ACCESS BY IN|USER_DELI |   429K|    7M|      4 |       |       |
    |          INDEX RANGE SCAN |IE1_USER_ |   429K|      |      3 |       |       |
    

    Is the next step in this nested loop (and similar things happen more down and in the previous sections of the plan) suggesting that a systematic index scan rnage will pick up thousands of lines - which, even if only about right, could mean a huge number of buffer visits to the table. ... the numbers don't make real sense, either by the way, but once again, it is probably due to the lack of appropriate statistics.

    Concerning
    Jonathan Lewis
    http://jonathanlewis.WordPress.com
    http://www.jlcomp.demon.co.UK

    "Science is more than a body of knowledge; It's a way of thinking. "
    Carl Sagan

  • Omega CN8202 temperature control Labview (Serial Port, RS-232 Communication) Question

    I'm a fidling perfect starting with Labview, as I just started with it today, so sorry if these questions are obvious.

    I will work with an Omega CN8202 thermostat. As indicated in the title of the topic, one used uses serial communication and RS-232 Protocol.  However, the LabVIEW version is 2007, so I don't think that all the drivers here would work

    Only, I want to be able to set a temperature on the CN8202 of a computer and no need to do something about the ramp or soak time. How could I change the drivers so that they would work in the 2007 version of LabVIEW?

    There is no such thing as LabVIEW 2007. The current version is displayed when you launch or open the About window. If it is really longer than 8.0, then the version conversion Commission. Link is at the top of the page on the set of LabVIEW.

  • How do I run Labview applications into a tablet with android os

    How to run the Labview application in the tablet with android operating system?

    Can we use Labview mobile module or use the google game for labVIEW data dashboard? How to install in the PC?

    If you had looked at the dashboard of data and some other links on Android, you will see that you can not run a LabVIEW on Android application. Nor can use you a serial port. With data dashboard, you have a pc that runs LabVIEW and publishes to shared network variables. The Android data dashboard allows you to see these variables.

  • Control the Structure of the event with text file

    I'm new relativaly in LabVIEW (experience only about 2 weeks). I am currently control a stepper motor using a structure of the event. Similar to the sample code given by LIFA, I entered my settings how the engine not move away, then press a button on the windows before, and it works this way. I also have other equipment that works as well in LabVIEW, as a transnational step; all components operate individually.

    Now, I'm trying to make the more automated system and to ensure that all the different equipment work in the same code. So, I tried to implement a structure of the event using a text as an input file to try to control events. The text file has a table 1 d of numbers going down vertically (only the line numbers change). So, I used a table of index function to take the numbers one by one, use a loop (while loop in this example) to go to the bottom of the column of numbers. However, the event not register the change, even if the indicator shows the value is changing.

    Attached, it's my test code and the text file that I use to try to control the structure of the event. Please let me know what I am doing wrong. Thank you.

    Oh, now I understand what you tried to say. I'm using a loop and a case structure to activate different events with the entries in the table. I thought case structures and event were the same, but you taught me the event structures are used just for the façade stuff. Thank you all!

  • Can LabVIEW Embedded for ARM works with any Board or just with a few predefined?

    Hello

    Can LabVIEW Embedded for ARM works with any evaluation committee or just with a few predefined (MCB2300, MCB2400 and EK-LM3S8962)? I ask this question because even if I chose "another processor" in the definition of the new project only 3 options are the corresponding arm of Phillips and LuminaryMicro.

    Thanks in advance,

    Howdy,

    LabVIEW for ARM supports the feature of targets for tier 1 (the mentioned Evaluation Committee) following this schema:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/7066

    But you can transfer to other weapons if you follow this porting guide:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/6994

    The uProcesser SDK is intended for the port of other targets of DEPENDENCE (32-bit, of course) and technically it covers ARM as well. Alternatively, there are the LabVIEW C Code Generator: http://sine.ni.com/nips/cds/view/p/lang/en/nid/209015

  • How to manage the structure of the event with two loops

    I have a question about the structure of the user event with 2 buttons?

    key 1: START LOGGING DATA

    key 2: STOP LOGGING DATA

    How do I control my

    structure of the event so that it will work? because now that the loop is save data... I can't stop the loop, when I clicked on buttons.

    super_saiyans wrote:

    the problem with moving it is that I don't have control of the DATA RECORD STARTING?

    Of course, you do.  When you get your press conference button, you say your state machine to move to the State of logging.  You must also make sure that you return to visit the State to wait for the event to check out the events of the stop button.

  • Closure of a state machine in queue event with several parallel loops

    I am trying to find the best way to stop a program that consists of an architecture of State machine in line waiting for event with several parallel loops. Can anyone recommend the best way to achieve this in my attached VI? (To browse the forum, this seems to be a frequently asked question, but I have not found a solution that works for me.)

    I look forward to any comments on my as well code, if someone is willing to offer it.

    My program needs:

    If the user press the 'Stop' button, the program should prompt the user with "are you sure you want to stop the program?" and then return to a State of rest or move forward to stop the program. In addition if there is an error, the program should prompt the user to ' clear the error and continue, or stop the program. Then back to the idle state or move forward to stop the program.

    Architectural details:

    The program consists of 3 parallel loops: (1) a loop of event management that places different States of a queue of the State, (2) a State Machine that enters the State that is removed from the queue of the State and (3) a loop error/Shutdown, which deals with errors in the error queue management.

    During normal shutdown, where running handling loop in the case of event 'Program.Shutdown' and 'Shutdown' and the 'Idle' States are added to the queue of the State. In the state machine, the State of 'Stop' is invoked. Special "5000" error code is added to the queue of the error. In the loop of error handling and stopping, "5000" error triggered a prompt that asks the user if they want to stop the program. If the user chooses not to stop, a notifier StopNotif is sent to the State of 'Stop' and 'Program.Shutdown' event case with notification 'Go '. If the user decides to stop, the Notifier sends the notification "Stop". Loop and event management State Machine ends when they receive the notification "Stop".

    In case of error, the program behaves in the same way: If the user chooses to clear the error and continue, the program returns to the status "pending".

    HOWEVER - if the user chooses to stop the program, the program crashes. The author of the notification that is sent to stop the loop of events and State Machine management cannot be read because event Program.Shutdown and the stop State (which contain the function "Waiting to notify") are not active.

    I was able to activate the stop State by Queuing in the loop of error/Shutdown management. But I don't know how to activate the "Program.Shutdown" event by program and thus access the function "Waiting to notify" inside.

    I tried to put the function "Waiting to notify" outside the structure of the event, so the event-handling loop never ends. Placing timeouts on the "wait for declaring" and the structure of the event makes the programme of work, but I want to avoid using timeouts because I don't want to turn my event program into a program of polling stations. I would also avoid using variables or nodes property to stop loops, because that requires the creation of a control/indicator for something that the user does not need to interact with.

    Thank you!

    First of all, close the notifier outside loops with your queues.  Second, you must use a user event to send the message to the event structure loop so that it stop in the case of the stop on an error.

  • How to use a structure of the event with a state machine


    I don't know exactly what you're asking, but it sounds as if you want a bunch of script tests and if the user says stop, to immediately stop the current test and abandon others?  I'll assume you know how to clear the table so that it will not abandon the others, so I guess that you have wrong to abandon the current test?  If it is indeed the case, the problem is that you are not able to spread the message of the VI FP main which is the GUI for the sub vi which is the test where the test may or not have a GUI (FP visible) of its own.  Threading is the first thing to come to mind, but it will be may not need the use of events.

    You can do this by passing a refnum of the stop button to the Subvi, where you can then add to wait to the structure of business event.

    I have attached 2 screws, mainvi.vi which is just a loop displays the number * 2 (number of seconds since the race) to be called subvi.vi and then check to see if the button is pressed.  mainvi.VI is in no way a state engine, it's just a simple loop for demonstration purposes.  subvi.VI just waits 2 seconds and leaves, this is a better engine State structured with an init State to start a case of survey to wait events and an exit status to clean.  You can change everything as you wish so that he can do what you want.  You will notice that even if subvi.vi is running, it will automatically end when you press the stop button.

    I hope this helps.

    A

  • Wait events "direct path write" and "direct path read".

    Hello

    We have a query that takes more than 2 minutes. It's a 9.2.0.7 database. We took the request trace/tkprof and identified there so manay 'direct entry path' and 'direct path read' wait for events in the trace file.

    WAITING #3: nam = "Write" direct path ela = 5 201 p1 = p2 = p3 70710 = 15
    WAITING #3: nam = "direct path read" ela = 170 201 p1 = p2 = 71719 p3 = 15

    In the light of the foregoing, "p1 = 201" is a the file_id, but we could not find any data file, the temporary file, the control file with this id # 201.
    Can you please let us know what "p1 = 201" here, how to identify the file that is causing the problem.

    Thank you
    Sravan

    Whatever it is:

    show parameter db_files
    

    back? I think, is that it returns 200.

    Read the file live and direct file writing events are reads and writes of tablespace TEMP. Wait events, folder # is reported as db_files + id of a temporary file. So, 201 means temp #1 file.

    Now, as to your real performance issue.

    Without seeing the SQL and the corresponding implementation plan, it is impossible to be sure. However, the most frequent causes of temporary entries are the operations of sorting and group by operations.

    If you decide to display your plan and SQL execution, please be sure to make it readable by formatting it. Information on how to do this can be found here.

    Hope that helps,

    -Mark

    Published by: mbobak on May 1st, 2011 01:50

  • RMAN stuck on wait event "CPI RDBMS response."

    Hi all

    DB: 10.2.0.3 EA
    Operating system: Solaris 10

    Below is a summary of the issue I faced, followed by details.

    Summary:

    I'm doing a "Save as copy" operation to RMAN, but it is retained by the db writer process. The event of waiting for writer rman process and db is "RDBMS ipc reply. The db writer process is in turn blocked by the process of "RBAL. The RBAL process seems to be waiting on the same process of writer db with wait events ' enq: FP - global fob contention "." Any ideas what could be causing this and what can I do to solve this problem?

    Details:

    I run the following operation in RMAN:
    RMAN> backup as copy database format '+DEV1';
    However, the process is stuck on the event of waiting "RDBMS ipc reply.
      SID OSUSER               PROGRAM                        LAST_CALL_ET EVENT
    ----- -------------------- ------------------------------ ------------ ------------------------------
      664 xxxxxx             rman@xxxxxx (TNS V1-V3)              4509 rdbms ipc reply
    Information from v$ session_wait are:
          SEQ#   SID EVENT                                  P1         P2 STATE                WAIT_TIME SECONDS_IN_WAIT
    ---------- ----- ------------------------------ ---------- ---------- ------------------- ---------- ---------------
          2848   664 rdbms ipc reply                         2         24 WAITING                      0       3
    After a bit of searching on Google, I discovered that the P1 parameter indicates the background is process causing the wait, so I checked that addresses:
    11:51:50 xxxx>SELECT NAME FROM V$BGPROCESS WHERE PADDR =
    11:54:40   2     (SELECT ADDR FROM V$PROCESS WHERE PID = 2);
    
    NAME
    ------------------------------
    DBW0
    So is East "DBW0" db writer process which is held upward. So I checked the wait for the DBW0 process event (I discovered the sid - it was 167)
          SEQ#   SID EVENT                                  P1         P2 STATE                WAIT_TIME SECONDS_IN_WAIT
    ---------- ----- ------------------------------ ---------- ---------- ------------------- ---------- ---------------
         30315   167 rdbms ipc reply                        55 2147423061 WAITING                      0       0
    So 'RDBMS ipc reply' also expects the process of «DBW0» So I find the process of pid = 55.
    11:59:48 xxxx>SELECT NAME FROM V$BGPROCESS WHERE PADDR =
    12:04:39   2     (SELECT ADDR FROM V$PROCESS WHERE PID = 55);
    
    NAME
    ------------------------------
    RBAL
    It turns out be RBAL. The sid of process RBAL is 321. So I find what he expects:
    12:04:41 xxxx>select event, blocking_session blocker from v$session where sid =321;
    
    EVENT                             BLOCKER
    ------------------------------ ----------
    enq: FP - global fob                  167
    contention
    
    12:06:14 xxxx>@sesswait
    Enter value for sid: 321
    
          SEQ#   SID EVENT                                  P1         P2 STATE                WAIT_TIME SECONDS_IN_WAIT
    ---------- ----- ------------------------------ ---------- ---------- ------------------- ---------- ---------------
            12   321 enq: FP - global fob           1179648006          0 WAITING                      0           61470
                     contention
    The blocker for RBAL 167 session, which is "DBW0. I couldn't find any information on this wait event ' enq: FP - global fob contention "." I'm not able to make further progress on this matter, so any help will be much appreciated.

    Published by: joshic on June 30, 2010 04:25

    joshic wrote:
    Hi all
    DB: 10.2.0.3 EA
    Operating system: Solaris 10
    The blocker for RBAL 167 session, which is "DBW0. I couldn't find any information on this wait event ' enq: FP - global fob contention "." I'm not able to make further progress on this matter, so any help will be much appreciated.

    Looks like Bug 7334426: BACKUP HANG ON A HANG CONDITION BETWEEN DBW AND RBAL

  • I have an old Mac Mini with a DVI Port that came with a VGA DVI-adapter.  Tonight, my monitor went down.  Brand new monitor works with that?  Can I use an adapter?  If yes should which adapter I?

    I have an old Mac Mini with a DVI Port that came with a VGA DVI-adapter.  Tonight, my monitor went down.  Brand new monitor works with that? Any recommendations? Can I use an adapter?  If yes should which adapter I?

    You can use any DVI monitor DVI port directly or have any VGA monitor with the power that you adapter. A HDMI monitor might work with an adapter DVI to HDMI in a pinch, but HDMI tends to be more fickle.

  • How to get AC 97 Front Panel Audio and Microphone ports to work with Windows 8

    I have a m7277c HP Media Center that uses the motherboard Asus P5LP-(Lithium-UL8E) and has an Audio Jack and Microphone AC 97 spec ports on the front panel. I tried to install the Codec AC 97 drivers for Windows 7 and they do not work for Windows 8. The 'High Definition Audio Codec"Windows 8 drivers only work for the Ports on the rear panel, not the Ports on the front panel.

    How can I get AC 97 Front Panel Audio and Microphone ports to work with Windows 8?

    Hello

    Your model has not been tested for the use of Windows 8.

    For this reason, HP cannot provide instructions to upgrade or Windows 8 pilots.

    Therefore, it will be very difficult to provide a solution.

    Thank you

  • Which is better: Labview for everyone or learning with Labview?

    I am a novice user of Labview, but I went through essentially through the 6 hours on Web site tutorial for NOR and that I'm currently going through the massive list of examples included in Labview. I heard the two Labview for everyone and learning with Labview recommended texts. I'd rather pay one, unless I really should bring both eventually. Thoughts and opinions by comparing the two?

    The two books are very good.  If your just starting, go to Amazon, buy a copy used learning with LabView 8 or 9.  I got mine for $18 shipped.  You can download all the vi.  Can also buy LabView for everyone $61.  LabView for everyone covers almost everything on LabView and brings you to some more advanced things, but learning with LabView has been better for basic stuff.

    Jerry

  • can I create a DLL file for labview that has DLL library with inside?

    Hello everyone,

    I am developing an application for the cards PCI devicenet in labview (beginner to labview) environment.  Is there a DLL file for the PCI card from the provider. But it's too complicated for a beginner to call each function in the DLL of labview. Therefore, I'm trying to re - use a VC ++ program (working properly) that calls some sellers DLL library functions.    To do this, I created the DLL file which includes all headers and libraries the provider DLL, as indicated in the attached figure. But I couln can't see the effect on the device. is it possible to create a DLL file for labview that has DLL library with inside? If this is not the case, how can I implement the program shown in figure?

    I would like to wish a huge as to advance.

    It is not something I have a lot of experience in so I don't know all the details of the restrictions or requirements etc - but it is certainly possible to create wrappers for the dll and then use them in LabVIEW - this is sometimes necessary to convert some native types/data structures in C/C++ into something that you can switch to your other DLL LabVIEW.

    There is a link here: http://digital.ni.com/public.nsf/allkb/06ECDC689DDA0F3D862574440074CD95

Maybe you are looking for