Max & Min function coerces Min output to non-typedef

I have noticed a minor issue that I think is a bug. It is illustrated below in the snippet:
When using the function in "Compare Elements" mode, the Min output is changed to a non-typedef. When in Compare Aggregates mode, it remains a typedef.  I can't think of any reason this would be intentional.  It is only a minor issue since the coercion would not be a big performance loss.  The output values are correct - which is the important thing!
I am using LabVIEW 2011 SP1

Okay.  That does sort of help.
I know what the deal is.  I'm on a PC with Win7 newly installed.  When I drag the snippet to the desktop, it gives me Windows security dialog asking if I want to allow the file to be copied.  I say yes and it copies.  When I drag the snippet directly to the block diagram, it doesn't ask me anything.  Just gives a red X.
So it is tight security that I never had to deal with under WinXP.  That or I managed to free it up and don't remember how.  I don't know if it is because it is Win7, or if it is because of IE8 being on a freshly installed PC.  Now I'll go hunt down how to free up the security.
I found it.  And it seemed vaguely familiar, so I may have used it in the past.  I add to uncheck Enable Protected Mode in the IE8 options menu.  I also found another setting
I used the registry tip in this website.  http://superuser.com/questions/52735/drag-and-drop-images-from-a-webpage-into-a-local-folder
I also found this site that was interesting, but I didn't try to use this tip.  http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/dragging-dropping-pictures-text-no-mor... to see if it works or if it works better.

