To List the Date in Words

hi mates
i need to get the date from the user and display the date in words. without using any FM.
can any one guide me. thanks in advance.
regards
mano
Edited by: manoj murugesan on Mar 20, 2008 3:11 PM

here you go
DATA:
  day_spelt(255),
  year_spelt(255).
DATA:
  date_suf(2),
  year_stuf LIKE spell,
  dt_w_suff(4),
  out(100),
  month(15),
  it_month LIKE STANDARD TABLE OF month.
DATA ldate(20).
PARAMETERS: my_date LIKE sy-datum DEFAULT sy-datum.
START-OF-SELECTION.
  PERFORM build_month.
  READ TABLE it_month INTO month INDEX my_date+4(2).
  PERFORM make_day_words  USING my_date+6(2) day_spelt.
  PERFORM make_year_words USING my_date(4) year_spelt.
  CONCATENATE year_spelt month day_spelt INTO out
    SEPARATED BY space.
  WRITE:/ out.
*&      Form  make_year_words
FORM make_year_words USING    p_year
                              p_spelt.
  DATA:
    cent_word(40),
    tens_word(40),
    unit_word(40).
  DATA:
    BEGIN OF year_rec,
      thou,
      hund,
      tens,
      unit,
    END OF year_rec.
  year_rec = p_year.
  CASE year_rec-tens.
    WHEN  '0'.
      IF year_rec-unit = '0'.
        CLEAR tens_word.
      ELSE.
        tens_word = 'and'.
      ENDIF.
    WHEN  '1'.
      CASE year_rec-unit.
        WHEN '0'. tens_word = 'Ten'.
        WHEN '1'. tens_word = 'Eleven'.
        WHEN '2'. tens_word = 'Twelve'.
        WHEN '3'. tens_word = 'Thirteen'.
        WHEN '4'. tens_word = 'Fourteen'.
        WHEN '5'. tens_word = 'Fifteen'.
        WHEN '6'. tens_word = 'Sixteen'.
        WHEN '7'. tens_word = 'Seventeen'.
        WHEN '8'. tens_word = 'Eighteen'.
        WHEN '9'. tens_word = 'Nineteen'.
      ENDCASE.
    WHEN '2'. tens_word = 'Twenty'.
    WHEN '3'. tens_word = 'Thirty'.
    WHEN '4'. tens_word = 'Forty'.
    WHEN '5'. tens_word = 'Fifty'.
    WHEN '6'. tens_word = 'Sixty'.
    WHEN '7'. tens_word = 'Seventy'.
    WHEN '8'. tens_word = 'Eighty'.
    WHEN '9'. tens_word = 'Ninety'.
  ENDCASE.
  IF year_rec-tens NE '1'.
    CASE year_rec-unit.
      WHEN '1'. unit_word = 'One'.
      WHEN '2'. unit_word = 'Two'.
      WHEN '3'. unit_word = 'Three'.
      WHEN '4'. unit_word = 'Four'.
      WHEN '5'. unit_word = 'Five'.
      WHEN '6'. unit_word = 'Six'.
      WHEN '7'. unit_word = 'Seven'.
      WHEN '8'. unit_word = 'Eight'.
      WHEN '9'. unit_word = 'Nine'.
    ENDCASE.
  ENDIF.
  CASE year_rec-hund.
    WHEN '0'.
      cent_word = 'Two Thousand'.
    WHEN '1'.
      cent_word = 'Twenty One Hundred'.
    WHEN '9'.
      cent_word = 'Nineteen Hundred'.
    WHEN '8'.
      cent_word = 'Eighteen Hundred'.
  ENDCASE.
  CONCATENATE cent_word tens_word INTO p_spelt
    SEPARATED BY space.
  IF NOT unit_word IS INITIAL.
    CONCATENATE p_spelt unit_word INTO p_spelt
      SEPARATED BY space.
  ENDIF.
