How can I retain lefthand zeros as placeholders in LV?

I want to add two numbers, but need to retain zeros on the left for place holders. for example:
0000000123
0000060000
0000060123
The arithimetic 'add' function drops the lefthand zeros and I can't figure out a way to add two strings.
Note - I tried adding an additional lefthand '1' just as a place holder, like this:
10000000123
10000060000
20000060123
then converting the number into a string and truncating the extra '2', but for some reason I can't seem to add numbers this large. Any suggestions?

Dennis, I'm actually using the large number as a time code. I'm trying to build a generic timer where the user can enter in a length of run-time. Months, days, hours, minutes, seconds. I'm trying to use a number that the user generates by entering in the length of run time (for instance: 4 months, 7 days, 8 hours, 30 minutes looks like: 04070830) and adding that number to the system time formatted in the same way. (--- this is where I was having the problem with adding numbers with lefthand zeros)
I'm trying to use this method so that the vi will be generic and totally independant of the point in time when the vi is called. Attached is my code so far if you're at all interested (keep in mind this is a work in progress and I am a complete newby at programming).
This started as a very simple sub-vi until I decided to make it as generic as possible. The difficult thing is trying to match the system clock. What if someone sets the run-time to run 9 hours overnight? After 23:59 hours the clock resets to 0100 and the day increments by one. Same problem if the vi happens to be running on the last day of the month or the last day of the year.
Oh well - once I get it debugged it should be truly generic and I can use it in any number of different applications.
- Paul
Attachments:
set time to trigger-mod 8-16-05.vi ‏146 KB

