Auto range control & comparison of low numbers

I am trying to create a control function that changes scale each time the knob passes from high to low index or low to high index. This works well except when the number gets to the range 0.001 to .01 then It  sticks. It would appear that the compare does to output true when the inputs are 90.000E-3. acopy of the contol funtion in a stand alone vi is attached
Solved!
Go to Solution.
Attachments:
atorange control.vi ‏20 KB

Your fundamental problem is that you are performing an equality comparison on floats. This is incorrect when dealing with computers. You must, instead, perform an "approximately equal" based on the machine's epsilon value (found in the Numeric palette) as shown below:
Also:
The Stop button should be placed inside the "Value change" event for it so that the button can be read and its value reset.
You do not need to use a reference constant to access the scale control. The event case provides that already as the "CtrlRef" parameter.
Message Edited by smercurio_fc on 11-27-2009 10:37 AM
Attachments:
Example_VI_BD.png ‏2 KB

Similar Messages

  • Flipping a chart so the low numbers are at the top...

    How do I create a chart that shows the low numbers on top? I'm trying to show the rank of items over time, with lower numbers being higher in rank...

    There was a post on a similar subject a while back. I'm searching for it now. The gist of it was you will need a second column that is the negative of your numbers. It had to do with the X axis but you could apply it to the Y axis as well.
    Ahh, here it is:
    http://discussions.apple.com/thread.jspa?messageID=9714737&#9714737
    Message was edited by: Badunit

  • Tethering and Controlling the Shooting Sequence Numbers

    This may be a bit much - but I have to ask.
    I'm just getting started with Aperture, but one of my reasons for switching from Lightroom was the Tethering abilities of Aperture.
    My question is very simple, when shooting tethered where/how can I control the image sequence numbers? The sequence number on my EOS 5D is controlled by the folder it's writing too, and the EOS software lets you specify a starting number- however ...
    Aperture is not using the EOS Utility to do the tethering, or is it?
    Anyway- if someone can tell me how to control my sequence starting point while shooting tethered, that'd be cool --
    thanks-

    When I upload photos to My Photo Steam the sequence of the photos is altered.  So any shots taken in 'burst' mode will not appear in order - usually the middle shots of the burst sequence are moved to either the beginiing or the end of the seqence.  (so, for example, when reviewing a sequence in My Photo Stream - you see a basketball player take a shot before he dribbles towards the basket...)
    I wonder, why you are seeing more than one photo of a burst of photos in the PhotoStream at all. According to the "Photo Stream FAQ" only the final selected photo of a burst will upload to the Photo Stream, see:
    http://support.apple.com/kb/HT4486
    Are all of the photos taken with burst mode or image stabilization on my iPhone 5s saved to My Photo Stream?
    No. Only the final photos that you select when using burst mode, and only the final composite image shot with image stabilization are added to My Photo Stream.

  • Auto-range meter w Scale.MarkerVals[]

    Hi. I am building a simple program but cannot figure it out.
    I have a meter with auto-range that can be adjusted automatically as I adjusted the knob.
    Also I have a colour limits that can be seen on the meter. The reason I used colour limits is because the operator 
    can adjust the knob without eye strains. 
    Here's an attached.
    Note:- Auto range and scale.markervals[] cannot used together otherwise the meter cannot be read.
    Pls save it as version 7 so that I can open it without delay.
    Cheers
    Clement 
    Attachments:
    autorange_markcolours.vi ‏37 KB

    With one property, you're setting scale.maximum and with the other, you're setting what the markers should be. Setting the last marker to 50 is the same as setting the scale.maximum and since they are two different values, you see the dial bouncing around. Instead of wiring a constant to the last marker, wire it to the same point where you calculate the scale max.

  • Cant turn off dynamic range control

    i have a 40ft2u1 and i cannot for the life of me figure out how to turn off the dynamic range control ..it shows it audio set-up but it is not selectable
    any help here would be kind

    You mean VoiceOver?
    First try triple-tapping the Home button
    If not:
    Settings > General > Accessibility > VoiceOver > VoiceOver - Off
    Tap once to select an item
    Double-Tap to activate the selected item
    Swipe three fingers to scroll

  • Table AGR_1251: Search between a range of the field "LOW" and "HIGH

    Hello Experts,
    i've got a problem by searching all users who have the authority for a transaction.
    The transaction was written in a parameter, called p_trans.
    I've the Tables AGR_1251, AGR_AGRS and AGR_USERS.
    I know what I've to do.
    Here is my Join.
    SELECT agru~uname
      INTO CORRESPONDING FIELDS OF TABLE gt_users
      FROM agr_1251 as ag12
      INNER JOIN agr_agrs as agrs
        ON  ag12~agr_name = agrs~child_agr
      INNER JOIN agr_users as agru
        ON  agrs~agr_name = agru~agr_name        
      INNER JOIN usr01 as us
        ON  agru~uname = us~bname
      WHERE ag12~object = 'S_TCODE' AND
                   ag12~field  = 'TCD' AND
                   ???? parameter p_trans between ag~low and ag~high????
    SELECT agru~uname
      APPENDING TABLE gt_users
      FROM agr_1251 as ag12
      INNER JOIN agr_agrs as agrs
        ON  ag12~agr_name = agrs~child_agr
      INNER JOIN agr_users as agru
        ON  agrs~child_agr = agru~agr_name       
      INNER JOIN usr01 as us
        ON  agru~uname = us~bname
      WHERE ag12~object = 'S_TCODE' AND
                   ag12~field  = 'TCD' AND
                   ???? parameter p_trans between ag~low and ag~high????                       
      SORT gt_users BY uname ASCENDING.
      DELETE ADJACENT DUPLICATES FROM gt_users COMPARING uname.
    Here is my question:
    In my code are question marks...here i want to say, that my transaction lays between the fields LOW and HIGH.
    But how can i say, that in WHERE.
    I have to say... Search that agr_name, where object = s_tcode, field=tcd and where my transaction lies between.
    For example: low is T and high is X and i have the transaction va21.
    So i must find out, in which range lays ma transaction.
    I hope somebody understands me
    Thanks!
    Regards,
    Marcel

    Hi Marcel,
    You are mentioning it as a parameter between having low & high values. Is it a parameter or select option.
    If its a parameter, then anyway it will have only single value at any point of time.
    If its a select option, then you need to use
    select * from
    and tcode in s_tcode.
    Thanks,
    Best regards,
    Prashant

  • Controling the legend in Numbers

    Hi all,
    I'm trying to edit a chart I have drawn using XY scatter data with Numbers '09. Besides colors, I would like to distinguish my data lines with solid, dotted, and dashed lines. Numbers lets me do this easily, but I don't seem to have any control over how the data is labeled in my legend. There, all the data is labeled with a solid line, regardless of whether the data it represents is dotted or solid.
    Is there any workaround to this besides manually creating my own legend with text boxes and assorted lines?
    Thanks!
    Message was edited by: ulmer01

    Numbers seems to think that color and data symbol are all that is required to distinguish one series from another in the legend. The problem is that sometimes you don't want to use data symbols (like on charts with many data points), color doesn't do you much good if you make black and white copies, and sometimes you want to use the same color for two or more series to show that they are related to each other (the dashed versus solid line type distinguishes them from each other).
    Here is one workaround if you are not using data points on your chart. For a dashed line, set the data point to an X, set the size to 2, and set the color to the background color (typically white). That'll make the legend have a dashed line. For the actual line on the chart, you have to set it to be a dashed line in the Graphic Inspector. This is not a perfect solution but I don't know of a better one

  • In range and coerce with complex numbers?

    I have an array of complex numbers with these numbers I need to set to 0 all numbers whose real parts are negative. With "in range and coerce" I can split the array into real and imaginary then set all negative numbers to 0 then recombine the complex part but that still leaves me with 0+ai numbers that should be 0. How can I also set the complex part to zero for the negative numbers?

    Hello,
    You can use the following fonction in a for loop with your array.
    Michel

  • How do you auto generate series of dates or numbers in iPad Numbers?

    Hi,
    I am using Numbers app on the latest iPad Air 2 running iOS 8. On the OS X version of Numbers, you could type the first two numbers in two rows and drag them while they are both selected to generate the rest of the numbers or dates or formulas accordingly.
    I haven't figured it out how to do it on the iPad yet. Is this feature supported? What steps do I need to take?

    Those technically are not named ranges. Its using the information in the "header" rows. Once you make a row a header row and sum it (or include the whole colun in some function). It will use the data/name in the header row in the equation to make it clearer. I do not think you can make named ranges in Numbers.
    I made a test excel workbook using two formulas to sum a range, one with named ranges one without and sent to my ipad, when i opened it up...and downloading... yep...  it converted the named range to a regular range with letters and numbers. no named ranges support.
    But learn to use your header and footer rows to get the same affect in many functions.
    When i assign both header rows and columns to a table, it combines them into one string to show "Jan 2001" when I had a header column with Jan in A2, and a header row with "2001" in B1, then used the value in an equation.
    The one your looking at I think says something like "=Sum(actuals)". that formula is in a designated footer row, and has a designated header row. at the top of that column is the label "actual". if you look at the difference column formulas, you will see how it combined header rows and columns into a single text string and use it to cross reference the cell being used.
    Jason

  • Dirty mid-range frequency and very low vocal

    I noticed this problem after I installed and began using Bose USB speakers on my Windows XP. In my iTunes, many of the songs have staticy mid-range frequency sound and vocals are very low and difficult to hear. These songs include songs that were ripped directly from marketed CDs or downloaded from iTunes Store. My equalizer is set to Flat and messing with the equalizer didn’t help as it made the songs even more staticy. I don’t have this problem on QuickTime, Windows Media Player, Realtime, nor on iPod. Only on iTunes. I want to use iTunes since I find it more convenient and easier to use than any other players that I know.
    Can this be fixed? Please help.
    iTunes 7.1.1.5 Windows XP

    btw, I'm using my built-in laptop speakers (Altec Lansing); so it's not a Bose thing.

  • Voice Control voice very low

    Is there any way to increase the voice control voice level. It is very low relative to other sounds on the phone (music etc). The voice level stays the same even if I increase the iphone volume.

    Yea, I have a friend who has noticed this issue on his Z10.
    I've tested on my Z30, and the voice feedback is loud and clear. We'll have to figure out the differenced in the devices or OS release, or settings.
    What is your Operating System loaded to your device? Look at Options >  From the main screen, swipe down from the top black bezel to Settings > About... what is the OS Version listed there?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Auto reboots when battery is lower than 50%

    Hi, I have my 4s 16gb from this year Jan. I knew that Iphone 4S long have a problem with the battery. It is horrible but recently my unit will auto reboot when the battery is lower than 50%............ which I can only use my phone with 3G for 4 h then have to recharge........... Plz help!!!

    JUst in windows or osx too?

  • Digital Out voltage range controled using software

    I am trying to see if we can programatically control the voltage level of the Digital Out. I am using a M Series PXI 6281 board. The specs gives 0-5V output range.
    I am trying to see if we can put out exactly a particular Voltage Level required
    for example 1.5Volts Digital out
    Thanks
    Swam

    Hello Swam. Thank you for contacting National Instruments. The digital outputs on the PXI 6281 use TTL logic, so it can only output 0V and 5V. We do have some Digital Waveform Generators (PXI 6541/6542) that allow 1.8, 2.5, and 3.3 volts.
    If you have not used up all of your analog outputs, I recommend doing a DC voltage. If you have used up all of your outputs, we have the PXI 6704, which has 32 analog outputs. I hope this helps. Have a great day!
    Marni S.
    National Instruments

  • How to build an auto- range measurement?

    I use a DAQ card PCI MIO 16E4 . I want to build an autorange measurement. My input signal is from nA to mA. I am a LabVIEW user, pelase  help me.

    hanh and Sean:
    I have been thinking about this and it does not appear trivial. A nA to mA span is 6 orders of magnitude. WIth a single 1K resistor (value arbitrarily picked) this current range will generate 1uV to 1V. Not an ideal situation at the lower end for good resolution. Using a 10K is still 10uV to 10V, again 10uV is just a few bits of full scale max input. I think a better approach could be to switch various ranges of resistors (i.e. 1Mohm, 100Kohm, 10Kohm, 1Kohm) in circuit (via digital outputs driving a circuit to drive DIP reed relays) to bump the voltage up to get good resolution for whatever the current is. 'Autorange' could be applied by setting DAQ input level programmitically (do not know if this can be done with this card) at highest sensitivity, looking if overrange, and if so then switch to next lower value resistor. Repeat as needed until in a good usable voltage range.
    Of course you need precision resistors whose actual value is known for optimal accuracy. And can the circuit supplying the current provide the voltage burden (voltage drop across resistor)? Will sense resistor load down circuit, etc....
    If it were me, and the application constraints and accuracy demanded it, I would rather buy a higher end Fluke, Agilent, or Keithly meter with a GPIB interface.
    Or, would a PCI-4070 suffice?
    I am not trying to shoot down the use of the MIO 16E4, but without further details like accuracy, is it AC or DC, measurement thoughput, etc, I am pointing to some potential issues you may come across.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Auto Date/Time stamp required for Numbers 3.1

    I would like to automatically add a Date/Time stamp to the last column's cell, when a person's name is selected from the pop-up menu in Column C.
    As a number of different people will be using the spreadsheet, I'd prefer not to have a keyboard short cut, as it can be easily overlooked.
    I was wondering if it were possible to use a script to copy a cell's (column D) results, containing the 'NOW()' or 'TODAY()' function, and paste the results into the 2nd cell (Column E), allowing the last column's formula to reference the 2nd cell?
    The formula in the last cell   =if($C2="","",$E2)  can then reference a static cell, rather than a live cell.
    I know enough to be dangerous, so I'm not sure if i'm heading in the right direction.
    Thanking you all in advance.

    Hi Gordon,
    Is this the same as a script?
    Good question! It's fun to see people try to define what a service is. It may be one of the least understood and appreciated features on the Mac. It was certainly a mystery to me not long ago.
    I think of a service as anything that can be made to appear in the Services menu. Apple has made that easy with Automator. You fire up Automator, create a new service "workflow" document, plop in a script, save, and see the result immediately in the Services menu. You can also send the .workflow package to someone else, who only needs to double-click to install it.
    This particular date-time service contains a short AppleScript (you can view it by opening the .workflow in Automator.  But other languages (Python, Perl, etc) and Unix utilities can be used too, as illustrated here.
    Since Numbers has decent support for AppleScript, it is quite easy for the non-technical user to "bolt on" menu choices to do quite sophisticated things that are not built into the interface itself.  I find it more accessible than (and just as powerful as) the VBA used for Excel macros. But that could be mostly a matter of familiarity.  In any case, it adds a whole new dimension to Numbers.
    SG

Maybe you are looking for