Use Post Expression to convert 1.000 to 99999

I have a program that reports a 1.000 if the value returned is 1.#INF, by using the Val() function.
Can I use Post Expression to check to see if Step.Result.Numeric == 1.000 and if it is then convert it to 99999?
Currently I have Val( Step.Result.Numeric ) in the post expression box.  My version of TestStand is too old to use an If statement.  In most cases the value returned will not be 1.#INF so I want to make sure I don't convert every result to 99999.
Thanks in advance.

Hi,
Try 
(Step.Result.Numeric == 1.000) ? (Step.Result.Numeric = 99999) : 0
Regards
Ray
Regards
Ray Farmer

Similar Messages

  • Trying to use regular expressions to convert names to Title Case

    I'm trying to change names to their proper case for most common names in North America (esp. the U.S.).
    Some examples are in the comments of the included code below.
    My problem is that *retName = retName.replaceAll("( [^ ])([^ ]+)", "$1".toUpperCase() + "$2");* does not work as I expect. It seems that the toUpperCase method call does not actually do anything to the identified group.
    Everything else works as I expect.
    I'm hoping that I do not have to iterate through each character of the string, upshifting the characters that follow spaces.
    Any help from you RegEx experts will be appreciated.
    {code}
    * Converts names in some random case into proper Name Case. This method does not have the
    * extra processing that would be necessary to convert street addresses.
    * This method does not add or remove punctuation.
    * Examples:
    * DAN MARINO --> Dan Marino
    * old macdonald --> Old Macdonald <-- Can't capitalize the 'D" because of Ernst Mach
    * ROY BLOUNT, JR. --> Roy Blount, Jr.
    * CAROL mosely-BrAuN --> Carol Mosely-Braun
    * Tom Jones --> Tom Jones
    * ST.LOUIS --> St. Louis
    * ST.LOUIS, MO --> St. Louis, Mo <-- Avoid City Names plus State Codes
    * This is a work in progress that will need to be updated as new exceptions are found.
    public static String toNameCase(String name) {
    * Basic plan:
    * 1. Strategically create double spaces in front of characters to be capitalized
    * 2. Capitalize characters with preceding spaces
    * 3. Remove double spaces.
    // Make the string all lower case
    String retName = name.trim().toLowerCase();
    // Collapse strings of spaces to single spaces
    retName = retName.replaceAll("[ ]+", " ");
    // "mc" names
    retName = retName.replaceAll("( mc)", " $1");
    // Ensure there is one space after periods and commas
    retName = retName.replaceAll("(\\.|,)([^ ])", "$1 $2");
    // Add 2 spaces after periods, commas, hyphens and apostrophes
    retName = retName.replaceAll("(\\.|,|-|')", "$1 ");
    // Add a double space to the front of the string
    retName = " " + retName;
    // Upshift each character that is preceded by a space
    // For some reason this doesn't work
    retName = retName.replaceAll("( [^ ])([^ ]+)", "$1".toUpperCase() + "$2");
    // Remove double spaces
    retName = retName.replaceAll(" ", "");
    return retName;
    Edited by: FuzzyBunnyFeet on Jan 17, 2011 10:56 AM
    Edited by: FuzzyBunnyFeet on Jan 17, 2011 10:57 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hopefully someone will still be able to provide a RegEx solution, but until that time here is a working method.
    Also, if people have suggestions of other rules for letter capitalization in names, I am interested in those too.
    * Converts names in some random case into proper Name Case.  This method does not have the
    * extra processing that would be necessary to convert street addresses.
    * This method does not add or remove punctuation.
    * Examples:
    * CAROL mosely-BrAuN --> Carol Mosely-Braun
    * carol o'connor --> Carol O'Connor
    * DAN MARINO --> Dan Marino
    * eD mCmAHON --> Ed McMahon
    * joe amcode --> Joe Amcode         <-- Embedded "mc"
    * mr.t --> Mr. T                    <-- Inserted space
    * OLD MACDONALD --> Old Macdonald   <-- Can't capitalize the 'D" because of Ernst Mach
    * old mac donald --> Old Mac Donald
    * ROY BLOUNT,JR. --> Roy Blount, Jr.
    * ST.LOUIS --> St. Louis
    * ST.LOUIS,MO --> St. Louis, Mo     <-- Avoid City Names plus State Codes
    * Tom Jones --> Tom Jones
    * This is a work in progress that will need to be updated as new exceptions are found.
    public static String toNameCase(String name) {
         * Basic plan:
         * 1.  Strategically create double spaces in front of characters to be capitalized
         * 2.  Capitalize characters with preceding spaces
         * 3.  Remove double spaces.
        // Make the string all lower case
        String workStr = name.trim().toLowerCase();
        // Collapse strings of spaces to single spaces
        workStr = workStr.replaceAll("[ ]+", " ");
        // "mc" names
        workStr = workStr.replaceAll("( mc)", "  $1  ");
        // Ensure there is one space after periods and commas
        workStr = workStr.replaceAll("(\\.|,)([^ ])", "$1 $2");
        // Add 2 spaces after periods, commas, hyphens and apostrophes
        workStr = workStr.replaceAll("(\\.|,|-|')", "$1  ");
        // Add a double space to the front of the string
        workStr = "  " + workStr;
        // Upshift each character that is preceded by a space and remove double spaces
        // Can't upshift using regular expressions and String methods
        // workStr = workStr.replaceAll("( [^ ])([^ ]+)", "$1"toUpperCase() + "$2");
        StringBuilder titleCase = new StringBuilder();
        for (int i = 0; i < workStr.length(); i++) {
            if (workStr.charAt(i) == ' ') {
                if (workStr.charAt(i+1) == ' ') {
                    i += 2;
                while (i < workStr.length() && workStr.charAt(i) == ' ') {
                    titleCase.append(workStr.charAt(i++));
                if (i < workStr.length()) {
                    titleCase.append(workStr.substring(i, i+1).toUpperCase());
            } else {
                titleCase.append(workStr.charAt(i));
        return titleCase.toString();
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Expression to convert 8 characters to date

    Hi all,
    Is it possible to use SSRS expression to convert 8 characters to date?
    I have the date in the following format 20150402 and I would like to convert it to date dd/MM/yyyy format.
    I appreciate any help.
    Thanks in advance.

    Hi Matt_90,
    If you want to change the value from dd/MM/yyyy to ddMMyyyy, you could use the Split() function like below:
    =Split("16/04/2015","/")(0) & Split("16/04/2015","/")(1) & Split("16/04/2015","/")(2)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • I have 8mm films transferred to .avi files at 18fps.  Can I use Final Cut Express to convert to standard DVDs to play on a US TV?

    I have 8mm films transferred to .avi files at 18fps.  Can I use Final Cut Express to convert to standard DVDs to play on a US TV?

    Hi
    I was hoping that FCE would be able to handle the coversion from 18 to 30fps but that appears not to be the case.
    It does - If I'm not totally wrong. Can be to much using FinalCut Pro (6)
    Start FCE
    Select type of project You want to do
    I guess - NTSC 29.97fps - Select that from FCE menu / Easy Set-up
    Start a new Sequence
    DROP A PHOTO in TimeLine - at beginning.
    Now project is locked to 29.97 fps
    Now import and drop the 18fps clip in TimeLine.
    Select to convert it to match the setting of TimeLine.
    IF THIS IS A GOOD WAY - I hesitate to say - It works - but if quality is OK or not - I don't know
    I DO : use JES_Deinterlacer (free from Internet) to convert the frame rate in my clips (usually 25fps) to 29.97 fps - Then and first then I import the converted clip into FinalCut to be used in my NTSC projects.
    The quality done in this way - is very good and the program is free - so I can not want any better.
    Yours Bengt W

  • I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.

    I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.  I've tried several USB connectors, and several different ports on my USB hub; same result.  I need to have the HP connected to the hub 'cause from there it's connected to our desktop Mac.

    Hi,
    I am currently replying to this as it shows in the iChat Community.
    I have asked the Hosts to move it to Snow Leopard  (you should not lose contact with it through any email links you get)
    I also don't do Wirelss printing so I can't actaully help either.
    10:01 PM      Friday; July 29, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I have a linksys WRT54G router that we use as a base. I want to use Airplay using Airport Express and hook up my stereo to it. How can i set up my Airport express without a PC/laptop? I just downloaded Airport utility on my iphone and ipad,will that work?

    I have a linksys WRT54G router that we use as a base. I want to use Airplay using Airport Express and hook up my stereo to it. How can i set up my Airport express without a PC/laptop? I just downloaded Airport utility on my iphone and ipad,will that work? And one more thing about the setup, the linksys router shich acts as a base is in a different room as the airport express which i wanted to use for airplay. So I'm hoping to hook up the Airport express via wireless signal. If i can set it up, can someone pls help me out by posting detailed instructions. Thanks so much!

    The first message that AirPort Utility will display during the auto setup will be that the Express will be confgured to "extend" the network. When AirPort Utility analyzes the network further, and sees that the Express cannot "extend" the 3rd party network, the next message will indicate that the Express is being configured to "join" the wireless network.
    Once the Express is configured, if you later go into AirPort Utility to check the settings under the Wireless tab, you will see that the Wireless Mode is indeed "Join a wireless network".

  • I have an airport extreme and express, if I use the extreme as a base station connected to my old router can I use the express to extend the signal while also creating a new network that only I can use?

    I have an airport extreme and express, if I use the extreme as a base station connected to my old router can I use the express to extend the signal while also creating a new network that only I can use? Essentially having two wifi connection off the same network? If so how do I set this up?

    Extending using a wireless connection always results in a performance compromise.
    If the Express is going to extend using a wireless connection, then the Express will need to be located about half way between the AirPort Extreme and the general area where you need more wireless coverage. The more that you have line-of-sight between the Extreme and Express, the better the network will operate.
    Remember......the Express can only "extend" the quality and signal speed that it receives, so it needs to be located where it can get a very good signal from the Extreme. Although Apple cleverly uses the term "extend", a more accurate term for the Express would be "repeater".
    If the Express will extend by connecting to the Extreme using a permanent, wired Ethernet cable connection......highly recommended for best performance.....then the Express can be located exactly where you need more wireless coverage. There is no signal loss at all through the Ethernet cable, so the Express gets a full speed signal no matter where it might be located.
    Post back to let us know which way to you want to go.

  • How can i access the stepname within a steps post-expression?

    How can i access the stepname within a steps post-expression?
    i only saw the step-id of the step: Step.TS.Id
    is there a pssibility to get the stepname from the id?
    thank you!

    Hi Fischer,
    use the expression NameOf(Step).
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • I upgraded my iPod Touch 4th Gen yesterday.  Now it won't play music, which is the main thing I use it for.  Over 11,000 songs [it's a 64GB model] -- will I actually have to restore the device and re-add all that music?

    I upgraded my iPod Touch 4th Gen yesterday.  Now it won't play music, which is the main thing I use it for.  Over 11,000 songs [it's a 64GB model] -- will I actually have to restore the device and re-add all that music?
    [Music files are still there, and I can play them on my computer directly from the iPod [just one track at a time] but not in the usual way, through headphones.]
    On the Summary page of iTunes for the iPod, it shows 50-plus gigabytes of "Other" content and no music, which was not previously the case.  I assume this is related to the problem.
    I can bring up individual tracks on the iPod and see cover art, but cannot play the music.

    iCloud is free, iTunes match is $25 a year.
    I had the same problem and when I went to Settings I had 0 songs, even though they were obviously still there since I only had 15GB free on my 64GB device.
    I decided to do a complete reset/restore of my 4th gen iPod Touch, Bad move! I've been messing with it for hours, and it simply won't restore--it keeps hanging on a black screen with an Apple logo and a progress bar at about 10%, sometimes it goes completely blank and tries again, with the same result. (I've posted my question/plea for help here: https://discussions.apple.com/message/19735862 )
    I'm ready to bang my head against the wall! I can put the device in recovery mode, connect to iTunes on my computer, and get it back to the setup screen, but when I go through the process again and try to do an iCloud backup I get the same reset/restore loop.
    I could start from scratch, but I really, really, really don't want to go through all of my hundreds of apps, reinstall them one by one, etc. etc. etc.
    I thought that once I started using iCloud, I didn't need to sync with iTunes anymore--guess I was wrong.

  • Can I use Oracle Express Edition for Educational purposes?

    Dears,
    I have an Information Technology school and I'm wondering if I can use Oracle Express Edition for Educational purposes. Do I need any special licenses for this?
    I noticed the following statement on Oracle 11g Express download (Oracle Database Express Edition 11g Release 2) but would like to confirm if I have any restrictions about that.
    "Oracle Database XE is a great starter database for:
    Educational institutions and students who need a free database for their curriculum
    Thanks
    Martins

    Hi Darsh,
    I can't say that this was a good answer, but I addressed a similar question in this forum posting:  https://forums.oracle.com/thread/2600958
    Joel

  • Best Practices for Using Airport Express to Stream iTunes via Ethernet

    So I've been reading various posts about using Airport Express to stream iTunes and I've been reading various posts about using the Ethernet port on the Express. However, not sure I've yet found an inclusive listing of settings for both. Wondering if anyone out there has such a thing?
    I have an (older) Aiport Express (802.11g, no 'n') running the latest Firmware (6.3, I believe). I have it lashed into my switch via a Cat 6 cable and the 3.5 stereo mini running out to RCA jacks into my RussSound (home audio system) amp. I'd like to make the Express ONLY a iTunes streaming device getting its network link over Ethernet (AirTunes). So, what does everyone suggest for best settings for turning on the Ethernet, turning off the WiFi and running AirTunes?
    Thanks much in advance!
    cheers
    cp root

    Airport > Wireless > Wireless mode "off"
    Internet > Internet connection > Connect using "Ethernet", Configure IPv4 "via DHCP"
    Music > Enable Airtunes
    Enable Airtunes over Ethernet (if this choice appears).
    When I first did this, the remote speakers didn't appear in iTunes. I poked around to see what I missed and couldn't find anything wrong, but the next time I ran iTunes the remote speakers appeared.
    If you run into a firewall problem, make sure your OS X firewall is configured to "set access for specific services and applications": http://docs.info.apple.com/article.html?path=Mac/10.5/en/18503.html
    Firmware 6.3 is correct for your Express.

  • Conversion failure when using PDF Pack to convert a publisher file

    Up until the last few months, I used acrobat 8 to convert my church's newsletter from Publisher to PDF for posting on our church website.  When we switched to Windows 8 in January my Acrobat 8 couldn't be installed.  We just registered for the PDF pack with the yearly subscription fee and I have tried twice to convert our most recent newsletter.  Both time the conversion failed with the second time sending the message that the file was too complex or too large to convert.
    What do I need to do to make Acrobat XI as least as capable as Acrobat 8 in converting publisher files?

    Hi eec hampton,
    Adobe PDF Pack and Acrobat XI are two different things. PDF Pack is an online service, whereas Acrobat XI is a much more current version of the Acrobat that you had on your computer until recently.
    There is a file size limit to the files that you convert with PDF Pack (100MB), but even when a file falls below that file size, the complexity of the file (how much text and graphics, and so on) can cause conversion failure. (You could be dealing with bandwidth issues, for example, as the file is uploaded to the Internet for conversion.)
    One option it to convert smaller portions of the newsletter. You can also download a free 30-day trial of Acrobat XI from www.adobe.com/products/acrobat.html, and convert your publisher document using that.
    Please let us know how it goes.
    Best,
    Sara

  • Using QuickTime Pro to convert a series of JPEG images into a QT movie?

    Can I use QuickTime Pro to convert a series of JPEG images into a QT (uncompressed) movie? Thanks...
      Windows XP  

    Yes.
    One of the features of the QuickTime Pro upgrade is "Open Image Sequence". It imports your sequencially named (1.jpg, 2.jpg) liked sized images (any format that QT understands) and allows you to set a frame rate.
    http://www.apple.com/quicktime/tutorials/slideshow.html
    You can also adjust the frame rate by adding your image .mov file to any audio clip. Simply "copy" (Command-A to select all and then Command-C to copy) and switch to your audio track.
    Select all and "Add to Selection & Scale". Open the Movie Properties window and "Extract" your new (longer or shorter) file and Save As.
    As you've posted in the Mac Discussion pages but your profile says XP you'll need to subsitute Control key where I reference Command key.

  • Using regular expressions for validating time fields

    Similar to my problem with converting a big chunk of validation into smaller chunks of functions I am trying to use Regular Expressions to handle the validation of many, many time fields in a flexible working time sheet.
    I have a set of FormCalc scripts to calculate the various values for days, hours and the gain/loss of hours over a four week period. For these scripts to work the time format must be in HH:MM.
    Accessibility guidelines nix any use of message box pop ups so I wanted to get around this by having a hidden/visible field with warning text but can't get it to work.
    So far I have:
    var r = new RegExp(); // Create a new Regular Expression Object
    r.compile ("^[00-99]:\\] + [00-59]");
    var result = r.test(this.rawValue);
    if (result == true){
    true;
    form1.flow.page.parent.part2.part2body.errorMessage.presence = "visible";
    else (result == false){
    false;
    form1.flow.page.parent.part2.part2body.errorMessage.presence = "hidden";
    Any help would be appreciated!

    Date and time fields are tricky because you have to consider the formattedValue versus the rawValue. If I am going to use regular expressions to do validation I find it easier to make them text fields and ignore the time patterns (formattedValue). Something like this works (as far as my very brief testing goes) for 24 hour time where time format is HH:MM.
    // form1.page1.subform1.time_::exit - (JavaScript, client)
    var error = false;
    form1.page1.subform1.errorMsg.rawValue = "";
    if (!(this.isNull)) {
      var time_ = this.rawValue;
      if (time_.length != 5) {
        error = true;
      else {
        var regExp = /^([01]?[0-9]|2[0-3]):[0-5][0-9]$/;
        if (!(regExp.test(time_))) {
          error = true;
    if (error == true) {
      form1.page1.subform1.errorMsg.rawValue = "The time must be in the format HH:MM where HH is 00-23 and MM is 00-59.";
      form1.page1.subform1.errorMsg.presence = "visible";
    Steve

  • Using Regular Expressions To Remove Characters JDK 1.4

    I want to write a regular expression to remove all commas in a string of text.
    string is:
    1,000
    or 1,000,000
    I want it to return 1000 and 1000000.
    I have tried some but I am just starting with Regular Expressions.
    Please Help!

    Try this tutorial: Linux : Education : Tutorials
    Using regular expressions
    David Mertz
    President, Gnosis Software, Inc.
    September 2000
    http://www-105.ibm.com/developerworks/education.nsf/linux-onlinecourse-bytitle/6C2B4863702F592B8625696200589C5B?OpenDocument

Maybe you are looking for