Similar Messages

  • Max & min function

    The max & min function behaves differently in LabVIEW 6.1 compared to 6.0.2. When comparing between NaN and 0.0, the function returned NaN as the max,in 6.0.2. In 6.1, it retunrs 0.0 as the max. Why is this so?

    You should not rely on assumed behavior of functions when treating NaN. You should treat the case explicitly on your diagram.
    By IEEE standard the comparisons
    X > NaN should return FALSE
    X < NaN should also return FALSE.
    Then the output of a MinMax function with a NaN input actually depends on how you compare both inputs.
    using for example
    if (X > Y) then
    Max = X;
    Min = Y;
    else
    Max = Y;
    Min = X;
    end
    This implementation always returns Max = Y and Min = X when comparing with a NaN input because (X > Y) is FALSE.
    On the other hand, the implementation
    if (X < Y) then
    Max = Y;
    Min = X;
    else
    Max = X;
    Min = Y;
    end
    does return swapped values for Min and Max for NaN inputs.
    Usually, primitives don't check
    explicitely for NaN values because it would unecessarly bloat the code. This kind of NaN check is left to the programmer because anyway the output of MinMax function is meaningless when inputs are NaN.
    LabVIEW, C'est LabVIEW

  • Fox-function: MAX/MIN

    Hi,
    I have a question on MAX/MIN-function. It is possible to find the maximum date in a column ( 0calmonth).
    And other problem that I don't know the syntax of the max-function. The SAP-help isn't significant.
    Thanks.
    Holger

    There is a MAX and a MIN function in FOX but it is only for results of type F.
    DATA RES TYPE F.
    RES = MAX( 0AMOUNT, 0REVENUE ).
    if you have 0CALMONTH as the result type you have to write for MAX:
    DATA RES TYPE 0CALMONTH.
    IF CALMONTH1 > CALMONTH2.
      RES = CALMONTH1.
    ELSE.
      RES = CALMONTH2.
    ENDIF.

  • How do you choose a particular Channel from an Advise.vi to perform an Array Max & Min.vi on that particular channel only?

    Reading all the channels for a FP-AI-100 through an Advise.vi but I need to read the Max & Min from channels 0 & 1. How is this done?
    Thanks

    The easiest way is to use two copies of the Index Array function. You would wire the output from FP Advise.vi to the n-dimension array input of both Index Array functions. For channel 0, you would use the an index value of 0 (on the first Index Array) and for channel 1, you would use an index value of 1 (on the second Index Array). Alternatively, the Index Array function is what is called a growable array function, you can drag the bottom of the node downwards, adding outputs. In this case, you can set it for two outputs and only use one copy of the Index Array.
    Considering that you are relatively new to FieldPoint and LabVIEW, I recommend that you consider using the FP Read.vi instead of the FP Advise.vi. The FP Advise.vi is a more advanced version of the
    FP Read.vi and has more "gotcha's" in its use. To save yourself some debugging headaches it may be easier to use the FP Read.vi. The single biggest difference in coding between the two is that an FP Advise.vi in a loop, automatically times the loop, whereas an FP Read.vi in a loop requires a timer such as Wait Until Next ms Multiple.vi.
    Regards,
    Aaron

  • How to split a result set into n-number ranges, each range has same max-min

    Hi guys,
    suppose there's a table T1(fvalue number),
    we can easily get the MAX and MIN of fvalue, for example, 19 and 5, I need to split them into, for example, 3 ranges, 5-9, 10-14, 15-19, they have the same max-min. And for each range, I need to know the count of rows that fall into this range.
    does anyone have any clues? is there any analytic function i can use to accomplish this?
    many thanks.

    There are the NTILE and WIDTH_BUCKET functions that may be of use. However, I'm not exactly sure what you are after.
    It is always helpful to provide the following:
    1. Oracle version (SELECT * FROM V$VERSION)
    2. Sample data in the form of CREATE / INSERT statements.
    3. Expected output
    4. Explanation of expected output (A.K.A. "business logic")
    5. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Array max min bug LV 2014 SP1 f1

    Problem
    Array Max & Min returns incorrect Min under specific circumstances
    Steps to Reproduce
    The Array Max & Min function returns the Minimum value at the Max output terminal under
    specific circumstances: When the Min Index(es) output IS wired and Min Value IS
    NOT wired. Attached VI illustrates the problem.
    Work around
    Wire the "Min Value" output of the function even when not required.
    It has been reported to NI. They know about it but no CAR yet.

    mcduff wrote:
    I am using 32 bit LabVIEW 2014 SP1f1.
    Not sure this qualifies as a bug, but at least for me it is unexpected behavior. Take an array of NaNs, see snippet, you get an answer of 0 for min and max. I was expecting NaN. For example if I add 1 + NaN in LabVIEW I get NaN. I was assuming that min and max would give NaN. Maybe this can be added to the eventual CAR.
    Cheers,
    mcduff
    NaN values would be excluded from min and max comparisons (After all there value really is "Not A Number)  in your snipette note that the min and max indices are " -1" meaning neither a min or max value exists in the array so you get the default value for the data type 0.
    wiring an array into array min max and testing for index <0 is actually a fairly fast way to test for an all NaN array
    Playing with the bug:  all Floats exhibit the trouble INT and FXT types are not affected.  (Floats with defined min max behaviors of cours- complex floats just don't play into the subject at all)

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • How can I get max, min & average (hours with minutes) of fast 30 days data

    Table name:
    run_log
    TYPE VARCHAR2(10),
    SUBTYPE VARCHAR2(10),
    PROGRAM VARCHAR2(100),
    STATUS VARCHAR2(20),
    START_TIME      DATE,
    END_TIME      DATE
    How can I get max, min & average (hours with minutes) of fast 30 days data ?

    Hi,
    you have to use analytical functions:
    SELECT start_day,
           round(AVG(daily_avg)
                 over(ORDER BY start_day ASC RANGE BETWEEN INTERVAL '30' DAY preceding AND INTERVAL '0' DAY following)) AS moving_avg,
           round(MAX(daily_max)
                 over(ORDER BY start_day ASC RANGE BETWEEN INTERVAL '30' DAY preceding AND INTERVAL '0' DAY following)) AS moving_max,
           round(MIN(daily_min)
                 over(ORDER BY start_day ASC RANGE BETWEEN INTERVAL '30' DAY preceding AND INTERVAL '0' DAY following)) AS moving_min
      FROM (SELECT trunc(t.start_time) start_day,
                   AVG((t.end_time - t.start_time) * 24 * 60 * 60) AS daily_avg,
                   MAX((t.end_time - t.start_time) * 24 * 60 * 60) AS daily_max,
                   MIN((t.end_time - t.start_time) * 24 * 60 * 60) AS daily_min
              FROM run_log
             GROUP BY trunc(t.start_time)) t
    ORDER BY 1 DESCAnalytical functions are described in the Oracle doc "Data Warehousing Guide".
    Regards,
    Carsten.

  • Second max/min in ssrs report builder expression

    I need to do conditional formatting on second max/min in an ssrs report builder table.
    Can i get it in an expression ?

    Hi AshishSinghal84,
    Based on my understanding, you want to perform conditional formatting on the second maximum or minimum value in Report Builder.
    In Reporting Services, there is no built-in function which can return second maximum value. So in this scenario, we can’t directly use expression to perform conditional formatting. However, we can get the second maximum or minimum on query level. Then insert
    a column into tablix and use Lookup function to return a specific value so that we can do the conditional formatting based on this value. As we test in our local environment, to perform conditional formatting such as change the color for second maximum value
    in Report Builder, we can follow the steps below:
    1.Add Dataset2, apply the query below:
    select max(sales)
    From test
    where sales < (select max(sales)
    from test)
    2.On report, add an Expression “=lookup(Fields!sales.Value,Fields!secondmax.Value,1,"DataSet2")”, looks like below:
    3.Click [month], Properties appears on the right panel. Find Color under Font tab, click Expression, then type “=IIF(ReportItems!Textbox6.Value=1,"red","black")”.
    4.Right click the third column, choose Column Visibility\Hide, click Ok.
    5.Final result looks like below:
    To perform conditional formatting on second minimum value, the steps are a little different from getting second maximum value. You should change the query at first step, then apply the query below:
    select min(sales)
    From test
    where sales > (select min(sales)
    from test)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Max - min date difference

    Hello Guys, how are you.
    I'm facing a problem whan I try to get the difference between the max and min date of a KF.
    Mi requirement is like this:
    Min Date Max Date Difference (max - min)
    20/06/2008 26/06/2008 6
    My query result is like this:
    min date max date difference
    20/06/2008 26/06/2008 0
    It seems like the formula for getting the difference between the other 2 formulas is not working, because I'm using the function of aggregattion, based on some characteristic, in order to have the max value of the date in one formula, and then have the min value of the date in other formula (the KF store for date is the same, that's the reason i have to use aggregation in order to calculate min and max value).
    Then I have a third formula to calculate the difference between the min value and the max value, but it seems that its not working because of the aggregation.
    Can you please give me some ideas of how can i obtain the desire result.
    THANKS IN ADVANCE

    Hi Carmonia,
    (a) If you want to perform calculations on DATE and if both dates are characteristic infobjects, then you can go for Formula Replacement Path.
       1. Create a New Formula or CKF and then select a Formula Variable. Right click and select New Varaible.
       2. Now create a Variable for one of the Characteristic of Date type with  processing type Formula - Replacement path. Select Replace with 'Key' and Dimension as 'Date'. Similarly create another formula replacement variable for another characteristic.
       3. Now you can taken both these variables in calculations(such as A-B).
    (b) If you are using key figure for the dates, then try by using DATE function in Data Functions of New Formula.
    Example: DATE(kfig_MaxDate)-DATE(kfig_MinDate). Also try DATE(kfig1_MaxDate-kfig2_MaxDate).
    ***Assign points if useful.
    Thanks,
    Sasi

  • How to get the MAX,MIN from the below table...

    Hi,
    Database is SQL2012 R2 Express and I have a table and would like to dig out the MAX,MIN value of a specifiied date (e.g 2014-11-03)
    Thanks

    Nope... It still output more than 1 value on the same date...
    DL-01-BAT 13.00753 13.00753 10/10/2014
    DL-01-BAT 13.01342 13.01342 10/10/2014
    DL-01-BAT 13.02706 13.02706 10/10/2014
    DL-01-BAT 13.03485 13.03485 10/10/2014
    Raw data is
    DL-01-BAT 13.00753 13.00753 10/10/2014 20:00
    DL-01-BAT 13.01342 13.01342 10/10/2014 21:00
    DL-01-BAT 13.02706 13.02706 10/10/2014 22:00
    DL-01-BAT 13.03485 13.03485 10/10/2014 23:00
    You mean after applying my suggestion?
    I dont think so
    See illustration below
    declare @t table
    Item VARCHAR(10), Reading VarChar(50),DateTimeReading DATETIME)
    INSERT @t
    VALUES
    ('DL-01-BAT', 13.00753,'10/10/2014 20:00'),
    ('DL-01-BAT', 13.01342,'10/10/2014 21:00'),
    ('DL-01-BAT', 13.02706,'10/10/2014 22:00'),
    ('DL-01-BAT', 13.03485,'10/10/2014 23:00')
    DECLARE @Date datetime = '20141010'
    SELECT Item,
    MAX(Reading) AS [Max],
    MIN(Reading) AS [Min],
    DATEADD(dd,DATEDIFF(dd,0,DateTimeReading),0) AS [Date]
    FROM @t
    WHERE DateTimeReading >= @Date
    AND DateTimeReading < DATEADD(dd,1,@Date)
    GROUP BY Item, DATEADD(dd,DATEDIFF(dd,0,DateTimeReading),0)
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Calculate max, min of simulate signal

    I'm using Ampitude and Level Measurements to calculate max min and peak to peak of simulate signal but these values ever change.
    why this application return all of value of function??
    how can I resolve this problem
    Thank you

    Ocramm,
    the point is in the way you configure the "Simulate Signal" Express VI. If you remove the while loop in your example, you will see that it will generate only the first part of a sine wave. And not an entire cycle. This is because you have configured it to generate 100 points at 1000 Samples/s. Putting this in a while loop generates 100 points continuously, describing a sine wave but the processing is always performed on the 100 points generated in the same iteration.
    Remove the While loop, and you will see what I mean.
    If you open up the Simulate Signal Express VI, modify the number of samples generated and put in 1000, so that it will generate 1 entire cycle. The measurements will be as expected.
    AlessioD
    National Instruments
    (btw: si sono italiano)
    Attachments:
    TutorialGenAnalyzeDisp%201[1].vi ‏235 KB

  • How do you create a max/min for a series of input in labview 2010

    with labview is there a way to get max/min values from a series of inputs? I want it to graph the data and keep track of what the highest and lowest values were. I am using Labview 2010

    While you don't really define what you mean by a "Series of inputs", maybe Array Min&Max PrByPt might be of interest.
    (For better help, attach a simplified VI that shows typical data.)
    LabVIEW Champion . Do more with less code and in less time .

  • Change y-axis BACK to auto/ auto for max min

    I have a bar chart and the settings for my y-axis are 250/auto. I need it to revert back to auto/auto for max/min b/c one of my numbers is large and is shooting off the graph.

    Here is a linear scale:
    change to a percentage scale for the y axis:
    Center the value labels:

  • Max, Min and Count with Group By

    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select
         max(COUNTRY_S) MAXVALUE,
         min(COUNTRY_S) MINVALUE
    from
         tab_Country
    select
         count(*)
    from
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ;
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi

    Hi, Heidi,
    HeidiWeber wrote:
    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select 
         max(COUNTRY_S) MAXVALUE, 
         min(COUNTRY_S) MINVALUE 
    from 
         tab_Country 
    select 
         count(*) 
    from 
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ; 
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi
    It's not clear what you want.  Perhaps
    SELECT  MAX (country_s)               AS max_country_s
    ,       MIN (country_s)               AS min_country_s
    ,       COUNT (DISTINCT country_txt)  AS count_country_txt
    FROM    tab_country
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

