Support for UInt64 Datatypes in Numeric Limit Step

It would be good to be able to use UInt64 directly in numeric limit step, instead of something like this:
Step.Result.Status = CheckLimits(FileGlobals.F1_10, Locals.FrequencyInputLimits.Freq10GhzMax, Locals.FrequencyInputLimits.Freq10GhzMin, "GELE", False)

NikolajEgeskovOstergaard wrote:
It works if i convert my UInt64 to Float64...
is that really it ?
I would advise against doing that. Not all UInt64 values can be exactly represented in a Float64 so you will get some rounding error. It depends on what you are doing whether or not that would matter.
The numeric limit step does not currently support 64-bit integers, however the CheckLimits() expression function does support them so you could do something like:
Step.Result.Status = CheckLimits(Locals.Measured, Locals.High, Locals.Low, "GELE", False)
Also you might want to post a feature request to:
http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/idb-p/teststandideas
Hope this helps,
-Doug

Similar Messages

  • How can I tell that a default numeric format has been applied to a numeric limit step?

    I am working on generating custom HTML code for our test systems in order to reduce the 'footprint' of the standard HTML entries for numeric limits, multiple-numeric limit steps etc....
    For a Numeric Limit step, I can set the Numeric Format via the 'Limits' tab and select the pulldown arrow to select any format.  Does TestStand actually save this information with the step so I could possibly use this later?   I ask this because my modifications are within the 'ModifyReportEntry' Callback.   When I am modifying the code to generate new HTML within this callback, I have no idea if the developer has selected a Numeric Format for a given step OR simply left it as DEFAULT.
    To make matters more confusing, here is some more information....
    When I pause the execution in the callback I notice the following:
    Case 1:  User has selected a Numeric Format ( this example I will say 3 digits of precision ) %.3f. for a numeric limit step.
    Parameters.Result.Limits.Low = 10.000
    Parameters.Result.Limits.High = 20.000
    Parameters.Result.Numeric = 15.657
    Notice the numeric data is ALREADY formatted! Great, I can simply use this to generate my custom HTML table for the numeric limit step.
    Case 2 : User has left the numeric format to <Default> for the step.
    Parameters.Result.Limits.Low = 10
    Paramters.Result.Limits.High = 20
    Parameters.Result.Numeric = 15.65713515155
    Numeric data is NOT formatted.  I know that TestStand will apply the Default Numeric Format that is configured in the report options when it writes the report but since I am doing a custom report I am stuck.
    My question is how can I possibly tell that the data has already been formatted by TestStand in the ModifyReportEntry callback?  Is there some flag that I could check or anything?
    I do notice that the Parameters.ReportEntry string contains TestStand's default HTML code for the step and this is already properly formatted.. so as a possible workaround I could 'pick out' the data from this string but this is slow and time consuming.
    Thanks
    PH

    PH,
    You can find out if the numeric format has changed using the TestStand API. I use the following statement in my step's post-expression to find out the numeric format that TestStand uses for the step.
    Step.Limits.Low.NumericFormat
    If the string returned is an empty string, then it is the default format, otherwise, it's the one specified in the string.
    Hope this helps.
    Raj
    National Instruments
    Applications Engineer

  • Evaluating NaN Comparison Type in TestStand Numeric Limit Step

    I'm using a 4070 DMM to return Resistance Measurements to a TestStand numeric Limit step. How can I use a comparison type when the LabView vi returns NaN (Not a Number). I want the step to pass as long as the Resistance Measurement is > GT some value.

    NAN comparison in expressions and limit tests works as follows
    (NAN > x) == false
    (NAN == x) == false
    (NAN < x) == false
    (NAN == NAN) == true
    To summarize, a NAN is neither greater or less than another number and is only equal to another NAN.
    If you want NAN to fail and measurement > some_limit to pass, then just use the > (GT) operator.
    If you want NAN to also pass, then you need to check for it separately. You can do this dozens of ways. Here are a few:
    a) Use a pass/fail step with an expression like: Locals.x > 10 || Locals.x == NAN
    b) Use two limit steps, one to check for NAN and one to check the limit. Use preconditions to specify the NAN check only runs for the NAN value and the limit check only runs for non-NAN values. This will ensure
    the measurement makes it to the report.
    c) If NAN is your instruments way of returning "resistance too high to measure", then you could transform the NAN into an INF in the data source expression and then use a GT limit. Example data source expression:
    Step.Result.Numeric == NAN ? INF : Step.Result.Numeric

  • Creating numeric limit step types

    Hello,
    I'm new in TestStand and I'm trying to create my own step types.
    Right now I need a step type that reads the voltage from one channel on my MIO board and reads one Digital IO from my DIO board.
    I was able to create one step type - run VI and EDIT VI (to choose the channel), but my problem is that my step type is not a numeric step type (so it is not returning a value) and I don't know how to change it!
    1. Are there these kind of step types (DAQ) available anywhere?
    2. How do I set the type of my step type (I think the ones I'm creating are allways action step types and not tests)?
    Thanks ahead!

    Hi,
    The easies why to create your NumericLimit type is to select your step type and right mouse click and select create useing then select the NumericLimit type.
    This will create a new step type combining your step type with a Numeric Limit step type.
    Before you start just rename your step type to someother name by just appending "_1". Then when the new combined step type is created. You can then rename this step type to your original name and easily delete your "_1" named step type.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Import/export properties of multiple numeric limit steps

    Hello
    I have a question to the property loader and the import/export tool in TestStand 3.5.
    When I want to export the limits of a sequence with multiple numeric steps with the import/export tool, I press the Limits button to include the limits into the 'selected' field of the properties tab. But for the multiple numeric step the limits are included not for all indices but only once with an question mark instead of an index (Result.Measurement[?].Limits.Low, Result.Measurement[?].Limits.High, Result.Measurement[?].Limits.Comp).
    The property loader step acts the same way. 
    What can I do ?
    Thanks
    Olli

    Hi Olli,
    For the multiple numeric limit test, you will need to individually specify which numeric limits you want to export. Lets suppose you have 3 sets of limits for your multiple numeric limit test. If you wanted to export the first set, you would use the syntax
    Step.Result.Measurement[0].Limits.Low
    Step.Result.Measurement[0].Limits.High
    You will need to do this for each set of limits you have in your array. Simply replace the "?" with the index of the element in the array.
    Hope this helps!
    Best Regards,
    Jonathan N.
    National Instruments

  • Missing support for new datatypes added in 9i and 10g

    Oracle has added a few useful datatypes in the last
    releases of the database, but ``forgot'' to add them
    into both the web and Java versions of the Oracle
    Enterprise Manager (oemapp console and Oracle Enterprise
    Manager 10g Database Control).
    These datatypes are missing, the list is probably not
    complete:
    INTERVAL YEAR TO MONTH
    INTERVAL DAY TO SECOND
    BINARY_FLOAT
    BINARY_DOUBLE
    Why?

    i have a solution, and i borrowed from the way i had to build a package for OTA Enterprise Distribution about a year ago. a mac is needed, you will need xcode. also note that i used flash CC with beta air 3.9.1.1080.
    refer to this site for building your package from xcode: http://fpstudios.com/2011/08/flash-enterprise-builds/
    the difference i figured out this morning is that the archive you duplicate is an archive that you used to submit to apple, not just any ol' debug archive (the Info.plist varies between the two archives)
    once you have a new "archive" in xcode organizer for your app, go ahead and unpack the ipa flash creates. if you show package contents of the .app inside the Payload folder you will find a Info.plist. use xcode to edit this file and add the new icons to the appropriate array.
    now show package contents of the "archive." in the Products > Applications directory, replace the .app with the .app that was inside the flash Payload folder.
    now you need to edit the Info.plist from the "archive." make sure the icon array is the same as the array in the Info.plist from your .app
    you will also need to change the application path, the bundle id, both bundle versions, the name, and the scheme name
    IMPORTANT - i forgot to mention that on the "general" publish setting tab in flash, make sure to include the new icon files.
    once you do all this, you can use organizer to submit the app to the apple store and you should see a confirmation message like the one that i received this morning after following the steps from above:

  • Multiple Multiple Numeric Limit Test

    Hello
    I have a test that I have written (LabVIEW) that produces 2 arrays of numeric Values. 1 array of Gain data and 1 array of Noise data. I want to apply (different) limits to each array (Same limit for each element within array). How do I do this in TestStand. I have used the multiple numeric limit test for tests returning a single array of data but my test returns 2 arrays.
    It would be really in-efficient to split the test up into 2 tests as both Noise and Gain data comes back from the instruments in one sweep.
    Any clues ?
    Regards
    Chris

    Chris,
    Since your code module returns two arrays and you do not want to call the module twice you could have the LabVIEW multiple numeric limit test step to validate one of the arrays and have a None multiple numeric limit step  to validate the second array. You have to send one of the arrays to a local or global variable  so you can access it from the None multiple numeric limit step.
    You could even execute these steps in a separate sequence and call it using a Sequence Call step if you want to see all the process as  a single step.
    Another option would be to create your own multiple numeric limit step type in order to support two different arrays as the data source at the same time. This solution requires more work from you. You could take the existing multiple numeric limit step type code as a starting point.
    You can fin the code under <TestStand>\Components\NI\StepTypes\CommonSubSteps.
    If you plan on modifying the code it is better to make a copy under <TestStand>\Components\User\StepTypes and modify it there.
    This will prevent future upgrades from overwriting your changes.
    If you have any question let me know.
    Hope it Helps.
    Antonio Lie.

  • Send numeric limit data from TestStand sequence to Accesss database

    I use the "None" adapter to perform numeric limit testing on results from expression steps, but when I enable saving the report to an Access database the Name of the parameter is not shown. I noticed that when I use the multiple numeric limit step the option to name the parameter is built in, but the numeric limit test doesn't give that option. Is there a way around this? I have left the database options in their default settings.

    By default the numeric limit test doesn't log the name of the step into the MEAS_NUMERICLIMIT table. This make sense since the name of the step is already logged into the STEP_RESULTS table. For the multiple numeric limit test, make sense to have a name to differentiate the different tests within the same step. That's why the default setting is set to log the test name in the MEAS_NUMERICLIMIT table.
    Do you need the step name to be also in the MEAS_NUMERIC table or is it enough to have it on the STEP_RESULT one?
    Best Regards,
    Alejandro del Castillo
    Application Engineer
    National Instruments Co.

  • Display all measurements in Multiple Numeric Limit Test using UI SeuqenceView Control

    Hi, I found only the total result in Multiple Numeric Limit test can be show in UI SequenceView Control. How can I display more detail information in it?
    For example, If I want to display like this:
    Mulitple Numeric Limit test                       FAIL
    Measurement1                                        PASS
    Measuremtnt2                                         FAIL
    Is it possible in UI sequenceview control?
    Thanks in advance

    You might be interested in this community example: Recursive Expression in TestStand.
    It is possible (though not traightforward) to loop in an expression using recursion.  The example above shows how to use recursion in an expression to list all of the limits of a multiple numeric limit step.  This is similar to what you want to do with measurements.
    I honestly think you're better off with Doug's suggestion to hard-code a maximum number of measurements to display as using recursion in expressions is not easy.
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • TestStand IVI Read Numeric Limit Test

    Hey all,
    How can I turn a IVI DMM reading into a test step pass / fail based on a numeric limit test?
    I'm a TestStand newbie so be gentle.  Searches on the forum for TestStand IVI and pass fail don't return anything useful.
    I can call the DMM via IVI Read wich returns a Step.Result.Reading value but I need to turn this into a pass fail on a limit range.
    Any ideas would be very gratefully appreciated.
    Thanks,
    Solved!
    Go to Solution.

    You could insert an none_adapter numeric limit step after it and set the data source to PreviousStep.Result.Reading.
    -Doug

  • Creating stored outlines for date datatype bind variable

    While trying to create stored lines for a query having date datatype I get
    ORA-00932: inconsistent datatypes: expected DATE got NUMBER error:
    desc table_t1;
    col1 number,
    datecol date
    CREATE OR REPLACE OUTLINE TEST FOR CATEGORY TEST
    ON
    select * from table_t1
    WHERE T1.COL1 IS NOT NULL
                                          AND T1.DATECOL BETWEEN TRUNC (:D1)
                                                                   AND TRUNC (:D2)
                                                                       + 1Can someone please help me what am I doing wrong?
    I also tried to declare variable of date from sqlplus but it seems sqlplus doesn't have any support for date datatype var declaration as bind variable.
    Thanks
    Kev
    Edited by: Kevin_K on Jan 3, 2011 4:48 AM

    I think in this case you would have to take an approach like this:
    alter session set set create_stored_outlines=true;
    run your sql-statement (with a date bind variable), using anonymous plsql block.
    alter session set create_stored_outlines=false;
    Not sure though. It's been a while since I played around with outlines.

  • Limit steps

    Hi , I'm using TS 3.1 and LV7.1 .
    I have a VI which reads the value of step.limits.low and step.limits.high via the sequencer context and get properties methods.
    This vi is called by a numeric limit step type within a flow ( loop) step in TS, the values of step.limits.low and step.limits.high are forced to different values within the loop.
    The Edit Limits TAB has this entered in the data source window:
    Step.Limits.Low = Locals.TempWindowLow ,Step.Limits.High = Locals.TempWindowHigh
    the locals being defined in a Fx step previous.
    The problem I have is that the VI gets the default test limits ( ie the relevant fixed ones ) on the first iteration of the loop, and is subsequently one behind on later iterations.However the report shows that the limits are correct by the time the results comparism in TS takes place.
    So the issue is probably in the order at which things happen when calling the vi, the Step.Limits.Low being evaluated after the properties have been sent to the VI.
    Has anyone any experience of this, and possible work arounds?.
    thanks dht

    For a numeric limit step, the data source expression gets evaluated as part of the status expression, thus, as you saw, it happens after the module is called. Move your limit initialization expression to the PreExpression on the Expressions tab of the step properties dialog box.

  • Measurement for multiple numeric limit test

    Hello,
            I am developing a test software using LabWindows and TestStand. In my application, I have added a no: of multinumeric tests. In Operator Interface, I want to display each measurement in run time, instead of waiting for completion of all the measurements with Multiple numeric limit test. Is there any way to receive in TSOP each runtime measurent taken for multiple numeric limit test without waiting for multinumeric limit test over?
    Thanks in advance......
    Best Regards,
    Vijay

    Hi Vijay,
    Unfortunately, a Multiple Numeric Limit Test will not allow you to return each measurement inside the step as it executes.  If you need this to occur, there are other methods that you could take.  You could create a custom step type or use many Numeric Limit Test steps and pass them the indexes in your array.
    Another method you might use would be to use an Action step and save the array locally.  Then, you could use Statement steps to evaluate each item in the array.
    Jessica
    National Instruments
    Product Support Engineer

  • Is there any differnce between the Numeric Limit Test source code from TestStand 3.0 to TestStand 3.1? How to get the source code for the Numric Limit Test for both the versions?

    I need to know the differnece between the Numeric Limit Test between the TestStand version 3.0 to 3.1. If there is any differnec in the source code how to find it out? If somebody has the code can you share it?
    Thanks,
    Jeyan

    Hi,
    I don't believe there are any differences between the two versions. But you can check the source code for the Numeric Limit Test in TestStand\Components\NI\StepTypes\CommonSubsteps. But the main part of the step is the Code Module and this bit the users supplies this.
    What has prompted this question?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Notice -- Fix for Multiple Numeric Limit Test Status in TestStand 2.0.1

    Dear TestStand Customer:
    National Instruments is committed to product quality and customer
    satisfaction. As part of our commitment, we want to ensure your success
    with our products by delivering industry-leading support and immediate
    information regarding issues potentially affecting you. We discovered an
    issue in TestStand 2.0.1 that may affect the integrity of some test
    results. This issue affects TestStand users meeting both of the following
    criteria:
    1. You are using sequence files with instances of the multiple numeric
    limit test that were saved in TestStand 2. 0.
    2. You have recently upgraded these sequence files from TestStand 2.0 to
    TestStand 2.0.1.
    For the complete problem overv
    iew, please visit
    http://digital.ni.com/express.nsf/express?openagent&code=exjaxg
    In order to immediately remedy this problem on current TestStand 2.0.1
    installations, download the corrective patch at
    http://digital.ni.com/express.nsf/express?openagent&code=exjaxg To prevent
    this issue from occurring in future installations of TestStand 2.0.1
    development and deployment systems, we are creating a new TestStand CD,
    version 2.0.1f1, which we plan to send to all existing TestStand 2.0.1 and
    Developer Suite Test Edition customers with TestStand 2.0.1 during the next
    two to three weeks. If you have a TestStand 2.0.1 CD, please replace it with
    the new TestStand 2.0.1f1 CD.
    Thank you for your patience and understanding in this matter. We remain
    committed to your success and will continue to inform you of any issues
    potentially affecting you in the future. If you have any questions, please
    call me at (512) 683-5880 or email me at mailto:[email protected]
    Best re
    gards,
    Richard McDonell
    TestStand Product Manager
    National Instruments
    (512) 683-5880 Office
    (512) 683-5569 Fax
    mailto:[email protected]

    This issue has been resolved in TestStand 3.0. For more information on TestStand 3.0, please visit ni.com/info and enter "teststand3".
    Regards,
    Richard McDonell
    NI TestStand Product Manager
    National Instruments

Maybe you are looking for

  • Macbook no longer boots

    Hi, This past Tuesday night I downloaded the new software updates for my macbook. There was an error during the installation and the updates did not complete. A screen popped up on my macbook which told me that I needed to re-start my macbook. I clic

  • Can't see pictures in full screen mode

    This is my new Mac Computer. Some of the pictures can not be viewed except as thumbnails. (When I try to see in full screen mode, there is a quick 1 second view,then a grey screen with an I in the middle and a dotted line surrounding it. There is no

  • Problem in displaying data in Vendor Ageing through abap

    Hi, I had developed a vendor ageing report in which i am facing due to the dates i.e. As on date and select-option date. The As on date is sy-datum and other date is to sepcify from which date range it is displaying the date. When i execute the repor

  • PS Scripting

    I'm looking for a good (i.e., able to be understood by a non-programmer) resource on PS scripting.  I'm not even sure what I want to do is possible.  I'd like to generate a script that will do a batch Merge to HDR Pro.  I'd like to point the script a

  • Why iMac shuts off when in sleep mode? Using latest System (Yosemite)

    Can anyone tell me why my iMac 27", running on the latest system (Yosemite), all of a sudden started shutting off when put in the sleep mode?