Maximum value such as a number or a string

Hallo,

I calculated the maximum value of a channel. The next step is to use this value for further computation. My problem is that I can't use this value as a number. It is just a string. I tried with

ChnPropGet then I got the number. But I can't use it for calculations. Anyone have an idea how I can fix this problem?

I've attached a screenshot of my script. I use the German version of 12 DIAdem.

Thanks for the help...

Hello LePot,

the properties. The function returns the property in its native type. If you navigate to the maximum property of a channel, it will return the value as a floating point number. You can check this by running the following script:

(The script assumes that the dataset example is which has a number of Group 3 with a channel named "Res_Schall_1". But your chains should give you the same result with the message box showing "double."

Dim Maximum
Maximum = Data.Root.ChannelGroups (3). Channels ("Res_Schall_1"). Properties ('minimum'). Value
MsgBox (TypeName (Maximum))

If you ever want to convert a number represented as a string, be careful when you use "CDbl". This VBScript function assumes that the number is formatted by using the language of oyur BONES, especially the decimal setting (in '. 'or', '). If the setting of the operating system does not match the way the number is converted to a string, you have a problem. That's why the offer DIAdem::Str() to go a certain number to string s and Val() to go the opposite direction. Using CDbl can create rellay average errors that are difficult to detect.

Andreas

Tags: NI Software

Similar Questions

  • What is the maximum value of the specification number?

    Hello

    What is the maximum value of the specification number? When I put the number "UPDATE SpecNumManager SET StartingBlockNumber = 99999999"

    I create a few specs, I encounter error showing below when I try to save them. is this a bug? my version is v6111, thanks

    Thank you

    Terry

    Sql command execution error ' insert into specSummary (pkid, ActiveSigDocGroupSequence, AmberSLA, CreatedDate, EffectiveDate, fkAffiliate, fkCountry, fkGlobalSuccessionSpec, fkOriginatingTemplate, fkPermissionTemplate, fkProcessTemplate, fkSpecBusinessUnit, fkTaxonomyNode, SpecStatusID, GlobalSuccessionState, InactiveDate, IsHidden, IssueNum, IsTemplate, langCreatedIn, LastEdit, OriginatorID, OriginatorNameHistorical, OrigLangID, RedSLA, securityAccessLevel, SpecID, SpecNum, SpecNumber, SpecType, replaces, theOriginator, WorkflowStartDate) values (' 20205484dea2 - 2 ca 6-41eb-9806 - cce52513e7d4 ', '0', '0', August 19, 2013 10:01:27 ', August 19, 2013 10:01:27 ', NULL, NULL, NULL, NULL, '6000d0acb239-b9c6 - 478-a - 8 c 99-4ec741d2a1a5', "57566dc3c46b-b2fe-4276-ae7f-f7f1c28a913f") , NULL, "2141e3469193 - 4A 05-4953-9ef4-8bc08c1b1fb8 ', '2090111 c 6416-6de4-4707-b498-48a18671ca27', '-1234567890', 12/31/9999 00:00:00 ', ' 0', N '001', '0', '0', August 19, 2013 10:01:45 ', ' 0', not admin, Prodika ', ' 0', '0', '0', '2147d635d721 - 2ca 2-411 c-beed-d1584f7498ff', N '100000002', ' 100000002-001 ', ' 2147', NULL, ' 20533b94710f-5396-4487-bdd5-08d21365eefa»(, 19 août 2013 10:01:45 ') '.

    Specification numbers are 7 digits long. I believe that by default, the starting number is 5000000.

  • maximum values of five table 2d

    Hi, I have a vi that reads in the values of a 2D array, and then uses this information. I currently use the vi 'Table Max and Min' to find the maximum values of the table. It can be beneficial for my application find the maximum of 5 or any other number of values in the table. My current plan is to use a loop that detects that the maximum value of the original array and then subtract this value and repeat the operation once 5 or greater. However, I believe that it is innefficient and can take a long time in a vi that must run pretty quickly. I would like suggestions. Thanks in advance.

    It would be a bit faster

    After overhaul at 1 d

    Sort the table (from the smallest to largest)

    Turn the tide (the biggest to the smallest now

    Get the highest values since the beginning

  • Persistent for the subtraction of the background image collection (how to get the maximum value of each pixel in a series of images IMAQ)

    Hi all

    I have a system of LabVIEW which takes advantage IMAQ tools and features of the Vision Development Module.  A useful feature that I put in place is to be able to take a snapshot of the video stream and then subtract this single image among the subsequent images.

    What I want to do is to collect a series of images instead of one, and then create a unique image of these frameworks is just the maximum value of pixels in each pixel (a bit like a display persistent).

    It would probably be very easy to be implemented by converting the image to a table and then by doing math number on the table and then turning into an image, but I hope that someone here may know how to use the IMAQ/VDM tools to do this in a way more compact.

    Thank you very much

    MK

    How about using Max comparison IMAQ operation?

  • How to set the maximum value of the slide in run mode

    Hello

    I have a number of files to process, the files are going to be covered in the runtime. I want to use a slider that controls a single in the process at some point file. As the total number of files cannot be pre-be determined, I wonder how I can configure the maximum value of the slider when running (after I know how many files in the pool).

    Any help will be greatly appreciated.

    JACIE

    Right-click on the property and select change writing.  Now you can wire a constant to the property node.

  • Count the occurrences of the maximum values

    Hello

    I don't know if I simply not thinking clearly this morning or not, but I find it difficult to write a query which I believe should be simple enough.  I'm trying to find the number of occurrences of a maximum value for each value in a range.

    Here's the situation:

    I have a table that stores the scores on the Act and SAT tests for students, as well as their student number identification codes and test. The table can store notes reviews multiple with same code test (in this case A01) for each student, the student can take the Act or SAT several times.

    In my case, I need to know the number of students who earned a maximum test between 14 and 25 grouped by test score.  So if I had 500 students, and 300 of them took the test ACT, then my output can resemble:

    REVIEW NOTE number of STUDENTS

    14                                   12

    15                                   18

    16                                   45

    17                                   55

    18                                   100

    19                                   35

    20                                   15

    21                                   10

    22                                   5

    23                                   3

    24                                   1

    25                                   1

    Although there may be 400 scores in tests with the test code (A01), I'm only willing to count the maximum score that the student has received.

    Fields:

    ID: sortest_pidm

    Test code: sortest_tesc_code

    Test score: sortest_test_score

    I'm going to use this as part of a larger query to track the retention of students with different ACT and SAT scores.

    Thanks for any help you can provide.  If anything is unclear, please feel free to ask for clarification.

    Bob

    It should work. Just check the table and column names.

    SELECT max_sortest_test_score, COUNT (*)

    FROM (SELECT sortest_pidm, MAX (sortest_test_score) max_sortest_test_score

    OF test_scores

    WHERE sortest_tesc_code = "A01".

    GROUP BY sortest_pidm)

    GROUP BY max_sortest_test_score

    ORDER BY 1;

  • How to find the maximum value in a collection

    Hi all

    I'm using Oracle 11 g 2. I need to know the maximum value in a collection of items.

    When I run the following, I get the maximum number of collection as '5' but I need the max value itself which is 8, please help.


    DECLARE
    type v_number1 is table of number of directory indexes;

    v_number v_number1;

    IDX NUMBER.
    psrc_file VARCHAR2 (10): = '1,2,4,8,6';
    v_src_file_string_array v_number1;
    number of max_temp;

    BEGIN

    SELECT regexp_substr (psrc_file, "[^,] +', 1, level") coll
    LOOSE COLLECTION v_src_file_string_array
    FROM (SELECT psrc_file FROM dual)
    CONNECTION OF LEVEL < = length (regexp_replace (psrc_file, "[^,] +")) + 1;

    -Set up some test values:
    BECAUSE me IN v_src_file_string_array. FIRST... v_src_file_string_array. COUNTING LOOP
    -v_numbers (i): = v_src_file_string_array (i);
    v_number (i): = i;
    END LOOP;

    max_temp: = v_number (v_number.first);
    IDX: = v_number.first;

    -Display the contents of the table:
    While the idx is not null
    loop
    If (idx) v_number > = max_temp
    then
    max_temp: = v_number (idx);
    end if;

    IDX: = v_number.next (idx);
    end loop;

    dbms_output.put_line ('Max: ' | max_temp);
    end;
    /


    Thank you!

    Harinath Arasu says:
    Hi all

    I'm using Oracle 11 g 2. I need to know the maximum value in a collection of items.

    When I run the following, I get the maximum number of collection as '5' but I need the max value itself which is 8, please help.

    DECLARE
    type v_number1 is table of number of directory indexes;

    v_number v_number1;

    IDX NUMBER.
    psrc_file VARCHAR2 (10): = '1,2,4,8,6';
    v_src_file_string_array v_number1;
    number of max_temp;

    BEGIN

    SELECT regexp_substr (psrc_file, "[^,] +', 1, level") coll
    LOOSE COLLECTION v_src_file_string_array
    FROM (SELECT psrc_file FROM dual)
    CONNECT BY LEVEL<= length(regexp_replace(psrc_file,="" '[^,]+'))="" +="">

    -Set up some test values:
    BECAUSE me IN v_src_file_string_array. FIRST... v_src_file_string_array. COUNTING LOOP

    It should be-online 1... v_src_file_string_array. COUNTY

    -v_numbers (i): = v_src_file_string_array (i);
    v_number (i): = i;

    This should be-online v_numbers (i): = v_src_file_string_array (i);

    Can't do you all just...

    DECLARE
         type v_number1 is table of number index by binary_integer;
         v_number v_number1;
         idx NUMBER;
         psrc_file VARCHAR2(10) := '1,2,4,8,6';
         v_src_file_string_array v_number1;
         max_temp number;
    BEGIN
         SELECT regexp_substr(psrc_file, '[^,]+', 1, level) coll
         BULK COLLECT INTO v_src_file_string_array
         FROM (SELECT psrc_file FROM dual)
         CONNECT BY LEVEL <= length(regexp_replace(psrc_file, '[^,]+')) + 1;
    
         FOR i IN 1..v_src_file_string_array.COUNT LOOP
           if max_temp is null or
                    v_src_file_string_array(i) > max_temp then
                max_temp := v_src_file_string_array(i);
              end if;
         END LOOP;
         dbms_output.put_line ('Max: ' || max_temp);
    end;
    

    Or more simply...

    DECLARE
         type v_number1 is table of number index by binary_integer;
         v_number v_number1;
         idx NUMBER;
         psrc_file VARCHAR2(10) := '1,2,4,8,6';
         v_src_file_string_array v_number1;
         max_temp number;
    BEGIN
             SELECT to_number(regexp_substr(psrc_file, '[^,]+', 1, level))
          BULK COLLECT INTO v_src_file_string_array
             FROM (SELECT psrc_file FROM dual)
                  CONNECT BY LEVEL <= length(regexp_replace(psrc_file, '[^,]+')) + 1
             order by 1 desc;
         dbms_output.put_line ('Max: ' || v_src_file_string_array(1));
    end;
    

    Published by: JAC on April 3, 2013 18:56
    Unhandled exception...

  • How to choose the maximum value in a column of a table by using the cursor and iteration

    Hello everyone
    I have a table loan_detail
    and a column inside loan_amount
    now I want to take the values in this table with the cursor, then using iteration that I want to take a max value of him using this slider
    Here is my table
    LOAN_AMOUNT
    
    100
    200
    300
    400
    500
    5600
    700
    I could make using the concepts of single loop, but when I tried to do by using the slider I wasn't able to do.
    Concerning
    Prost

    You can get the maximum value for a particular column in SQL, PLSQL needn't; Always avoid PLSQL so you can do it in SQL. But always as an example:

    declare
    number of Temp: = 0;
    Start
    for news in some loan_amt of loan_detail
    loop
    If (temp
    end if;
    end loop;
    dbms_output.put_line (temp);
    end;

    Edited by: Mahanam January 5, 2011 03:11

  • Datepicker apex 4.0 - maximum value bug

    Hi all

    I have a number of dates in my page of simple form, and I applied a maximum date on a field of DOB to be '-16y "(without the quotes)

    The features of this element works as expected, and validation does not apply for other dates.

    However the jquery datepicker applies the restrictive selection on other date fields that do not have a maximum value.

    Has it been met before (I searched the forum but found too many references to filter / walk in)

    See you soon,.

    ScottWe

    A bug was recorded, and this problem will be fixed in the next version of the product. Thank you for reporting this issue.

    Thank you
    JS

  • maximum value without a group of

    I have data such as that below, but can't seem to get the maximum value of a line.


    ID SCORE STATUS ATTRNO
    12 989 17 ACTIVE
    12 122 17 INACTIVE
    33 17 ACTIVE 1099

    I want to be able to get out:

    33 17 ACTIVE 1099

    I'm not 'group by', because it returns all rows. Any guidance would be greatly appreciated.

    Thank you!

    What is information of primary key for this table?

    Maybe you can go for this->

    select *
    fromm table1
    where ID = (
                   select max(ID)
                   from   table1
               );
    

    N.B.: Not tested...

    Kind regards.

    LOULOU.

  • Caveat "the formula uses a Boolean value instead of a number" would dismiss

    Hello!

    I do a "Calculator" to get estimates of price for the projects, according to which processes the customer wants.

    Rates for each process are added in another table, and I use the list of control buttons to enable or disable the various processes.

    Here is an example of a formula:

    D3 determines if the part of the project modeling is performed, so the price will be or will not be calculated.

    If D3 is true, the result is multiplied by 1, give me a positive amount. If false, the result will be multiplied by 0, 0, so nothing to add to the final cost he send me some.

    Same for B4 in the same formula.

    This formula is repeated all over the chart, with minor changes to add more complex options, but it's all the same.

    Everything works fine, but I got those blue triangles warning me of "the formula uses a Boolean value instead of the number". That's fine with me, I like the use of the Boolean types, and they make my formulas work well in my calculator. How can I reject the blue triangles?

    They are a little annoying. And they do not really correspond with the general style of my calculator.

    I saw someone talking other types of formulas, with SEARCH and yews, but who is really complicated and I don't know how to do... Especially for a simple calculator

    Is there a way to simply do not display warnings?

    Using the version 3.6.2 on a MacBook Pro, OSX El Capitan 10.11.5

    Thank you!

    Hi Sinshassan,

    I don't know a way to escape your blue flags except to make a formula which is consistent with the expected numbers. It is not difficult.

    My formula D2 = yew (AND(D1,B2), C2, 0)

    The IF statement tests the two D1 AND B2. If they are true, then it indicates the value of C2 your carbon Modeling::High Poly #1, if one or both are false (unchecked) then 0 is displayed.

    Give it a try.

    Quinn

  • Organize the maximum values of magnitude of several strain gages according to their location.

    "There are 32 gauges installed on a 53' (is) 636" span beam which are 20 ' apart. The first pledge is 26 "support. The attached vi gives the amplitudes of the peaks of each pledge individually by changing the columns and rows in the control. Now, these maximum values should be prepared according to the spacing of the beam and join these points with a spline curve.

    Open the vi, give the path of the attached excel sheet. Now, in the beginning cluster attribute column 3, 620 to line in the end cluster assign to column 4, 845 to line. Now, run the vi. Assign the columns start and end must be (3,4), (5,6), (7,8) and so forth, to get the maximum amplitudes of each extensometer.

    Vlaminck

    Greetings Vgrchada.

    You can independently change the column and the row of every beginning and end by a beam control based on the name. Look at the example that attached. I changed the star and end constants controls because they will be handled programmatically (so there is no need for human beings humans interact with them) always use for the line start and end values, because there is where all the data are. As for the columns, use the iteration of the loop counter For (with differences appropriate, while it starts where it should) another possibility is to build a table with all indexes and use the property auto-index of the loop For (this in the case where the columns are not side by side).

    I would like to know how it works. (I have not tested this code, but the principle should at least help you find your way)

    Kind regards.

  • Calculate the maximum value of the sub-table when creating using a structure of case and records the shift

    I have two 1 d arrays that contain cyclical information (a bit like a sine wave).  One that contains information about the position in degrees and another that contains the couple.  I would like to calculate the value of maximum torque whenever the station is within a certain range (for example, 30 to 80 degrees).  The beaches are repeated - that is why it is cyclical.   I use the function "in the range", a structure of the case and the shift records to build a new table with the values that are included in the beach I said - that was easy part (see attached VI).  I'm struggling with a way to calculate a maximum value for each sub-table formed when the values are 'in range '.   Your help is very appreciated.

    vt92 solution worked!  I agree that there should be a simpler solution, but your to works fine.  Thank you very much.

  • Could someone help tell me how can I save 100 to 200 equidistant values of a particular number % 3F

    Could someone help me that how can I save 100 to 200 in labview at equal distance from the values of a particular number? Lets assume that I have a number of 50 and I need 100-200 equidistant values between 0 and 50. I made a sample program, but it gives error of memory storage that I did not understand how to solve...

    You make the mistake to make equal comparisons on numbers floating point. It's very dangerous. Most likely, your VI will never stop until the computer is out of memory. Replace the 'equal' by ' greater than or equal to "and you should be OK.

    As you know the number of iterations in advance, you must use a loop FOR, see how far you get. In addition, your shift register must probably be initialized.

    (Of course, it is also 'ramp model' If you want a canned solution. )

  • Determine the maximum value and the minimum value for each value in the 2D array

    Hello, I need help please. Sorry my English is not very good. I have table 2D in which each value describes a waveform, I needed a time interval to determine the minimum and maximum value of each element of the array.


Maybe you are looking for

  • 19 incompatible Firefox with the latest update of Windows

    Running Firefox 19 and Vista/Windows 7. My computer has had one of these "updated Windows critical update" and installed automatically. Subsequently, he wouldn't have Firefox. Firefox hasn't crashed - he just never started running in the first place.

  • Satellite A60 - Fried Bios

    Hello friends,Have only just signed up here so forgive me if im not at the speed about how it all works here.A few days earlier, I fried my bios in the A60, and he usually see the same signs of life now.I read a post of PEWIT.He was able to source a

  • Pavilion 15 n208tx: control HP recovery disk

    Well, my system is in working order, I want to do a reset to factory my laptop and I need to order the CD of HP recovery for my laptop. The country I live in is the India.The details of my laptop is as below: Product model: F6C48PA Product name: HP P

  • Using simulink with CompactRIO 9012 models

    Nice day I have some problems using simulink cRIO-9012 controller RT + RIO 9104 models. I'm using LabVIEW 2009 on a computer Windows XP, Microsoft Visual Studio 2008, Matlab 2009A. I followed the instructions of the SimulationInterfaceToolkit 2009 in

  • R50E does not start after upgrading memory

    I tried to upgrade this laptop from the factory of 512 MB to 1.5 GB. I got a Kingston 1 GB DDR - 333 SO-DIMM, but after I installed it, the laptop does not turn. Only the power led is lit. I don't know why this happened, because all tests indicate th