LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Carriage return sometimes works, sometimes it doesn't!

The odd ballad shows that is band is more than 1-dimensional. Like you say all the great bands have done it. I couldn't resist quickly checking out an audio clip of Jimmy Rosenberg on Amazon. I see what you mean !!! Awesome. Django MKII. Spookily enough I've been looking out for a Maccaferri type acoustic on eBay recently. I love that sweet percussive sound.

I'll take a look at the sample code tomorrow. Time to sign off. (I'm in the UK).
Good talking to you spaceman.
0 Kudos
Message 11 of 17
(1,177 Views)
Cheers! I spent a few months in Birmingham a few years ago - England rocks!!

Let me know if you've also seen instances where the write to file command doesn't seem to do anything. Thanks for your help!
********************************************
Amateur programmer for over 10 years!
********************************************
0 Kudos
Message 12 of 17
(1,172 Views)
In sample1, you write a simple CR and in sample2 you write CR/LF combination.
Change CR constant for CR/LF constant in sample1

You can also connect TRUE to the "Convert EOL" input of the write file function.
The write function will then take care automatically of converting CRs and LFs to the EOL character(s) of your platform.


LabVIEW, C'est LabVIEW

Message 13 of 17
(1,158 Views)
Arrghh! I knew it! I knew it! I knew it! I knew it would be something stupid and simple!

Thanks, Jean-Pierre!
********************************************
Amateur programmer for over 10 years!
********************************************
0 Kudos
Message 14 of 17
(1,153 Views)
My poking the output from sample1 into an indicator didn't help since the problem isn't evident until you view the file contents.
Doh!

Nice one Jean-Pierre.

spaceman: Can't say I've seen an instance where nothing is written out at all. Anything on the "error out" ? or an example ?
0 Kudos
Message 15 of 17
(1,127 Views)
Let me double check my code thoroughly before I post it. I have placed a boolean condition that tells the code not to write anything to the text file during a certain fault condition (when this fault condition goes true, the program starts writing a fault text message over and over). That boolean is the only thing that could encourage the program to not write any data to the text file.

However, in the program I'm currently running, I have that boolean variable forced into a constantly false value so data is always written, regardless. I don't see how the boolean could ever be set to true to make the program not send any data, but Lord know I've missed enough stupid mistakes in this code before. But I set that boolean variable to always false in case that was what was causing the program to not write any data. But I'm still seeing instances of the data not being written.

If I still don't see how/why it's skipping data after looking over it a bit, I'll post my code and let you guys take a peek at it.


In other words, let me make sure I didn't do something stupid and embarrass myself again on here. 🙂
********************************************
Amateur programmer for over 10 years!
********************************************
0 Kudos
Message 16 of 17
(1,110 Views)
try using the end of line constant instead of the carriage return. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 17 of 17
(1,105 Views)