While loop does not execute

I wish to write a text file that is tab separated for viewing in UNIX, however the tab character provided in Labview is read as a ^M in the UNIX file and in notepad. If you have any suggestions, they would be appreciate

In article <506500000008000000206F0000-1042324653000@exchange​.ni.com>,
"smd169" wrote:
> I wish to write a text file that is tab separated for viewing in UNIX,
> however the tab character provided in Labview is read as a ^M in the
> UNIX file and in notepad. If you have any suggestions, they would be
> appreciate
When I write a tab delimited file on my Linux box I just get tabs. The
only time I see the ^M is when I use a carriage return instead of a tab.
To suppress the ^M in Linux I've been told to use line feeds or the combo,
carriage return/line feed. I tried it and it works. Sorry if this
doesn't answer your question. Perhaps results are different on a pure
Unix system? Maybe it's the text viewer... I used less and joe to verify
my results
-Kevin

Similar Messages

  • For Loop Will Not Execute

    I have been a software engineer for a number of years now, and thus far I have never come across any coding issues that truly merit a post such as this. Someone has almost always run across the issue before, so there is no need to reinvent the wheel, or solution as it were.
    However, a number of times I have run across instances where the JRE simply... does not execute parts of my code, and throws no exceptions.
    The sample code is a simple logging application, watered down to the bare minimum for the purposes of this forum:
    public class Log {
    public static void main(String[] args)    {Log log = new Log();}
    public Log() {Logger.log("Hello World");}
    import java.util.*;*
    import java.io.*;
    import java.text.SimpleDateFormat;
    public abstract class Logger {
    private static final int SIZE = 2;
    private static final SimpleDateFormat DAY = new SimpleDateFormat("EEEE");
    private static final String
      DIR = "logs/",
      EXT = ".log",
      FILTER = ".*log\\z",
      DNE = "DNE";
    private static int i,oldest;
    private static long previous = 0;
    private static FileFilter filter = new LogFilter();
    private static FileWriter out;
    private static File file,directory;
    private static File[] list;
    public synchronized static void log(String param) {
      try {
       directory = new File(DIR);
       file = new File(DIR + getDay() + EXT);
       list = directory.listFiles(filter);
       if (file.createNewFile()) {
        readOnly();
        reconcile();
       write(param);
      catch (Exception exception) {}
    private static void write(String param) throws Exception {
      out = new FileWriter(file, true);
      out.write(param);
      out.close();
    private static void readOnly() throws Exception {
      for (i=0;i<list.length;i++) {list.setReadOnly();}
    private static void reconcile() {
    try {
    previous = list[SIZE].lastModified();
    oldest = SIZE;
    for (i=SIZE;i<=0;i--) {
    if (list[i].lastModified() <= previous) {
    previous = list[i].lastModified();
    oldest = i;
    list[oldest].delete();
    catch (Exception exception) {System.out.println("Skipping reconciliation...");}
    private static String getDay() throws Exception {
    return DAY.format(Calendar.getInstance().getTime());
    private static class LogFilter implements FileFilter {
    public LogFilter() {}
    public boolean accept(File param) {
    try {
    if ((param.getName()).matches(FILTER)) {return true;}
    else {return false;}
    catch (Exception exception) {return false;}
    *The problem*:
    Ok, easy visual, this is the "log/" directory as I run the Log.java application repeatedly and iterate the date on my computer as I do so.
    Thursday
    *log/*
    +Thursday.log+
    Friday
    *log/*
    +Thursday.log+
    +Friday.log+
    Saturday
    *log/*
    +Thursday.log+
    +Friday.log+
    +Saturday.log+
    Sunday
    *log/*
    +Friday.log+
    +Saturday.log+
    +Sunday.log+
    Monday
    *log/*
    +Friday.log+
    +Saturday.log+
    +Monday.log+
    This is the point at which I go ???
    Turns out, the JRE skips the execution of my for loop in the *reconcile()* method when the date rolls over to Monday, and from then on it simply deletes the previous day's log instead of the oldest log.
    Why?  Who knows.
    Things I have tried:
    - Using another variable integer for the *readOnly()* method
    - Removing the synchronized keyword from the *log(String param)* method
    - Second call to *directory.listFiles(filter)* and setting *SIZE* to *3* after the old files have been set to read-only
    - Removing the call to *readOnly()*
    - Verified that the call to *readOnly()* does not alter the +modified+ date on the log files
    - Changed Logger.java from a +static+ class to a +local+ class
    Things I cannot do:
    This log application stores privy information about end-users at locations across the country in the event that there are support issues that need to be resolved, and the agreement is that we store this information no more than three days.  Just wanted to make sure, that the hopefully informed respondants to this issue, know that the obvious solution (storing seven day records), is unfortunately not available to me.
    Edited by: Threadstorm on Jan 8, 2009 8:24 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    HA! Most excellent. The last place I would ever look.
    Yes, seems like Java sorts the files in such a way that everything works fine without the loop until Monday rolls over.
    Now I can have a better appreciation for that second set of eyes.
    I use for loops so frequently that I never look at them (though I did stare at this one myself prior to this post, much to my chagrin now) but the subtracting iteration (which I use once in a blue moon) was necessary for the nature of the code.
    But ok, up and running! (whew) was going to be a long day until now.
    To answer your question though, the Logger is static so I don't have to pass it around to dozens and dozens of other modules but rather just include the package on the fly as I develop new modules that need to log information, and I like to write most mundane things myself if I can, that way I have the freedom to modify them at will.
    Thanks again! I'm now a happy camper once more.
    I'm also thankful that I don't have to chalk up another notch on the wall of cases where the JRE behaves magically and truly ignores code which I have definitely run into before. Something about listCellRenderers and the order of calls made to them, or some such and JRE doesn't read one of the lines. It's been a year or two.
    Edited by: Threadstorm on Jan 8, 2009 8:47 AM

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • HT1841 How to disable some of the automatic function from my bluetooth (jabra) while iphone does not have the capacity to set up the bluetooth property like BB?

    How to disable some of the automatic function from my bluetooth (jabra) while iphone does not have the capacity to set up the bluetooth property like BB?

    Sorry. You're not making sense. Please re-phrase the question or post in your native language.

  • When I touch my iPad screen to execute an app, the screen goes dark then the app icon reappears. The app does not execute.

    When I touch my iPad screen to execute an app, then the screen goes dark then the app icon reappears. The app does not execute. Any thoughts?

    Try a Reset...
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    Basic troubleshooting
    From Here
    http://www.apple.com/support/ipad/basics/

  • Oracle ADF refresh as deferred does not execute query on page load

    In the oracle ADF page I have two panel boxes. (Oracle ADF 11.1.1.4)
    a) Personal information panel box with PanelFormLayout (PersonalInfoViewObj) - ReadOnly View Object
    b) Address information panel box with Table (AddressInfoViewObj) - Read Only View Object
    For the iterators in a) and b) I have kept refresh condition as deferred and cacheResult=false. Also in b) for af:table, I have kept contentDelivery="immediate"
    When page loads it fires SQL query for a) and populate the data in Personal information panel box. However for b) it does not execute the SQL query and the data is not getting populated ( in AddressInformation panel with the tables. Please note data is there in the DATABASE......)
    Becasue with the refresh as deferred it was not executing the sql query for Panel b) (panel with Table and table iterator). I have tried refresh as always and refresh ifNeeded/renderModel/prepareModel however in that case it is executing the SQL query two times (twice).
    Please let me know the best way to fix this issue.

    Hi,
    I think you need a method in an application module to init your data.
    In your AM : create a method like :
    public void init(){
    getViewObject().executeQuery();
    }In your adfc-config.xml create a methodCall from this method and a "control flow case" from the methodCall to your page.
    and keep refresh as "deferred " in your pageDef.
    Clément

  • Global succession updates are limited to 500 relationships. If more than 500 exist PLM presents a warning message and does not execute the update

    Global succession updates are limited to 500 relationships. If more than 500 exist PLM presents a warning message and does not execute the update.
    How/Where to increase the relationship count?
    The message which I can see :
    Warning:
    This specification has exceeded the number of parent relationships allowed by Where Used. The Where Used tool only supports up to 500 parent relationships.
    Thanks

    This really brings up a larger topic around change management.
    The questions you should start with is
    1. What kind of change is happening to the raw material? 
    2. Will this change affect anything upstream inside or outside of PLM4P? (Will this change affect nutrition, compliance, the ingredient statement, the label etc?)
    3. Who needs to approve this change?
    If they are non-material changes (changes that don't affect theoretical calculations, the ingredient statement, labeling, upstream systems that need to be notified etc) then you should be using get latest revision instead of global succession.   Get Latest Revision will automatically switch out the material with the latest approved version.  This logic is also configurable in case you need to add additional guard conditions.   We can also provide guidance around locking the get latest revision lock once a specification has reached the retired/obsolete state so changes won't occur for specifications in those statuses.
    If the changes to the raw material are material changes (changes that affect calculations, labeling etc) then the change should be reflected with a copy of the specification.  Dependent specifications then need to be re-issued so calculations can be performed and the appropriate workflow reviews can occur.   Smart Issue allows for filtering based on status and should let you re-issue in smaller blocks. 
    Let me know more about your change management strategy, how often large material changes happen and maybe example causes for those mass changes.  We can also schedule a change management training session for everyone where we can share our vision and tools available for change management.  This topic is quite large and generally requires a lot of business process discussion beyond just the tools available. 
    Thanks
    Kelly

  • User exit code does not execute

    I'm having a problem with User exit code that does not execute yet seems to be set up correctly.
    The User exit is implemented as FM "EXIT_SAPLIPW1_001" in function group XQSM.
    I've tried everything I know of with the CMOD and SMOD transactions, and I suspect some sort of transport error.
    The only clue I can find in comparing the development system (which works) with the test system (which does not work) is that running "Extended Check" in SE80 on function group XQSM fails with the following error:
    "The namespace of program SAPLXQSM has the setting "C" and cannot be tested."
    Has anyone any idea what could have happened?

    Let us try to retrace the steps.
    1. You created a Z project in CMOD and assigned the enhancement IQSM0001 and the component EXIT_SAPLIPW1_001 and activated the same. This is there in the transport.
    2. You double clicked on the include in the user exit and created it. You activated the code and included it in the same transport.
    If you did the above steps, then your user exit should be active in your test system.
    Can you please go to SE10, and list out the objects in your transport? You should see entries in there like below(not necessarily a complete list)
    R3TR CMOD <your project name>
    R3TR PROG ZXQSMU01
    See if you created any of the objects as local objects.
    Srinivas

  • Firefox shows an unknown certificate error while Chrome does not for same site

    On a site at which Credit Card payment info is shown, Firefox is reporting a certificate error while Chrome does not. Prefer to use FF but need to know if warning is right or not. Have cleared the cache and still get the warning. This is new to FF as we've used it on this site for several years.

    HI khetheri,
    In order to better test the certificate may we request the certificate without the private keys? I have some backup from the security team if this is possible.
    There is a temporary work around as well but I don't recommend turning on all certificates to make sure it is not a compatibility error(ish)
    It is possible to check if it is being detected as a bad certificate in Firefox itself to eliminate compatibility issues.
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    # Search for '''browser.xul.error_pages.expert_bad_cert ''' and set it to true to try the certificate normally.
    Looking forward to your reply!

  • Actions does not executed on quotation saved.

    Hi,
    Actions does not executed on quotation save.
    Action profiles has been created as per my production system.
    In production system it is executing properly. but in development system it does not get triggered.
    Pls suggest.
    Points will be rewarded.
    Thanks

    Hi Vinayak
    U can check in 'Define Conditions' for the actions and see whether the actions for the Action profile have been scheduled or not.
    On the left hand side u get the action profiles. U can right click on that and schedule the actions.
    Plz reward points if it helps.
    Thanks and regards
    Debolina

  • Tcode opens selection screen, but does not executes the program

    Hi!
    tcode opens selection screen of a custom program, but it seems that it does not executes the program itself.
    Sounds strange, but how to explain this if I can run a program manually with no problem and it displays result screen, but when I try to run the program with tcode - it opens selection screen but program quits before displaying result screen. I was putting a breakpoint at the begining of the program - it does not triggers debuger when running a tcode (it triggers debugger if to run program manually).... any ideas?
    Help will be appreciated,
    Mindaugas

    Are you using this???
          SET PARAMETER ID '80B' FIELD T_TABLE-OPBEL.
          CALL TRANSACTION 'FPE3' AND SKIP FIRST SCREEN.
    That way it should work....
    Greetings,
    Blag.

  • My calendar is stuck. i press 'done' and it stays as is.  I noticed this on my contacts also. it sometimes does not execute.

    my calendar is stuck. i press 'done' and it stays as is.  I noticed this on my contacts also. it sometimes does not execute.

    http://support.apple.com/kb/TS3281
    Apple does not respond here this is a user to user forum There are no Apple staff here
    Millions have updated without issue

  • I have a slide with 4 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    I have a slide with 6 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    What setting do you have in Quiz > Settings > Required?  If it's not set to Optional, do that.

  • Waiting for approval item does not execute attached procedure !

    Hi.
    Using 3.0.8 on Solaris.
    Create one custom item type and associate one on plsql procedure to be run in place when item is listed within its folder.
    Go to folder, add item, look for the plsql result : Good it's working !
    After that create an item as a create with approval ACL and come back as folder owner, look at the plsql result : NOTHING !!!
    My PLSQL procedure is displaying some attributs in order for the folder owner to approve or not the waiting item. So if wainting for approval items does not execute associated plsql function as they are "waiting" (active=0) then I've got some problems!
    Any suggestions ?

    Hi all,
    Thanks very much for your feedback.
    In reply to Brian's suggestions
    1. I checked to see if WS14500013 was defined as general task; it was not and this has has now been rectified. Went through the other workflows also.
    Double checked the contents of the tables:
    APPROVAL_TABLE, ITEM_APPROVAL_TABLE, ITEM_APPROVAL_OBJECT.
    All appeared OK.
    Created a simple one line SC. Invoked approval preview and the message: 'Approval step without ad-hoc capability. No preview possible' was displayed. This is odd since WS14500015 and sub-workflows do not use AD-HOC approval. Or am I not understanding this correctly.
    Followed Smitas suggestions but to no effect.
    Here are the contents of the said tables which I lifted from the workflow tables:
    Again, many thanks for your responses...
    **APPROVAL_TABLE****
    NAME="APPROVERLIST:ApproverList:"   <APPROVAL_INDEX>0000000001</APPROVAL_INDEX>
    <APPROVAL_BRANCH>0000000001
    <APPROVAL_AGENT>USMGRR11000 
    <APPROVAL_STATE>0000000002 
    <INITIAL_AGENT>USMGRR11000
    <INITIAL_INDEX>0000000002
    **ITEM_APPROVAL_OBJECT***.
    NAME="ITEMAPPOBJTABLE:ItemAppObjTable:" - <item>
      <SC_GUID>957117374BC6434882B0BFD5462A2724</SC_GUID>
      <APP_CRIT_NAME1>COST_CTR</APP_CRIT_NAME1>
      <APP_CRIT_NAME2>ORDER_NO</APP_CRIT_NAME2>
      <APP_CRIT_NAME3 />
      <APP_CRIT_VALUE1>R11000</APP_CRIT_VALUE1>
      <APP_CRIT_VALUE2 />
      <APP_CRIT_VALUE3 />
      <APPROVAL_OBJECT_GUID>9E6EFAC500B681458284BBB60BF99C8A
    *****ITEM_APPROVAL_TABLE***,
    NAME="APPROVALITEMLIST:ApprovalItemList:"
    <item>
    <APPROVAL_OBJECT_GUID>9E6EFAC500B681458284BBB60BF99C8A  <APPROVAL_ITEM_GUID>1137519335F51C4DB3D2844A8AD484C0

  • System - services - reporting does not execute ABAP Reporting

    Hi All,
    system -> services -> reporting does not execute ABAP Reporting.
    we are able to execute sa38 by running t-code.
    Please help.
    Thanks
    Harshit

    Check authorizations (SU53).

Maybe you are looking for