In Range Express VI

Hi ALL,
Need your advice. I attach my test vi.
For such situation, when the numbers keep changing, how do I ensure the beep is always activated.
I have use In Range but  this does not guarantee the beep.
Is there a better way?
Solved!
Go to Solution.
Attachments:
Test.vi ‏108 KB

Hi Osman,
well, at the moment you check for a range of 1199...1200 but keep adding numbers of 0...10. So what's the probability to hit that check range with such numbers?
You could:
- use a bigger range of difference 10 between limits
- use standard functions instead of an express vi (it hides all the important information from the programmer)
- there are comparison functions in their own palette including "in range and coerce"
- use a small timer in your loop to prevent cpu hogging
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Better Range -  Express or Extreme?

    Hi
    I'm looking to add another airport to my house, so I get better range out in the garden (my office is cool!) but I don't know if theres a reason to go for an Extreme or get another Express?
    I don't need music streaming, I have a modem and it doesn't need to be portable; but a bit of extra "power" would be good - is there a difference in the range between Express or Extreme?

    Hello velo fellow
    I just had an airport express and an airport extreme (with Dr. Bott omni antenna attached) next to each other in the same room on different channels, so you would think I could tell you.
    What I found was that the signal strength from both fluctuated radically (as measured in iStumbler), for reasons that I could not discern. I have asked in a few threads what the reasons for this fluctuations could be, but haven't received any answers that helped.
    Wish I could help you, but there is a voodoo aspect to this that I don't really understand yet.
    Dual G5 + 15" MBP 2GHz   Mac OS X (10.4.6)  

  • Date Range expression

    Hello,
    I have created two parameters ( named as Date1 and Date2), my main aim is to find out records which are inserted in between, EX: 10/19/2008 and 12/9/2009. what is the expression  and i have write my expression.
    Can you please provide suitable solution for my question.
    Thank you.
    Regards
    RP Reddy

    I am trying to do the exact same as you listed in SSRS,
    WHERE Date between @Date1 and @Date2, but it keeps throwing the error: ORA-01858: non-numeric character found where a numeric was expected. 
    Would you know how I should code this differently?
    Thank you,
    In oracle try like below
    trans_date >= to_date(@date1)
    and
    trans_date <= to_date(@date2)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Regular Expression for finding Latin characters

    i have a table "t" with values in column "text" like
    "Āniki"
    "Ąvatar"
    How can I find them using a regular expression?
    The real goal is to replace them with their ASCII equivalent.
    Ā = A
    Č = C
    Ĥ = H
    etc....

    You can set any range in the ascii table by using the expression 'X-Y' in the pattern. It works for symbols too, but you need to find out whether the desired characters you're interested actually form a contiguous range.
    You can run the below query to check the ascii table:
    SELECT LEVEL ascii_val, chr(LEVEL) chr_column FROM dual CONNECT BY LEVEL < 256;Then you can pick and choose your ranges and verify them as in the following query:
    WITH t AS
    (SELECT LEVEL ascii_val, chr(LEVEL) chr_column FROM dual CONNECT BY LEVEL < 256)
    SELECT ascii_val, chr_column FROM t WHERE regexp_like(chr_column, '[^A-Za-z0-9!-/]');In the example above I chose a range from the ascii 33 ('!') to 47 ('/'), described by the portion '!-/' in the pattern.
    To add another range just concatenate it after the slash symbol.
    Additionally, for example, if you want to add a range including the symbols:
    ASCII CHR
    58    :
    59    ;
    60    <
    61    =
    62    >
    63    ?You can set it up like this instead if you feel it's more easily readable:
    WITH t AS
    (SELECT LEVEL ascii_val, chr(LEVEL) chr_column FROM dual CONNECT BY LEVEL < 256)
    SELECT ascii_val, chr_column
      FROM t
    WHERE regexp_like(chr_column, '[^A-Za-z0-9' ||
                                   chr(33) || '-' || chr(47) ||
                                   chr(58) || '-' || chr(63) ||
                                   ']');You need to test this though, as the docs state the behaviour may vary depending on your NLS_SORT settings, by using linguistic ranges rather than byte values. For my settings it seems to work, not sure about everywhere else.
    Note: In the POSIX standard, a range includes all collation elements between the start and end of the range in the linguistic definition of the current locale. Thus, ranges are linguistic rather than byte values ranges; the semantics of the range expression are independent of character set. In Oracle Database, the linguistic range is determined by the NLS_SORT initialization parameter.http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_regexp.htm
    and
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch5lingsort.htm
    You can check your NLS_SORT by querying the userenv:
    SQL> select sys_context('USERENV', 'NLS_SORT') from dual;
    SYS_CONTEXT('USERENV','NLS_SOR
    WEST_EUROPEAN
    SQL> If it returns BINARY you need not worry about it.
    Otherwise you can check the particular sorting your NLS_SORT will use here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/applocaledata.htm#NLSPG593
    Usually symbols are not affected by it as you can see there (my case too for the "west_european" value), but other elements in a string can be affected.
    Regards,
    Sitja.
    Edited by: fsitja on Mar 18, 2010 1:51 PM

  • Is javascript capable of exporting specific artboards to a jpg?

    I can export a single artboard to a jpg using the GUI but "artboardRange" doesn't do anything when exporting to a jpg.
    I can use the artboardRange in the pdf save options and that works fine but, while the artboard selection is there in the jpg export dialog in the windows gui I can't get this to work in javascript.
    Am I going to have to copy my content to a separate document containing only what I want and then export from that?
    I tried changing the visibility of objects I didn't want on the jpg but that just leaves a blank area in the resulting jpg even with "artboardClipping" = true. Actually, I don't know that artboardclipping even does anything from what I've tried.
    Any suggestions or does this just not work in JavaScript with CS4?
    Edit:
    If I export to a jpg and use the artboards then a separate jpg is made for each artboard included with a prefix of the artboard # in the name, i.e. filename-01.jpg and filename-02.jpg. It'd be great if I could script this correctly.

    Yeah, these are only document methods in Illustrator.
    Actually, saveAs using PDFSaveOptions doesn't work right either. If I specify an artboard with artboardRange is doesn't do anything different; it just puts each artboard on a separate page in a pdf. However, if I set artboardRange to an empty string it actually changes the name of the current document to a .pdf and THEN I can resave it by adding the artboardRange during the second try which seems a bit odd.
    At this point I don't believe the "Use Artboards" and the "Range" options which are available in the GUI function correctly in Javascript for either saveAs or exportFile which is annoying as I need this to work.
    Also, the PDFSaveOptions.artboardRange string is actually validated and must be either blank or a valid range expression. If I have 2 artboards and I specify '3' it'll fail but if I specify '1' or '2' it still saves all of the artboards. The saveMultipleArtboards option does nothing.

  • Airport Extreme signal levels

    I have a MAcBook Pro, and I have recently installed the Airport Extreme and I have created a network, but I have the same wi fi range than which I had with the Airport Express. What am I doing wrong?
    Thank you

    I must be doing something, wrong because the "n", should have at least 1/3 more of the coverage, and I am getting the same if not less coverage with my airport extreme than with my airport express(i tried them both seprately under the same conditions). I have set a network, and extended the range (express + extreme). I have installed the cd that comes with the extreme. How can I now if the "N" is working??
    Thank you very much

  • Error while using dynamic pointers in STD_LOGIC_VECTORs and for sentences

    Hi Forum,
    I am having a few problems in the Synthesis cause I am using dynamic pointers in STD_LOGIC_VECTORs and for sentences.
    Here I show two examples: 
    1)
    indx := array_of_indexes(repeat_deep);
    aux_data(repeat_deep)(BUF_SIZE - indx*NUM_BITS downto BUF_SIZE-3 - indx*NUM_BITS) <= data_in_p;
    Here, my problem is that indx is a dynamic pointer so it works in the simulation but no in the Synthesis.
    aux_data is an array of STD_LOGIC_VECTORs
    2)
    for i_for in 0 to repeat_deep -1 loop
        indx := array_of_indexes(i_for);
        aux_data(i_for)(BUF_SIZE - indx*NUM_BITS downto BUF_SIZE-3 - indx*NUM_BITS) <= lasts_power(i_for);
        array_of_indexes(i_for) <= array_of_indexes(i_for) + 1;
    end loop;
    Here I have both problems, the 'repeat_deep' in the 'for' is dynimic, and the 'indx' in the STD_LOGIC_VECTORs.
    What can I do to solve the problem?
    Thanks!!
    Daniel

    "I am having a few problems in the Synthesis cause I am using dynamic pointers"
    If you're using Vivado, dynamic indexing is a known issue with Vivado Synthesis:
       Vivado Synthesis - Does Vivado Synthesis support non-constant (dynamic) range expression?
       http://www.xilinx.com/support/answers/52302.html
    -Brian

  • Any general performance implications of a varchar vs a numeric field?

    I received an email that said, in effect, a client made their customer ID a varchar field, and this is causing a performance issue (yes, I know I need to dig deeper and find out why they think that is the cause but it's all I have for now). So my question is - generally speaking, are there performance concerns associated with using a varchar field vs numeric? I had never heard that before, and I can't seem to find any evidence online that it would, but figured I'd run it by the experts here.
    Thanks all
    Mike

    The first thing that comes to mind is range expressions, since it will tend to look to the optimizer as though there are more possible values in any given range:
    CREATE TABLE wr_test NOLOGGING
    AS
    SELECT ROWNUM numcol, CAST(ROWNUM AS VARCHAR2(10)) stringcol
    FROM   dual CONNECT BY ROWNUM < 1e6;
    CREATE INDEX wr_test_numcol_ix ON wr_test(numcol);
    CREATE INDEX wr_test_stringcol_ix ON wr_test(stringcol);
    BEGIN
           DBMS_STATS.GATHER_TABLE_STATS(USER,'WR_TEST',method_opt => 'for all columns size auto');
    END;
    SQL> select * from wr_test where numcol between 1200 and 1235
      2
    SQL> @xplan
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Compatibility is set to 11.1.0.0.0
    Plan hash value: 2758090675
    | Id  | Operation                   | Name              | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |                   |    37 |   407 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| WR_TEST           |    37 |   407 |     4   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN          | WR_TEST_NUMCOL_IX |    37 |       |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("NUMCOL">=1200 AND "NUMCOL"<=1235)
    SQL> select * from wr_test where stringcol between '1200' and '1235'
      2
    SQL>
    SQL> @xplan
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Compatibility is set to 11.1.0.0.0
    Plan hash value: 1728591971
    | Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |         |  4544 | 49984 |   658   (2)| 00:00:08 |
    |*  1 |  TABLE ACCESS FULL| WR_TEST |  4544 | 49984 |   658   (2)| 00:00:08 |
    Predicate Information (identified by operation id):
       1 - filter("STRINGCOL"<='1235' AND "STRINGCOL">='1200')

  • Has anyone Worked with the Essbase Data Mining Module?

    I'd appreicate if you could post a message if you have worked with the Predictor and Target Range Expressions, and data mining models in general? I am looking for some insights into what Essbase Data Mining can do...<BR><BR>Thanks.<BR><BR>- Sherwin

    Yeah, unfortunately I am coming to the same conclusion.
    This is the entire response I received for "instructions"
    There are two projects: "fire_text_project" and "fire_text_project_plugin". The first once does not require any plugin because one particle effect is pre-rendred. If you have trapcode particular then you can use the second project and modify it.
    Finally you can create a realistic fire text in after effects!
    It took me a week to do the 3d fire simulation and render out all the 26 letters on fire. This is a very realistic fire thats simulated using advanced 3d software. The video is 621 x 720 px and it is 7 seconds long. All the letters has the color video and the black and white (alpha) video. You can use the alpha matte to create a tranpsarent background for the colored video. That's is how it is done in the two example comps included in the project. You will have to understand that the letters are video so it is not as easy as typing the letters using text tool to edit the text. Open the "1st text  Example comp 1" comp and it has marker that explains in detail on how to edit it.
    The two included comps are "Example_comp 1" and "Example_comp 2". These are great examples of what you can do with fire text but the possiblity is endless.You can create many interesting comps with these text on fire. Just to let you know the text that is rendered in 3d app is Arial Black.
    Think I am going to have no choice but to simply cancel the sale and look for something else.
    Thanks for all the input.
    Mike

  • Problem with grep

    Broken:
    boogie:~> pacman -Q | grep grep
    grep 2.5.3-2
    boogie:~> echo j | grep "[A-Z]"
    j
    boogie:~>
    Not broken:
    froggie:~> pacman -Q | grep grep
    grep 2.5.1a-2
    froggie:~> echo j | grep "[A-Z]"
    froggie:~>

    MrWeatherbee wrote:
    shining wrote:It's because of LC_ALL, it wasn't set here, and it worked fine.
    I set it and I got the bug.
    I don't think it's a bug based on this documentation:
    Within a bracket expression, a range expression consists of two characters separated by a hyphen. It matches any single character that sorts between the two characters, inclusive, using the locale's collating sequence and character set. For example, in the default C locale, `[a-d]' is equivalent to `[abcd]'. Many locales sort characters in dictionary order, and in these locales `[a-d]' is typically not equivalent to `[abcd]'; it might be equivalent to `[aBbCcDd]', for example. To obtain the traditional interpretation of bracket expressions, you can use the C locale by setting the LC_ALL environment variable to the value `C'.
    LC_COLLATE, I believe, is the really critical value. So, for example, in Dolby's case, unsetting LC_ALL by itself won't do any good because he has LC_COLLATE set to 'en_US.utf8'. LC_COLLATE needs to be set to LC_COLLATE=C, for example, to get the behavior that everyone is expecting from the posted 'grep' statement. Of course, setting LC_ALL=C would do the trick as well, but it might not really be what you want.
    Edit:
    Forgot to post link to above quote:
    http://www.gnu.org/software/grep/doc/grep_8.html#IDX178
    Despite this, I think there is a bug in grep:
    $ pacman -Q grep
    grep 2.5.3-2
    $ echo J | grep --color=always [A-Z]
    J
    $ echo j | grep --color=always [A-Z]
    j
    Matched string is supposed to be in color (red in particular) when grep prints matched lines. The printed uppercase J is red as it should be but printed lowercase j is normal terminal color.

  • Running Histogram

    I'd like to create 4 separate running histograms selectable by tabs.  The part I'm struggling with is how I should have the histogram update...
    The machine that I am monitoring does not have consistent time cycles.  The time cycles range from 21 seconds to 45 seconds, and if an operator takes a break, the time cycle can be up to 35 minutes.  Machine downtime can be hours at a time. 
    So, I can't specify a time interval for which the histogram will update.  Is there a way that I can track a variable and update the histogram when this certain variable changes from 0 to 1? 

    Fixes: 1. Get rid of the inner While loop. (The Point by Point Vis ahve an inner loop with a shift register to accumulate values).
    I did that, and the histogram reset after plotting a single value.  I tried copying the pt by pt histogram VI into that, and yet it still does not accumulate values.
    2. Use the Histogram Graph output of the Histogrm VI. It does exactly the same thing internally as you do to connect to the graph. Open it up and take a look.
    Will do
    3. Use equality testing (Robot Postion 11) in real number with great caution. Due to finite precision representation in the computer, the number 1 could be internally represented as 0.9999999982 which is NOT = 1. Use the In Range and Coerce with suitable tolerances.
    In this case, it is True or False coming in from the PLC.  If I place a numeric indicator on it with 0.00000001 accuracy, it is still 1 or 0.  That's why I use it. However, your point is very valid and it was a good reminder, so thank you.
    4. This is personal preference, but I like the In Range and Coerce primitive much better than the In Range express. It uses less diagarm space and the limit values are visible on the diagram rather than being hidden inside the config dialog.
    I agree.
    5. The front panel was huge. Scrolling for 5 minutes to find the other controls does not make a very good user interface. You can put descriptive names on the tabs.
    I know; I did that on purpose so it would focus on the histogram for now.  I would never implement something like that for our operators... 

  • How to set-up new Airport Express to extend range of Airport Extreme

    Purchased a new Airport Express to use it as a range extender on existing home network with an operating Airport Extreme base station. While I've read instructions, I'm unclear whether the Express needs to be connected by ethernet cable for its initial setup, or can I simply plug it and initialize it wirelessly onto the same household network? (I've tried the latter but without success).

    to edex67 and Bob Timmons:
    My objective is to extend the wireless range of the Airport Extreme base station wirelessly - so I do appreciate that the Airport Express would needsto be located haflway between the base station and the "dead zone" area.
    The suggestion of using a Powerline ethernet connection to the Airport Express has merit (especially as I have one available).
    I continue to use OSX 10.6.8 - does this affect my set-up in any way?
    My problem had been - and remains - how to configure the Airport Express in range extend mode - I did click these boxes on both the Extreme base station and the Express, however the Express still has flashing amber lights and error codes - one indicating no internet availability on the Airport Express.

  • How do I use my airport express to extend the wireless range of my NETGEAR 7550?

    I am trying to extend the range of my Netgear 7550 using the airport express.  When trying to set up the airport express it said that I was unable to extend the Netgear.  Any ideas how to make it work?

    You need to configure a roaming network.
    Wi-Fi base stations: Setting up and configuring a roaming network (802.11 a/b/g/n)
    http://support.apple.com/kb/HT4260

  • Do I need a cable connecting my Time Capsule to Airport Express if I want to use the AE to extend my wifi network range?

    I'm a bit confused by conflicting advice given by my local Apple shop and my internet provider. 
    My cable modem is plugged into a Time Capsule which I use to access the net wirelessly almost all over the house.  The one spot the wireless doesn't quite reach is (of course) where I now need my office and iMac to be.
    I thought I could just plug in an Airport Express somewhere in the middle  to extend the network's range but the guy at my local Apple shop said the Airport Express would need to be connected not just to power but to the Time Capsule, via a cable.  That's fiddly and would involve cables running under the floor or along walls and ceilings, not something I can or really want to do.  It's not really practical to try and move the cable connection point either.
    My internet provider suggested a netgear wireless extender and said that would only need to be plugged into power.  The reviews of the netgear product I found comparing it to Airport Express suggest that the Express doesn't need to be connected to anything other than power either to extend a network range (which was what I originally thought).
    So I'm wondering which advice is correct? I've also read that the netgear product isn't all that easy to set up so I'd rather stick with.   Apple if it will do what I want.
    Thanks for any help out there

    I thought I could just plug in an Airport Express somewhere in the middle  to extend the network's range but the guy at my local Apple shop said the Airport Express would need to be connected not just to power but to the Time Capsule, via a cable.
    I'm sure that the guy at the Apple shop means well, but he is not correct. 
    While it would be preferable to connect the Time Capsule and AirPort Express using a wired Ethernet connection, the Express can connect wirelessly and extend the wireless signal the same way....IF...it is located where it can receive a good wireless signal.

  • How do I add an Airport Express to extend the range of my WIFI network with my iMac as a base station?

    Hi people
    I need help to configure a new Airport Express only to extend the range of my WIFI network.
    My ethernet cable from modem is connected directly in my iMac and I am sharing the internet by WIFI inside home very fine.
    Now, I would like connect my devices on my garden on backyard.
    I can't move my iMac from their place and i just want add a Airport Express between the iMac and backyard to extend the range of WIFI.
    But I can't to configure to that. On Airport Utility appear the Airport Express connected directly to internet globe, but don't work.
    So, what can I do? What is wrong?
    Thanks all and best regards.
    Carlos Sgrillo, from Brazil.

    The AirPort cannot do what you ask.
    The Airport needs to connect to a modem, or another router......not to a computer.
    The Express can only extend a wireless signal that has been provided by another Apple router.

Maybe you are looking for