ENDFORM.                    " make_year_words
*&      Form  make_day_words
FORM make_day_words USING    p_day
                             p_day_spelt.
  DATA: wk_word(20).
  CASE p_day(1).
    WHEN  '1'.
      CASE p_day+1(1).
        WHEN '0'. p_day_spelt = 'Ten'.
        WHEN '1'. p_day_spelt = 'Eleven'.
        WHEN '2'. p_day_spelt = 'Twelve'.
        WHEN '3'. p_day_spelt = 'Thirteen'.
        WHEN '4'. p_day_spelt = 'Fourteen'.
        WHEN '5'. p_day_spelt = 'Fifteen'.
        WHEN '6'. p_day_spelt = 'Sixteen'.
        WHEN '7'. p_day_spelt = 'Seventeen'.
        WHEN '8'. p_day_spelt = 'Eighteen'.
        WHEN '9'. p_day_spelt = 'Nineteen'.
      ENDCASE.
      EXIT.
    WHEN OTHERS.
      CASE p_day+1(1).
        WHEN '1'. p_day_spelt = 'First'.
        WHEN '2'. p_day_spelt = 'Second'.
        WHEN '3'. p_day_spelt = 'Third'.
        WHEN '4'. p_day_spelt = 'Fouth'.
        WHEN '5'. p_day_spelt = 'Fifth'.
        WHEN '6'. p_day_spelt = 'Sixth'.
        WHEN '7'. p_day_spelt = 'Seventh'.
        WHEN '8'. p_day_spelt = 'Eighth'.
        WHEN '9'. p_day_spelt = 'Nineth'.
        WHEN '0'. CLEAR p_day_spelt.
      ENDCASE.
  ENDCASE.
  CASE p_day(1).
    WHEN '0'. EXIT.
    WHEN '2'. wk_word = 'Twenty'.
    WHEN '3'. wk_word = 'Thrity'.
  ENDCASE.
  CONCATENATE wk_word p_day_spelt INTO p_day_spelt
    SEPARATED BY space.
ENDFORM.                    " make_day_words
*&      Form  build_month
FORM build_month.
  month = 'Janurary'. APPEND month TO it_month.
  month = 'Feburary'. APPEND month TO it_month.
  month = 'March'. APPEND month TO it_month.
  month = 'April'. APPEND month TO it_month.
  month = 'May'. APPEND month TO it_month.
  month = 'June'. APPEND month TO it_month.
  month = 'July'. APPEND month TO it_month.
  month = 'August'. APPEND month TO it_month.
  month = 'September'. APPEND month TO it_month.
  month = 'October'. APPEND month TO it_month.
  month = 'November'. APPEND month TO it_month.
  month = 'December'. APPEND month TO it_month.
ENDFORM.                    " build_month