Similar Messages

  • How can i retain the trailing zeroes after decimal

    how can i retain the trailling zeros after decimal?
    values are showing in table like( 4.50,5.00) but i am trying to do some processing with these values then ithe zeroes are truncated like (4.5,5),
    how can i get values with zeroes

    If the values in the table have trailing zeroes, it's a character type column.
    Once you perform operations on them, they're implicitely converted to the number type, hence "losing" trailing zeroes.
    To get the trailing zeroes back, you have to convert them back to character data:
    TO_CHAR(1.5*3, '90d99')Have fun,
    K.

  • How can I retain hyperlinks while saving a webpage as PDF via Print?

    How can I retain hyperlinks while saving a webpage as PDF via Print?
    This is the title of an apple forum question, and it is a bug in both Safari 5.1.3 and under, and I find it to also occur in Firefox browser (at least 9.* 10.*, 11.0), running on Lion OS (10.7.2, 10.7.3). See:
    https://discussions.apple.com/thread/3212301?start=0&tstart=0
    Under the newer Mac OS mentioned, and Firefox 10.2, 11.0, 9.*, if I select:
    File -> Print -> PDF -> Open PDF in Preview"
    (and view / save the PDF in Preview, you will see none of the links in the original web page are active
    or using
    File -> Print -> PDF -> Save as PDF...
    same problem. Try this using any Wikipedia page, for example.
    When this problem was posed in Apple forums, by a user of the Safari browser, it was found to be a bug (since Aug 2011) fixed in a Safari browser build 5.1.4 circa Jan 2012. I tried the newer Safari browser and sure enough the problem went away (except that links embedded in the PDF no longer appeared as blue text - ARGH - but "hover over" with the cursor showed the link and clicking the link in Preview viewer activated the link in a browser window).
    So I post this to the Mozilla community, please fix this 'cause I don't want to have to switch over to Safari browser every time I want to archive a PDF with active links!!!!
    P.S. I did a spot-check and with the newer add-on Enjoy Reading 1.0.1 and FF11.0. When the Enjoy reading formatted version appears in the browser window, all URLs/links are preserved and highlighted in blue, but when I print that browser window as PDF, the links are dead (don't work) even though they appear in blue in the PDF.
    So, what's going on, can the Safari fix be researched and applied to FF?
    Also, on some forums, people are responding, Well, try installing Acrobat reader. Well, I don't want to, Preview reader has worked fine for me for years.

    Thanks jscher2000.
    RE: -- '''Generally speaking, PDF converters that work by intercepting a print job do not have access to the URLs behind links in the page.''' --
    I cannot say I agree. I could email you a PDF clipping or two (generated from Safari on Mac OS, in its native capability with no add-ons) that shows you otherwise. When I used PC platforms I did have to install PDF converters (tried both free and expensive ones) that did what I describe.
    I cannot try the add-on you mention, '''Print Pages to Pdf.''' in Firefox. It shows in my browser and Mac OS platform "Not available for your platform." So I am guessing it was written for the PC version of Firefox.
    The Mac OS has had a native PDF-creation functionality for as many years as I have been using it; I used PC prior to that, Win3.1 through XP and NT. And on my PC, I bought (and at work, my employer bought $$$, I had to justify three levels up to management the ability to create PDFs on my work PC) some Adobe functionality to CREATE pdf's (readin's free and easy, makin' em's costly on the PC).
    I've gone and dug through some of my (Mac) doc and clipping archives, and I find that stuff I created after about Dec 2008 or so seems to eliminate all link functionality. When viewed in the Apple native "Preview" application (sort of Apple's equivalent to Adobe Acrobat reader, ships with the OS): link tags are highlighted/tinted, clicking a link opens a (default) browser and takes you there; hover-over the tag text shows the actual link. (Of course, not all old links are still VALID or point to the desired source.)
    I could, in Safari or FF browser window and with no add-ons or Adobe paid products whatsoever, use the native OS method to create PDF's from any application (word processor, spreadsheet, browser, etc) via the menu File -> Print -> Save as PDF menu and create a PDF that had active hyperlinks. In Apple OS Lion 10.7.3, I still can't when it uses this broken WebKit interface, links are "dead" as a doornail until a fix is distributed in WebKit for a future Lion release. It seems this functionality died at least as far back as Leopard OS 10.6.8, but don't quote me on that. Also, my version of Pages 2009 version 4.1(923) (sorta like Word) STILL creates a PDF document that preserves (1) text hyper-links within the document, and (2) web links (in the PDF) that open the browser. I just made a test document.
    When all you can see in the PDF is the tag text, there is nothing to copy-paste to follow any link. Also, hypertext links are often used by authors to create links to other points in a document: now even *that* is broken in the PDF version of the documents I retrieve from the web and print from FireFox (Broken in Safari 5.1.3 and earlier but fixed in 5.1.4).
    Try this on the PC, in your browser and print a news clipping as PDF, do the links in the PDF work? What products do this, and what don't? I would bet the machine with a full Adobe suite this will work flawlessly. (Why should a PC user have to pay hundreds of $ to create this functionality in what I thought was an open standard (PDF)? But that's talkin' religion, let's not start that.)
    Some folks might say,
    go online and find the original source doc in your browser. Or,
    go and add those links manually using the Preview edit add-link capability (hunh? no thanks) , or
    save each item worth saving as an HTML archive instead of a PDF (argh, creating a whole directory in the process, I might add, including ads). Or,
    who needs PDFs, everything is online.
    Or, buy some Adobe product.
    I think they miss my point. This is a real strange dumbing-down of archival PDF documents, or at least a destruction of the ability to use PDF as an archive that retains its links and references.
    C.F. the guy who has archives of scientific papers, and the old material all cross-references nicely but after date X there are no working links.

  • How can I retain two versions of my iPad backup in iTunes?

    HI,
    When I backup my iPad on iTunes, the previous backup is automatically deleted and a new back is created.
    How can I retain two versions of my iPad bacup in iTunes?
    Thanks, Ramani

    Backup the device. Immediately restore the backup. The restored backup is now archived and a new rolling backup set is created. You can repeat as needed and clear older backups from Edit > Preferences > Devices.
    tt2

  • How Can i retain the Shared Variable Values after PC rebooting

    Hi all,
    I am facing a paculiar problem with Shared Variables. I have an application in which shared variables are used for data communication.
    One of the application requirement is to retain the variable values eventhough PC is rebooted or started after crashing. 
    As per the my understanding, the variable values will retain eventhough the PC is rebooted. But here i can observe a paculiar problem like some library variables are retaing the values while some others not. I enabled logging for all the variables.
    I tried many ways. like logging enabled, logging disabled, changing variable names, changing process names etc... But i am not getting a consistent behaviour.
    I hope some you can help me in solving this issue.. "How Can i retain the Shared Variable Values after PC rebooting"
    Thanks and Regards,
    Mir

    Hi Blackperl,
    Thanks for the post and I hope your well. 
    What do you mean by not getting consistent behaviour.. this will all depend on excatly when the crash happens i.e. before the write or after. 
    Surely a better method would be to log the data to a file during the reboot...
    I beleived the value read back
    will be the default value for the shared variable's data type.
    The LabVIEW DSC 8.0 module adds more functionality to the shared variable, including initial values and alarms.
    If you enable an initial value on a shared variable, when the variable
    engine comes back on-line it will default to this value. Setting a bad
    status alarm for the shared variable is also a good way of handling
    this type of event. Additionally, if you are using a LabVIEW Real-Time
    target such as Compact RIO or Compact FieldPoint, it is appropriate to
    consider hosting the shared variable engine on the real-time target.
    These devices have watch-dog capabilities and are typically the
    hardware controlling the critical pieces of an application. Most
    Windows or PC-based targets do not have these fail-safes.
    I guess, if you could explain to me again that would be great. From my point of view, if I have a cRIO and a Windows PC. If the windows PC crashes, the cRIO will still update its shared variables. Then once the PC has started up its own shared variable engine, and the bindings are loaded, it will once again continue to update its copies of the variables.
    Please let me know what you think,
    Kind Regards,
    James.
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • How can I retain the original quality of a photo when sending it by email.At the moment if I drag them in to the email from iphoto the image quality reduces.

    When I add photos to an email by dragging them in from iphoto the quality of the photos reduce.
    How can I retain the original quality.
    Philip

    When I add photos to an email by dragging them in from iphoto the quality of the photos reduce.
    Philip, dragging from iPhoto will export previews of the image, not the original high resolution image. To export higher quality versions from iPhoto don't drag, but use "File > Export"
    You can also mail your photo directly from within iPhoto using "Share > Email" and set the "Size" to "Actual Size (Full Quality)"
    Regards
    Léonie

  • I wrote a assignment in the microsoft word 97-2003 doc but by mistake replace in the same name but with different thing . how can i retain my orinal file which was as Basel III and Banking law

    i wrote a assignment of almost 2500 words in the microsoft word 97-2003 doc but by mistake replace  a table only in same name  . how can i retain my orinal file which was as Basel III and Banking law

    Hey Christian
    Thanks I havn't seen that post, busy trying it now but no luck so far.
    I defined it in the second one (Content Management - Utilities - MIME Types).
    Tried it now in NWA, no luck either . . .
    What I noticed is no matted what it is defined as in NWA or Content Management, the properties of the mht file still shows Binary File (application/octet-stream)
    Any ideas?
    Regards
    Antonette

  • We can't export as .m2ts files?? how can i retain full quality?

    so we can import .m2ts files into CS4, we can edit them in CS4, but we can't export them out of CS4?
    how can I retain full quality?

    i see, well i have the hdr-sr12. you can export to h264 blu-ray, then do the following - NTSC, 1920x1080, framerate(mostly you would want 29.97), Field order: UPPER, Profile: HIGH, LEVEL 4.0, VBR-2-pass: 16mbps target rate with max of 18mbps. After that, export and see how it looks like on VLC or windows media player.

  • How can I retain my counter button after editing page?

    How can I retain the numberon my counter button after I have change information on my welcome page?

    Since MobileMe will be discontinued on June 12, 2012, and with it the following features:
    Features Unavailable When Publishing to a Non-Mac Server:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ RSS Feed Widget
    you might get ahead of the curve and use a 3rd party counter.  There are many counters that will give you much more than just the number of visitors and can be setup to not count your visits. I use  StatCounter which gives the following info on visitors:
    Click to view full size
    This tutorial describes how to add the counter using an HTML snippet: #13 - Adding a StatCounter as an HTML Snippet. 
    OT

  • I wrote an 2500 words assignment and saved in Microsoft word 97-2003 and by mistake replaced with another word file.How can i retain my original work?

    I wrote an 2500 words assignment and saved in Microsoft word 97-2003 and by mistake replaced with another word file.How can i retain my original work? 

    Hi,
    Does this happen to all 97-2003 Word files?
    Word 2013 now has lots of updates compared with earlier version of Word, lots of features have been updated. Use Word 2013 to open documents created in earlier versions of Word (Word 97-2003 format), you will probably encounter unexpected problems,
    expecially for those heavily formatted files.
    We would suggest you to convert your document to the Word 2013 file format, then you will be able to access the new and enhanced features in Word 2013.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How can i avoid leading zeros for a field in smartform?

    how can i avoid leading zeros for a field in smartform?

    Hi,
    Using the Symbols.
    &symbol(Z)&  Omit Leading Zeros  &symbol(S)&  Omit Leading Sign 
    &symbol(<)&  Display Leading Sign to the Left 
    &symbol(>)&  Display Leading Sign to the Right 
    &symbol(C)&  Compress Spaces 
    &symbol(.N)&  Display upto N decimal places 
    &symbol(T)&  Omit thousands separator 
    &symbol(R)&  Right justified 
    &symbol(I)&  Suppress output of the initial value 
    Regards,
    Shiva Kumar

  • How can i retain rss in safari mavericks

    how can i retain rss mavericks in safari

    roqmoninoff wrote:
    how can i retain rss mavericks in safari
    How can I retain RSS in Safari  ver. 7.0 with the new Mavericks OS X 10.9 ?
    This is not possible. Move on.
    You need a RSS feed reader there are many, ex: http://netnewswireapp.com/

  • How can I retain thumbnails in viewer preferences?

    I want to know how can I retain the thumbnails in the viewer so every time a document is open the thumbnails show up.

    Hi,
    Please take a look at this forum post for a similar discussion : Hello, I'd like to either randomize size of my thumbnails or simply have 2 different sized thumbnails in one portfolio. Thank you!
    Regards,
    Aish

  • How can we supress leading zeros?

    how can we supress leading zeros?

    use
    <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>
    Conversion exit ALPHA, external->internal
    ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.
    Example:
    (Input field and output field are both eight characters in length)
    1. '1234 ' --> '00001234'
    2. 'ABCD ' --> 'ABCD '
    3. ' 1234 ' --> '00001234'
    Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.
    Usage:
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = v_input
    importing
    output = v_output
    exceptions
    others = 1.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • HT1373 I bought an ipod nano 5th gen and it came with 900 songs on it. How can i retain the music before i authorize this unit to my itunes account? It says it will erase all content once I sync with my imac7. Is there anyway to keep the music??? please h

    I bought a used ipod nano 5th gen and it came with 900 songs on it. How can i transfer, sync, and retain the music before i authorize this unit to my itunes account? It says it will erase all content once I sync with my imac7. Is there anyway to keep the music??? please help!!
    Thanks,
    Aaron

    The music does not belong to you.  You have no legal right to it and there is no way to keep it.
    Sorry

