To CR or not to CR, A Tip....

I am relatively new to LV so likely all of you gurus know about this...
I built a vi to capture a number of waveforms and write them to a binary file on an RTOS system, based on an external trigger turning ON. When the trigger turned OFF this state triggered an FTP transfer to my Windoze Host system, and then deleted the file on the RTOS system to keep the disk clear. During the development of this vi I built sections of it for testing and later put them all together.
The experimental section I built to write the file used the Write Binary File.vi and when I used WS-FTP to do the transfer I could then pull it into my Read.vi, which uses the Read Binary File.vi, and it displayed correctly. However, when I combined this with the other sections, suddenly I could not display these files any more. A probe showed me that all of the info was there but it just wasn't being displayed.
I ran both my "section" and the whole thing several times to get a few files to play with. Then I used a fancy editing program to display these files in several different formats, trying to find out what the story was. Eventually I discovered that the files which WOULD NOT display all had CR/LF combinations. The files which worked only had LF.
The Write Binary File.vi doesn't have any way to specify this so I looked a bit deeper. I noticed that, by default, WS-FTP transfers in BINARY format unless you specify diferently. I then took a look at the FTP Put File.vi and saw that it defaults to ASCII format. I added a TRUE constant to the "binary(F)" input and now everything works perfectly.
I hope this may be of some help to someone else in the future. It gave me fits for several days....
technomage

