Default numeric format in steps

Hello,
In my sequence, I have a step which call a IV in which I display numeric value of properties in TestStand. Those properties have default numeric format. So I want to display rhe number of digit as defined in report options (the value of those properties have the rignt number of digit in the report)
I tried to use the GetFormattedValue method, but I didn't succreed
So what I think to do is to get the default report format in report option and use it with the GetFormattedValue method. But it seems so me a little bit complicated.
Do anybody know how to do it, or another way to do what I want
Thanks
I use TestStand 2013 and LabView 2013

Hi Dave,
You can modifiy the ReportOptions, if you have available, via the Override Callback Sequence ReportOptions.
The ReportOptions container is passed to this Sequence during the early execution of the process model sequence, before it calls MainSequence.
Therefore, if you include the ReportOptions Sequence in your sequence file, you will beable to make the change as Scott suggested.
Regards
Ray Farmer
Regards
Ray Farmer

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

  • How to store numeric format data in a database

    In order to properly format a report generated from data stored in a database using a TestStand schema,
    I would like to add formating information for numeric values to the database.
    My intent was to store the numeric format string data in a separate column in the MEAS_NUMERICLIMIT table in the database.
    By using this format string I can then format the numeric values in my report.
    I have successfully retrieved the numeric format string by calling the 'NI TestStand API 3.0', using the ActiveX/COM adapter.
    In the 'PropertyObject' class there is an action called 'Get Property'.
    This action can retrive the 'NumericFormat' property for a given object reference.
    The problem is that I don´t know HOW to do this in the dat
    abase logging schema.
    Can I use this method in the API to retrive and store the numeric format string in the database??
    Or is there any other way of achieving this functionality?
    All ideas for solutions are appreciated.
    Thanks in advance!

    Yes you can. I think it would be helpful if you explain in more detail what you are trying to do.
    >>>> Basically I am trying to reproduce the data sheet created by test stand by using the data in the database.
    Are you using an NI default schema or have you already customized it?
    >>>> I already have a custom schema that I created many years ago, But if I have to start with a 'newer' default schema it wouldn't be to much of a problem to incorporate my changes into it. (I had added Model number and Comment to UUT result table and provided support for custom step types, the custom step types are based on the default NumericLimit step type )
    If default, what about the schema is insufficient for what you want to do?
    >>>> In order to generate a datasheet from the data in the database that replicates the datasheet produced by teststand, I need the Formatted values for the test results and the test limits. So I'm thinking it would be easier for me to query the database for the formatted numbers (as strings) instead of having to query the database for the 'numeric value' and the 'format string' and then creating the string for my datasheet.
    Is the data and limits that you are trying to log custom properties or or is this for the NI numeric or multi-numeric step type?
    >>>> No using custom properties, just dealing with 'NumericLimit' step types
    I had looked at how the 'SequentialModel.Seq' calls the modelsupport2.dll to  to produce the data sheet entries.
         ProcessModelPostResultListEntry >
         Process Step Result >
         Get Step Result Body (Sequence) >
         Add Flagged Values >
         modelsupport2.dll >
         GetFlaggedValuesForReport_Html
    But, alas, I don't understanding the whole traversing concept.

  • Change numeric format type under edit limits from Labview

    Hello,
    is it possible to change under Edit Limits the numeric format type (Hex, Decimal, Real...) from LabView? 
    Is there any way to change this types from Labview. Because i can't found an variable like step.result.numeric or what ever.
    I hope somebody know what i mean.
    thank you and best reguards

    Hi Tumbler,
    Within the TestStand Sequence Editor for a step which has limits, then on the Edit Limits dialog should be a control which will allow you to change the format which is set to <default>. I think you might have to click on another button which will bring up another dialog which will allow you to change the format. ( I haven't got testStand to hand at the moment, so I am working from memory).
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Set Default Tab For A Step

    We have a system that has been installed at a couple of affiliate sites in Japan and Romania (we've been developing in Australia).  It runs on TestStand 4.2 with supporting code written in LabVIEW 8.6 (although the Romanian site uses TS4.2.1 and LV2010).  We have numerous custom steps in a types palette file.
    One of the sites has complained that when they add some specific steps (custom Numeric Limit Tests, in particular) to a sequence, the tab shown in the Step Settings pane is the "Limits" tab.  It would be more convenient and more useful to show the Edit tab (the one that shows the buttons for the Edit sub-steps).
    I realise it's just a matter of clicking on the relevant tab.  I also realise that once a file is saved, the last-selected tab is shown for each step when it's re-opened.  However, the customer is always right, so I need to see if it can be "fixed".
    Is there a way of setting the default tab for a custom Numeric Limit Test step to something other than the "Limits" tab?
    Help files, Google and the NI pages don't seem to be forthcoming on this issue.
    Thanks,
    Geoff
    Geoff Field, BE, CLAD, MIEAust
    Professional geek, amateur stage-levelling gauge
    Solved!
    Go to Solution.

    Thanks Rohama,
    I will mark the issue as "not fixable" and be done with it.
    Regards,
    Geoff
    Geoff Field, BE, CLAD, MIEAust
    Professional geek, amateur stage-levelling gauge

  • Jbdc sender adapter: problem whit numeric format

    hello!
    i have a jdbc (sql server)->xi->RFC interface in my XI 3.0 .
    On the table i'm reading a double field and i map it into a string field.
    But numeric format are changed inside XI.
    So when on table i have a number like this: 12.12345 on monitor i'll find this: 12.1234499999999999999
    And later on rfc too...
    any suggestion?

    Hi,
    What SP level you have.
    Are you using any other step in between your Source & Target field mapping?
    Try to implement this...
    /people/thorsten.nordholmsbirk/blog/2006/08/25/new-arithmetic-and-statistical-functions-in-message-mappings-in-sp18
    Regards,
    Sarvesh

  • Is it possible to change the Database default date format  'dd/mm/yy'

    I'm inserting a date with the format 'dd-mon-yy' in a column, it gives the error:- " a non-numeric character was found where a numeric was expected ". I also tried the TO_DATE function but not successful.
    I want to change the Database default Date format 'dd/mm/yy' to 'dd-mon-yy'. Is it possible?
    version is (Oracle Server 7.3.2.0). I checked it on version ( Oracle Server 7.3.4.0) with format of 'dd-mon-yy'.
    May I keep the both formats at a time?
    Thanks for solution(s),
    Tariq.

    you can try with:
    ALTER SESSION
    SET NLS_DATE_FORMAT = 'dd-mon-yy';

  • Changing Default Image Format After Creating Folio

    Is it possible to change the default image format to "PDF" after creating the folio. I just realized the PDF can allow for zooming on the iPad. Would this make for a larger file size?

    Hi
    follow this :
    step 1: save a image in gif format with z or y intial letter
    step 2: goto tcode smw0
    step 3: select Binary data
    step 4: click find button
    step 5: click execute
    step 6: goto settings > maintain MIME type
    step 7: click create > type =*.gif >extension =.GIF click ok and then go back
    step 8: click create >OBJ Name=name of image with extension>desc=any>click import
    step 9: select image click local object
    step 10: tcode sm30
    table name >SSM_CUST click maintain
    enter parameter RESIZE_IMAGE value =no
    START_IMAGE value =name of object name / image name with extention (in capiatl letter)
    step 11: click save
    step 12: logoff and login.
    Also refer to http://it.toolbox.com/wiki/index.php/Change_the_logo_on_the_right_hand_side_in_SAP
    if you face any issues
    This will do
    Rohit

  • How to change default Date format in BO 6.5 SP4

    A problem with date display has been reported to me by one of our users -  in BO 6.5 - since installing SP4.
    The default date format is now MM/DD/YYYY
    I have tried to recreate this on my PC and have been able to confirm that this is the case.
    Most of our PC's will have two versions of Business Objects on them - for 5.1.6 and for 6.5 - that is the case for my PC.
    If I create a new BO document based on a spreadsheet with three entries in the spreadsheet as follows:-
    20/01/2009    20-Jan-2009  20th January 2009
    This displays in BO 6.5 as
    1/20/2009   1/20/2009    20th January 2009
    My PC regional setting is UK and the time displays DD/MM/YYYY
    Can you advise how to correct this problem please.

    Hi Sebastien
    Thank you for your response.
    I haven't checked Dimension in universe because this is happening even when datasource is an Excel spreadheet - as per details in previous post.
    I have looked for *.sbo files and found one for ODBC.sbo in the Version 5 folders on PC - with date format details in it which I've changed - that doesn't make any difference.
    Any other ideas?
    Regards
    Linda

  • How can I change the numeric format of the cursor coordinates display in LV 8.2

    Since LV 8.0 or so the cursor display window of a graph indicator seems to be a tree control. I couldn't find where to change the numeric format of the numbers displayed in that control. What did I miss?

    lecroy wrote:
    Maybe I'm not clear on what your looking for but I just use a property node and route the raw cursor data out to what ever function I want to run on it, then display it in a seperate field.  The nice thing with the property node is you can have multiple graphs linked together by one set of cursors all with different readouts. 
    Yes, of course that's an option and I guess I'll have to do it that way.
    The point is that I converted a pre-LV-8.x program to LV 8.5. In the program I had used the coordinates display field in the cursor legend to display the position, just the was the cursor legend is supposed to be used, IMO. And in pre-LV-8.x days it was possible to customize the numeric format property of the cursor legend (either directly or by property nodes). It seems that with LV 8.x NI chose to use a treeview control for the cursor legend. With that 'improvement' the numeric formatting flexibility was lost since now the conversion to the string content in the cursor legend's treeview is happening somewhere 'under the hood'.
    <rant> Why do they (NI) always try to 'improve' things (where nothing needs be improved) and sacrifice functionality on the way....? </rant>

  • How to update the default date format in OBIEE 11G.

    Hi All,
    How to change the default date format in OBIEE 11g from the MM/DD to DD/MM. Could anyone please help me out ASAP?
    Thanks,
    Arpan

    Hi Arpan
    OBIEE 11g is having " localedefinitions.xml " file at this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display
    in my case i installed at C:\Oracle\MIddleware.
    so
    1- Stop BI Server from EM
    2- Navigate to this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display. in your case oracle home will be different
    3- take a backup of this file localedefinitions.xml "
    4- modify it and save
    5- bring BI Server up.
    Regards
    sher

  • Bridge CC default TIFF format

    Hi. I originally posted this under CC, but it was suggested this forum would be more suitable.
    I use Image Processor to batch convert JPEGs to TIFFs before further work. I'm on Mac, and the default TIFF format uses Mac byte order. However, other departments at my place of work require IBM PC byter order for TIFFs.
    Is there any way to change Bridge / Photoshop Image Processor default to IBM PC byte order for batch operations. I can obviously use a Photoshop Action and Batch it, but Image Processor is a little more straightforward and simple, and would be the ideal method.
    K@

    Image Processor Pro (available at http://russellbrown.com/scripts.html) does everything Image Processor does and a lot more, including specifying byte order for TIFFs.

  • How do I change the default file format for saving files in Preview

    I often take screen clips and save them as files to my desktop, then upload them to my website or include them in emails. The default file format for Preview seems to be TIFF, but I'd prefer jpg. How do I convince Preview to use jpg as the default file format?
    TIA,
    Thad

    I should have been a little clearer...
    If I'm emailing a screen-clip, I can just paste it right into the email, but I post on a lot of discussion boards and it's often nice to be able to include a screen shot in those. My preferred way to do that is to post the clip at my personal website and then put a link in the post. It gives me the ability to delete the image whenever I want (a plus for any security freak) and it works on every discussion board I know. Some boards allow attachments, some don't. Plus I don't want to have to remember different d/b file attachment procedures. Anyway, when I make a screen-clip, I need to temporarily save it (usually to my desktop), then ftp it to my website. I use Preview to do that. It's simple. But I'd like it to default to .jpg instead of .png or .tiff. (FWIW, I just tried it and the default was .png, but I swear I did something similar earlier that defaulted to .tiff when I first tried to save the newly-created file).

  • Numeric format based on data in another field

    I am trying to set up a form where the numeric format of one field is based on units of measure in another field. The fields are: units1 and iq1. What I want to do is have the iq1 field format for percent with two decimal places when units1 is  LS or ls or L.S. or l.s. otherwise the field should be formatted for a number with the format nnn,nnn,nnn.nn. Any help for this newbie is appreciated.

    I think this is what you are looking for:
    Make sure that you select "Commit selected value immediately" in the options tab of the drop down menu.
    //Place this script in the custom validation script of the drop down menu
    //Create a text field caleld Text2
    var MySelection = event.value;
    switch (MySelection) {
    case "Accountability":
        this.getField("Text2").value = "Accepts personal responsibility for the quality and timeliness of work. Can be relied upon to achieve results with little need for supervision. ";   
    break;
      case "Compliance":
        this.getField("Text2").value = "Complies with policies, procedures, workflows and instructions.";
        break;
    I hope this helps.

  • Problem with Scorecard and Numeric Format

    Hi,
    I need some help with the Scorecard component.  i'm using Xcelsius 2008 SP 3.3, and MS Office 2007.  Everything is working great until i set the format of labels to numeric with negative value being red. Then, if the value is negative, my alert indicator will also turn red regardless of the color i set on Alerts tab.
    For instance,
    Name        M1     
    AAA        -1     
    BBB        2     
    CCC        3     
    Alert by value, low values are good, automatic color
    GREEN:  minimum to 0
    RED: 0 to maximum
    So, AAA indicates GREEN. After i set numeric format of column M1 so that negative value will display in red, AAA will indicate RED instead. Additionally, even if i set alert values to a different column in the spreadsheet, the result is the same.
    Is this behavior by design?  Is there any work around? (My boss really wants them red.) :P
    Currently, I'm in the process of downloading fix pack 3.4 with the hope that it might fix this. i'll let you know if it's does.
    Edited by: MrBank on Dec 21, 2010 5:16 AM
    fix pack 3.4 doens't help

    Have you tried conditional formatting in Excel ? That is an option worth exploring.
    Here are the fixed issues in SP 3.4:
    http://help.sap.com/businessobject/product_guides/xcelsius2008SP3/en/Xcelsius2008_FP3.4_fixed_issues_en.pdf
    Here is an excerpt specific to score card component.
    ADAPT01449290 (Xcelsius Scorecard shows inconsistent behavior)
    Description:
    The Xcelsius Scorecard component shows inconsistent behavior.
    New Behavior:
    This issue is resolved. The font-style value is retained when you rebind the data. Format information
    is not retained and will be retrieved directly from Excel for each binding. Column width is not updated
    when you rebind data.
    Edited by: Narender Jayachandran on Dec 23, 2010 4:20 PM

Maybe you are looking for