Similar Messages

  • Is there any vi or possibility to find the hole dates in an directory and to list the data-pfads as a string?

    is there any vi or possibility to find the hole dates in an directory and to list the data-pfads as a string?
    like in windows a search-funtion?
    I have found one VI, it list the data in the directory self (the pfad from the data as string) but not the data in an under-directory. it also has the funktion to list me the under-directory but it do not list the complite data in every directory
    can somebody help me pleace
    THX

    Hallo Chef,
    unter LV8.21 befindet sich die beschriebene Funktion in der File-Palette:
    Dummerweise gibt es die Funktion in LV8 noch nicht... (Deshalb ist es immer eine gute Idee zu sagen, mit welcher LV-Verson man arbeitet!)
    Du kannst aber unter vi.lib/utility/RecursiveDirList.llb nachschauen, wie es gemacht wird
    Message Edited by GerdW on 08-17-2007 11:17 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    AdvFileFunc.png ‏10 KB

  • How can I display the date a word document was last modified on my web page?

    I have lists of links to word documents on my web pages. I
    want to be able to show the date the word document was last
    modified next to each link. My pages are straight html.
    Thanks.

    >but I would have to go to each individual file (I have
    hundreds) and put this code on each link.
    No, you can use the FileSystemObject to get a list of the
    files in the directory. See if you can adapt this for your site:
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    <%
    Function FormatSize(SizeInBytes)
    if SizeInBytes > 1024^2 then
    FormatSize = formatnumber(SizeInBytes / 1024^2,2) & "
    MB"
    elseif SizeInBytes > 1024 then
    FormatSize = formatnumber(SizeInBytes / 1024,2) & " KB"
    else
    FormatSize = SizeInBytes & " Bytes"
    end if
    end function
    %>
    <%
    dim parts
    dim part
    dim BrowseLine
    dim RelLink
    dim i
    url = Request.ServerVariables("URL")
    Parts = split(URL,"/")
    for part = 1 to ubound(Parts)-1
    ' calc link
    RelLink = ""
    for i = 1 to ubound(Parts) - part - 1
    RelLink = RelLink & "..\"
    next
    If trim(BrowseLine) <> "" then
    BrowseLine = BrowseLine & "/"
    end if
    BrowseLine = BrowseLine & "<A href=" & RelLink
    & ">" & parts(part) & "</A>"
    next
    ' add "back" link
    BrowseLine = Browseline & "  " &
    "<A href='javascript:history.back();'><img
    src='/images/return.gif' border=0></A>"
    Response.Write "<P class = 'NavTop'>" & BrowseLine
    & "</P>"
    Dim fso
    set fso = server.CreateObject("Scripting.fileSystemObject")
    dim fldr
    dim fle
    %>
    <a href="../index.asp"><img
    src="../images/leftbanner.jpg" width="343" height="70"
    border="0"></a>
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    </p>
    <p></p>
    <table width="85%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <th width="63%"><div
    align="left">   Document
    Name</div></th>
    <th width="14%">Size</th>
    <th width="23%"><div
    align="left">  Date</div></th>
    </tr>
    <%
    ' display folders
    for each fldr in
    fso.GetFolder(server.MapPath(".")).SubFolders
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    fldr.Name %>'><img src="/images/folder.gif" border=0>
    <%= fldr.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fldr.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fldr.DateLastModified,2)
    %></div></td>
    </tr>
    <%
    next
    %>
    <%
    ' display files
    for each fle in fso.GetFolder(server.MapPath(".")).Files
    dim ext
    ext = fso.GetExtensionName(fle.path)
    if (ext <> "asp") and (ext <> "scc") then
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    escape(fle.Name) %>'><img src="/images/file.gif"
    width="14" height="16" border=0>
    <%= fle.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fle.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fle.DateLastModified,2) %></div></td>
    </tr>
    <%
    end if
    next
    Set fso = Nothing
    Set fle = Nothing
    Set fldr = Nothing
    %>
    </table>
    <p><a href="/index.asp">Return to Home
    Page</a></p>

  • How to post the data into word file

    Dear Forums
    I am a user of jDeveloper
    and working on jclient\swing.
    The problem is that i want to post\Transfer data to a formatted word file. In word file there is a same table containing same contents as jtable. Now after selection of a particular row \column the data of that row\column transferred to word file table.
    i have no idea about it.
    Help me for the Same
    thnkx.

    hi,
    I don't think the Javaworld stuff is needed in any case since ctrl c and ctrl v wor very fine. My problem is diffent. I want to copy paste using a mouse. I am using a Mouse Adapter with my table and using the DefaultEditorKit.copyAction() class as my action. But this does not work.. seems its not copying the data to the clipboard. But this migght be cause it works only with JTextComponent ?!
    Can you please tell me how to go about it.
    regards,
    Sumit.

  • Generating annual report and list the data into JTable

    Hi, I am stuck with my project. I know that my logic is wrong, but I couldn't figure out the solution. Please help me.
    I hava a database, one of the table is the booking information.
    I need to generate a report which shows the number of booking for each companies for each month.
    I have three data in my database, two different companies(XX and YY), with three different months(Jan, Feb, Jul).
    The problem that I encountered is that the data shown is inaccurate. It showed 6 rows of data, and the number of booking is incorrect.
    It showed :
    Company Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
    XX 1 0 0 0 0 0 0 0 0 0 0 0
    XX 1 1 0 0 0 0 0 0 0 0 0 0
    YY 1 1 0 0 0 0 1 0 0 0 0 0
    How can I loop for different companies and add the number of booking each time and get the right output as follows?
    Company Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
    XX 1 1 0 0 0 0 0 0 0 0 0 0
    YY 0 0 0 0 0 0 1 0 0 0 0 0
    This is my partial code:
    ArrayList stringList = dao.retrieveAllBooking();
    for (int i = 0; i < stringList.size(); i++) {
    ab = (AllBooking) stringList.get(i);
    d = ab.getDATE_OF_USE_TO();
    StringTokenizer ss = new StringTokenizer((String) d, "/");
    String day = ss.nextToken();
    String month = ss.nextToken();
    String year = ss.nextToken();
    Org = o.getORG_ID();
    if(month.equals("JAN")){
    JanDR++;
    if(month.equals("FEB")){
    FebDR++;
    if(month.equals("MAR")){
    MarDR++;
    if(month.equals("APR")){
    // Apr = ab.getNO_OF_REQ();
    AprDR++;
    if(month.equals("MAY")){
    //MayDR = ab.getNO_OF_REQ();
    MayDR++;
    if(month.equals("JUN")){
    // Jun = ab.getNO_OF_REQ();
    JunDR++;
    if(month.equals("JUL")){                               
    JulDR++;
    if(month.equals("AUG")){
    AugDR++;
    if(month.equals("SEP")){
    SepDR++;
    if(month.equals("OCT")){
    OctDR++;
    if(month.equals("NOV")){
    NovDR++;
    if(month.equals("DEC")){
    DecDR++;
    Object[] data={Org,JanDR, FebDR, MarDR, AprDR, MayDR, JunDR, JulDR, AugDR, SepDR, OctDR, NovDR, DecDR, JanSR, FebSR, MarSR, AprSR, MaySR, JunSR, JulSR, AugSR, SepSR, OctSR, NovSR, DecSR};
    tableModel.addRow(data); //add the data to the table.
    I'll appreciate for your help. Thanks.

    Off hand, it appears perhaps under certain circumstances you need to insert a new record, whereas under other circumstances you need to update (that is to say modify) the record by retrieving it, changing it, then updating it. If you pepper your code with System.out.println() statements, you can see where your problems occur in the code.
    I say you may have inserted a record instead of updated due to your statement here. Looks like XX should have been one record rather than two.
    Got:
    XX 1 0 0 0 0 0 0 0 0 0 0 0
    XX 1 1 0 0 0 0 0 0 0 0 0 0
    YY 1 1 0 0 0 0 1 0 0 0 0 0
    Expected:
    XX 1 1 0 0 0 0 0 0 0 0 0 0
    YY 0 0 0 0 0 0 1 0 0 0 0 0

  • Listing the Data of two tables to do a DistinctCount

    Post Author: Judith
    CA Forum: Formula
    Hi there,
    I feel really daft, when I am looking at the other entries. It makes me very new to the entire surrounding. I have been working on Crystal Reports for two weeks now and I haven't got an inkling of what I am doing. I would very much appreciate some help:
    I have peoples' names in two lists and I would like to do a distinct count as if it was one list...
    Can't be that difficult, but I haven't figured out, how it is done. Can anyone help?
    Judith

    Post Author: Judith
    CA Forum: Formula
    Hi there, they are Names Lists coming from the same Excel Sheet. Names A and Names B. They contain the same names though and I just want to treat them as if they were one list. If I do {Item 1} & {Item 2} it simply seems to place them next to each other as in
    Tom AlexFiona Tom
    but not as one list like e.g.
    TomAlexFionaTom
    So if I would like to see a distictcount, it looks at distinct pairs and not the number of distinct names.
    Thanks a lot for your help!
    Judith

  • ICal changes the date in to do list

    Hi,
    I am hoping that someone can help me - it's not a big problem, but quite irritating. When I create an event in my iCal and then drag it to the to do list, after a while the to do list changes the date.
    F e I have an exam on Saturday, i create the event in iCal, drag it to the to do list, and first its says "Saturday" but after a while, it changes to Friday. I delete the whole event, but it keeps on happening, and its pretty annoying.
    My computer is not even 1 year old, but I'm having small issues like this already. My screen goes from grey to blue-ish once in a while too, but that's another story...
    Hoping that someone can help me figure out what's going on...
    Have a nice day,
    Stella

    Thanks for your reply John. I didn't get the notice that you replied until I searched again now for a solution. I figured out what cases the date change. When the iCal event that is typed into the calendar has a time that is later than the current TIME (which it always is by default because it rounds up to the next hour), and that event is then dragged into the To-Do list, the date is increased by one (as displayed when you double-click the event in the To-Do list. However, the day of the week and date listed in the ACTUAL To-Do list is correct until at least a day passes.
    If I manually adjust the event from time rounding down to the nearest hour it always shows the correct date when double-clicking in the To-Do list.
    This is quite confusing to explain but it is clear something is not working as it is supposed to if I can make it work by simply subtracting an hour to the event at the time I create it. Is there a fix for this or do I just need to manually set the time back for every event I create by an hour to get it to work correctly?

  • Best way to check the data

    I have a made some changes to an existing view. The change is adding a join and a new column from new table. I have created a version2 with all these changes. I want to make sure that same data exists in both the views. what is the best way to test the data.

    Bad wording, the query results could be:
    No rows selected. Same number of rows on both views and same data (considering view1 structure and view without the new column)
    At least one row selected. If the count(*) on both was different, rows returned will be at least the difference. If the count was the same, then every returned row means that there's no equivalent row on view2 and a data difference may exist in at least one of the fields, so You have to find the equivalent row on view2 to compare.
    On the query sintaxis, as view2 hava a new column and I guess it's not a constant value, You have to specify every column for the view1, and the same columns for view2, so new field isn't included and compared.

  • BI Publisher 10g - Limit to the size of the data model?

    Hello,
    We are using OBIEE 10g 10.1.3.4.1 in our organization and have a problem when working on a large report in BI Publisher. It seems that once our data model gets large enough, we are no longer able to edit the report. When we click on the Edit link to load the report editor, the side menu that lists the data model, parameters, bursting, etc does not load, preventing us from making any changes to the report.
    At first we thought it was a timeout issue and changed the following:
    $J2EE_HOME/applications/xmlpserver/xmlpserver/js/XDOReportModel.js
    Property name : XDOReportModel.TIMEOUTMSEC
    set value in Milli seconds as " XDOReportModel.TIMEOUTMSEC = 15000
    After making the change and restarting the services, it did not help. Is there a different place for the timeout of loading the report editor? What about some kind of cap to the size of the data model? We have one large data template that is used to generate a report. I tried breaking the large data set into multiple, smaller data sets (still using data tempalte) and that didn't seem to help any. Is there a limit the size of the data model BI Publisher can return?
    Any help would be greatly appreciated! Thanks!

    Hello,
    I think you should create a recordStore with RMS and use it like a string array. You can store huge amount of data and the time access when request data from recordStore is very similar as if it is store on the RAM memory with recent devices.
    And if it is not persistent data you can delete the recordStore when closing the midlet.

  • I want to customise the printed header to show the date but not the time. Is there a list of control words available to the custom header function?

    The Date/Time option for header set-up shows both date and time. I only want to show the date

    Not related to your question, but you are running an extremely old and out of date version of Firefox that is no longer supported or maintained and thus is vulnerable to many security holes. You should update to Firefox 14 immediately. [[Update Firefox to the latest version]]

  • SharePoint 2013 List - Multiple Data Types in the Same List

    In the same SharePoint 2013 list in Data Sheet View, I want to have one column where my end users enter inputs for KPIs. There are 3 groups of KPIs (A, B and C) and they each have different data types (A-string, B-decimal, C-percentage) and I want to be
    able to base their input options off of the KPI type
    Does anyone have any suggestions on how I can leverage my parent-child relationships so when an end user...
    1. Picks KPI type A, they can select from a choice filed (Green, Yellow, Red)
    2. Picks KPI Type B, they can enter a decimal (-1.000 to 2.000)
    3. Picks KPI Type C, they can enter a percentage (-100.00% to 100.00%
    I'm using if I want to keep this in one list, one column and in data sheet view that the out of the box solutions won't meet my requirements. I was looking at some solutions from Bamboo (Lookup Selector Column) but don't think that applies here.
    Thanks!
    Johnny

    Hi Johnny, you can accomplish this using cascading lookups in InfoPath if that program is available to you. Otherwise, if you want a 3rd party product, we use the Kwiz cascading lookup and it's worked wonders for us:
    http://www.kwizcom.com/sharepoint-add-ons/sharepoint-cascading-lookup-plus/overview/
    Note: I have no relationship with Kwiz, just vouching for the product.
    cameron rautmann

  • "Word was unable to open the data source" error message in mail merge

    I am trying to do a mail merge in Word 2008 for Mac and receive this message when I try to open the Excel file for the data.  Can someone please help?  I tried changing the filename to .xls (originally .xlsx) but it didn't work.

    As far as I know, you cannot merge from a  .xlsx data source in Mac Word 2008, and even though there is a KnowledgeBase article at  http://support.microsoft.com/kb/2604725 that suggests
    that all you have to do is "rename" to a .xls, I think what you actually have to do is open the .xlsx in Excel and use Save As to create a .xls.
    Generally speaking, you will be better off researching Mac Word questions in the relevant forum on Microsoft Answers, in this case here: http://answers.microsoft.com/en-us/mac/forum/macoffice2008-macword
    This particular issue was discussed in this conversation: http://answers.microsoft.com/en-us/mac/forum/macoffice2008-macword/cant-open-excel-file-for-mail-merge/90ccfd11-273f-4c2a-aa37-1d859b8e41e2?page=1
    If that does not help, and you cannot find anything else in the Answers group, I suggest that you post a new question in that group, referencing the above conversation and specifying your version of Mac OSX.
    Peter Jamieson

  • Obtaining the list of data interfaced out of SAP HCM

    Hello,
    we got a good challenge from our partners in the business organization that we support. The Data Privacy officer on the business partner side would like to know:
    - what other systems are "takers" of the data from our SAP HCM instance
    - what data pieces (what tables, fields...) are being interfaced out
    - what is the frequency of that
    We are trying to maintain the document whenever a new interface is being built but in practice you know how it looks like.In order to have 100% confidence in the anwser I would want to pull such list from the system. Is there a way to do that? What would you suggest?
    Regards,
    Pawel

    Try the function below, pass the item name and get the Data provider for that particular item, you will have to do this for all the items in the template.
    function getDPName(item){
         prop = SAPBWGetItemProp(item);
         var tableHidden=true;
         if (prop != null){
           for(i=1;i<prop.length;i++){
             if (prop<i>[0] == "DATA_PROVIDER")
                   return prop<i>[1]
           }//end for
         }//end if
    }//end function
    Thanks.

  • How to filter the list of data

    I am using af:inputComboboxListOfValues to display drop down list of data. The list is binded to a LOV.
    I have a requirement that if the value is used in other place, I should not get it listed on the drop down list. I research doc that it let me use "launchPopupListener" to filter the list of data. As a test code, I coded like this:
    public void launchListener(LaunchPopupEvent launchPopupEvent) {
    // Add event code here...
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("PersonVO1Iterator");
    dcItteratorBindings.getViewObject().setWhereClause("PersonEO.FIRST_NAME <> 'John'");
    dcItteratorBindings.getViewObject().executeQuery();
    But it does not work. It seems that 'John' is removed from VO but doesn't removed from UI combo box drop down list.
    What can I do to fix it?
    JDev Version 11.1.1.6.0
    Thanks.
    帖子经 954727编辑过

    Morris Li,
    Welcome to the ADF Forum. Have you looked into whether the PartialTriggers for the ui combo box have been set.
    This article may also assist: "Building model driven dependent list with Oracle ADF BC"
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2011-otn-harvest-351896.pdf
    and this http://docs.oracle.com/cd/E16764_01/web.1111/b31973/af_ppr.htm#BGBIIDBF
    Stuart

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

Maybe you are looking for

  • Error when calling procedure from form personalization

    Hi every body I want to call a procudre using form personalization . I made the procedure and in form personalization i call it as follow: built in type : Execute a Procedure Argument : ='GAZ_EMP_ASSIGN_UPDATE(' || :ASSGT.ORGANIZATION_ID || ', ' || :

  • Can't sign out - even after deleting the app every...

    Hi, I have skype on my iPad mini, iPhone 5 and Macbook pro. The other night I realized I was getting skype notifications on my phone, even though I wasn't signed in there. I deleted the app from there (after signing in and out and failing to get anyw

  • JPG files become corrupt after Exporting in LR 3

    Does anyone have any idea what would cause my JPG files to be corrupt after I export my edited Raw images in LR3?  There are no problems with the Raw file, but once I edit them, apply what ever settings to them in LR I need, I export them as JPG to t

  • AirPort Express Cannot Join Network

    Hello all, I've tried searching and can't find this exact issue; please forgive me it's a dup. I just purchased an AirPort Express to use with several Windows XP machines for AirTunes and printer sharing. I already have wifi set up using a 2Wire 270H

  • CRM 2007 - Customer Fact Sheet

    Hi Gurus, i've been looking for customer fact sheet screen but can't find any in the standard account master screen in CRM 2007. any help really appreciated JD