Maybe you are looking for

  • Foreign Trade: Balance of payment report for Belgium RFIDITSR00

    Hi, I have done customizing settings for the balance of payment report of Belgium (report RFIDITSR00) according to OSS note 928316. When I want to create a file with file name "ITSR_BE_BOP2006" and extension CSV, I get following message: Format tree

  • Hard Drive Fail - Transfer Purchased not working

    Hi The hard drive on my 3 year + 2 month old Macbook Pro died a week ago (2 months out of its extended warranty, not that it cost a lot to repair). My back-up included 99% of the files on the drive. Between my back-up and managing to access the disk

  • DataExport command in Calcscript not working

    Hi All Am trying to run a DATAEXPORT via a calc script to a file. The file size is sitting at 1kb and the script has been running for 13 minutes. A normal export typically takes under 5 minutes for level 0 data. I am trying to ensure all dynamic calc

  • Quicktime Pro trouble, trying to record

    I just purchased Quicktime Pro for Windows. I cant figure out how to get it to work with my webcam and record. When I go to file> it doesn't give me a record movie option, only record audio. Can someone tell me how to get this up and running?

  • Line-in CMSS: for rear out, what about a plain dual stereo (no effect settin

    Can I get the rear out to dri've just with standard equal signal, no effect? Is there a setting for this. I have a Li've5. and the latest drivers and Playcenter. I get this dual stereo from mp3s on my HD, and from audio CDs (pc dvd player), but not f