Maybe you are looking for

  • About SAPCAR

    Hi guys , Iam working on SAP 4.6C, Oracle 9.2.0.5, Windows 2003 server. I want to do a Kernel Upgrade to my system as it hasnt been done since long time. Our SAP Kernel Release 46D with Support Package Level 1674. But i heard that before performing t

  • The only Quick time that I could download on my iPad is 7.6 ? There is none for free?

    I'am unable to find ( as on PC) a quick time to download for free. It's mandatory to buy the Quick time 7.6 at 30€?

  • Strange Keyboard Behaviour: Function Keys F1-F10 not accessable

    I noticed couple a days ago that function Keys F1-F10 not accessable, neither with nor without fn. Nothing special has been made lately on PowerBook, some days ago tested Universal Access. What could keep F1-F10 disabled? BTW F11 and F12 are fully fu

  • Bex report values are changing

    Hi experts, In the cube we are having a qty field value as 0.652, but in the bex report it is showing as 1. And if the value is 0.4152 it is showing as 0. How to get the exact values those are 0.652 and 0.4152 to the bex reports. Regards, Nishuv.

  • Fonts -   greek and roumainian fonts

    I have a problem in copying a text (pdf) into a .doc document in Greek and roumainian. In french, english, dutch, even gaëlic there is no problem. Why do I in greek and roumanian ? Thanks for some tips and help