technomage wrote:
Thanks for the reply Charlie. Even though I found the problem, and
solution, it still has me a bit baffled as to why the chart wouldn't
display it with the CR/LF combo. I know that this tidbit sure isn't
written into the help file. As I said I hope the info helps somebody
else down the road...
technomage
By inserting extra data you got
corrupted binary data and the chart got apparently confused by that.
Binary data is always very sensible to even single bit modifications.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • HT4108 I'm trying to connect my iPad to my tv so that I can mirror whatever is on my iPad. I want to stream movies online and watch on the tv. I have the digital av adapter and an hdmi cable but it's not working. Any tips ?

    I'm trying to connect my iPad to my tv so that I can mirror whatever is on my iPad. I want to stream movies online and watch on the tv. I have the digital av adapter and an hdmi cable but it's not working. Any tips ?

    If this is an iPad 1, it won't mirror, but it will still output video from the 30 Pin dock connector.
    If your new TV has a conventional VGA in and stereo inputs you can try this connector.
    http://store.apple.com/us/product/MC748ZM/A/apple-composite-av-cable?fnode=3a
    I used to stream video from both Netflix and YouTube and from my Mac using iTunes sharing through my iPad then with this connector plug into my iPad and TV.
    It won't be high resolution, but it will get you picture from iPad to TV.
    Good Luck.

  • My macbook will not turn off any tips?

    my macbook will not turn off any tips please?

    Thanks I took the battery out & boy was I glad to see it reboot

  • Can anyone explain why on my iPhone 4S, whenever I play music, it won't hold my place in the song? I pause it, and then when I go back later, it's all the way back at the beginning? A google search was not very helpful, any tips would be great!

    Can anyone explain why on my iPhone 4S, whenever I play music, it won't hold my place in the song? I pause it, and then when I go back later, it's all the way back at the beginning? A google search was not very helpful, any tips would be great!

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I am trying to play an mp4 in quicktime and the video and audio does not sync. Any tips?

    I am trying to play an mp4 in quicktime and the video and audio does not sync. Any tips? This is not hack/ripped video but a legit home movie.

    In this case, it looks like Quicktime wasn't very efficient in managing memory, leading to a slowdown in playback. If QT has a lag and VLC doesn't, that's more evidence.
    I couldn't say why your friend's windows computer plays the media fine, while your Mac doesn't. The only thing I could suggest is to disable QT streaming video - which has been known to slow down performance.

  • HT201269 Hi, I have 227 songs in my itunes, when im trying to get them to new iphone 5s-only 66 songs are coming, memory is not full, any helpfull tips pls?

    Hi, I have 227 songs in my itunes, when im trying to get them to new iphone 5s-only 66 songs are coming, memory is not full, any helpfull tips pls?Thnx

    I should mention that, for the first problem, I do make sure that my new tracks are stored in the folder where I told iTunes that my music is in. Also, when I say the cataloging of my library stops short of cataloging all my songs, I have tried leaving the computer unattended for days (my computer's sleep mode is disabled). It always stops before cataloging all of my music regardless of whether I am doing something else while iTunes is cataloging, or if I just let iTunes be the only program that's open during the cataloging process.

  • Each time i order a book, it says "network connection not available". Any tips to troubleshoot?

    Each time I try to order a book, it says "network connection not available". Any tips to troubleshoot?

    As the error message says, you computer cannot connect to the network.
    It is difficult for us to give advice since we do not know your network setup. Try the network diagnostics utility:
         Open System Preferences -> Network ;
    At the bottom of the window is a button labelled "Assist me", press it, then in the drop down panel press "Diagnostics" and inspect your network status.

  • I have  PS CS4 Extended. When I start it I get a message that I need to reinstall it. I search Adobes and found a download for Mac which I installed and when started entered myserial number. It was not accepted. Any tips?

    The file downloaded is named NikCollection_1.2.8_0511-456.dmg. The installation went ok but when I start photoshop i am prompted for my serial number,
    I have it on the back on my CD case (but my CD is not  working any more) and it is the same number as it registered at my Adobe account.
    Photoshop starts ok but after a while it prompts for my serial number. When I enter my serial number it is not accepted.
    Grateful for any tips.

    Did you go here for the installer? Download CS4 products
    When you enter the serial number see that you get the serial number correct, in fact copy and paste from the one in your account.
    You should see a green checkmark.
    If all goes well you should be allowed to install and activate. If activation fails, contact Customer Care by phone or Chat.
    Contact Customer Care

  • I just installed windows 7 using bootcamp.  My sound is not working.  any tips?

    so, As my title says, I just installed windows 7 using boot camp.  However, My sound is not working.  at all.  This is a problem as most of what I do involves sound.
    any tips to help me out?

    you, or we,still need to install audio driver, likely Cirrus,
    "macbook pro windows cirrus audio driver"

  • Whole screen is not repainted, need debug tips

    We are running an application which uses some jogl for animaties.
    Sometimes when the animation is finished and we set the GLCanvas to invisible, the normal
    java JPanels are not repainted.
    Also alt-tab to another windows application and back will not force a redraw.
    The application itself is still working, clicking on a (now) not visible button will trigger
    the jogl animations, and these are show correctly.
    Also from logging it appear that the AWT-thread is not blocking.
    We are looking for tips that can help find us the problem from logging
    as it only appears a few times a week and it is not reproducable.

    The problem is that most of the time it works, but after some hours/days, the java panels are not repainted.
    There is no memory leak.
    paintComponent is not overwritten, a object is made visible to do the animation.
    Pseudo code:
    public class AnimateTilePopup extends JPanel {
    GLCanvas glCanvas;
    public AnimateTilePopup() {
    super(null);
    setOpaque(true);
    glCanvas = new GLCanvas();
    glCanvas.setLocation(0,0);
    glCanvas.setSize(width, height);
    glCanvas.setVisible(false);
    glCanvas.setFocusable(false);
    add(glCanvas);
    flipRendererZoom = new AnimateRendererZoom();
    glCanvas.addGLEventListener(flipRendererZoom);
    public startAnimation() {
    glCanvas.setVisible(true);
    this.setVisible(true);
    public stopAnimation() {
    glCanvas.setVisible(false);
    this.setVisible(false);
    So sometimes when we call stopAnimation(), the animation is stoppped, but the underlying java JPanels are not repainted.
    When we now call startAnimation, the animation is shown and when stopped, no repaint for the normal JPanels.
    Most times it is working perfectly, only sometimes it failes.
    What can be the cause or what logging can be gather that might gives us a clue how to fix this problem.

  • 5s will not sync. All tips have been tried. Help

    Have tried all tips on iTunes, Apple, updated, uninstalled, reinstalled, different cord, different port, on, off. still nothing.

    maxtom101 wrote:
    It seems like Apple simply does not care about its customers.
    i disagree. i actually got an email from one of the apple mods on here asking me to recreate this problem and follow several steps to send them some information so they can try and fix this. unfortunately, shortly afterwards i got my 3rd Gen, and was unable to recreate the problem and send the information in (i'd pass on this information, but i've deleted the email i'm afraid.)
    apple DO listen, even if it doesn't seem like it at times.

  • Open a save dialog with a name of a not existing file as tip name

    Hello, I`m using JFileChooser to save a file, but the file does not exist in the File System, it is only a Java File object.
    Then I want to open the dialog with a name for this new file already in the field, then I can change the folders and the proposed name will still be there to be used.
    I have found some posts pretty close to what I need but i could not solve my problem.
    Thanks

    setSelectedFile()

  • We just added Maverick to our Mac and now the magic mouse will not scroll with finger tips!!

    We just upgraded our system to Maverick. Now our majic mouse does not respond to the finger swipe at all.
    Also the volume contro;s stopped working on the wireless keyboard.

    Hi davidgraham193,
    Thanks for visiting Apple Support Communities.
    If your Magic Mouse is not scrolling, first go to the Mouse section of System Preferences and try toggling the "Scroll direction: natural" checkbox to see if it has an effect.
    Scroll direction: natural:
    Select this option to move the contents of a window the same direction as your fingers.
    From:
    OS X Mavericks: Change the way your trackpad works
    http://support.apple.com/kb/PH13804
    If the issue persists, see this link for additional troubleshooting steps:
    Troubleshooting wireless mouse and keyboard issues
    http://support.apple.com/kb/ts3048
    Best,
    Jeremy

  • TS4006 My Find my iPhone tracks when it is in my home but not outside. Any tips on how to resolve this ?

    Any idea why find my iPhone works in the house but does not track my device when I'm travelling

    iMessage and FaceTime went down yesterday for some people. Mine is still down. My iMessage is saying the same thing about being activated. Sounds like you are still down too. Ignore the status page that says everything is fine - it lies.

  • I PAD 3 WILL NOT OPEN APPS, ANY TIPS?

    Downloaded standard apps like Facebook, amazon yesterday and they all worked fine.  then down loaded a couple of games that wouldn't open however other apps still worked fine.  Today nothing at all will open, have checked for updates and there is nothing on that front, i have restarted the i pad a couple fo times and nothing has happened.
    any feedback/tips would be greatly appreciated.
    thanks

    Try doing a full hardware reboot by holding the home button and on/off button together for 10 seconds.

Maybe you are looking for

  • Finding a position of an item in a list.

    What i am looking to do is find the position of an item in a list. for instance if my list contains [a, b, c, d, e] and on my command line i put a f d, i want it to return a value of 3 for the position of the 'd' in my list. Could anyone please advis

  • Is it possible to run test suite B based on test Suite A?

    There are 2 test suites: A & B I want to run the test suite B only when test suite A is successful. Please give me some hints how to achieve this.

  • All Neo-fizzled out....

    I'd Like to state some facts, status etc before I go into my "thread" (aka RAVE).... 1. Everyone's been cool here on this forum since I joined in. Thanks for all peoples help and I hope my responses have been of help aswell. 2. This may be my last po

  • Which mac should I go with ?

    Hey guys I have a question. Which mac would best suite my needs? A mac pro (early 2008) 2.8 8 core or a (Early 2009) 2.93 Quad core ? I do a lot of Gaming, Final Cut Express, Photoshop, Encoding and other various programs. I know one has 800 MHz ram

  • @see and @link issues with generics

    Hi, Is there any documentation on how to write @see and @link tags that refer to generic classes or methods? Here's an example: public interface MyInterface<T>     public void doSomething(T param); }Now, when I write an implementation of this interfa