LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving data: wrong file type on Win98

Hello out there!

My Labview program (on Win98) is saving data to a text file using 'New
File', 'Write File', and 'Close File'. My plotting program (Genplot,
http://www.genplot.com) does NOT read this files and my editor (Textpad,
http://www.textpad.com) tells me that it is a Macintosh file. Using
programs like 'ToUnix' or 'ToDos' work fine and I can open the files
with Genplot. But this is a little bit annoying. Does anyone has an idea
about that? I don't really know the differences between DOS and Mac
ASCII files. Is this a Labview bug?

Cheers, Till
0 Kudos
Message 1 of 4
(3,082 Views)
The Write function has a "Convert EOL" input. Wire it to TRUE and it will
convert the EOL character of LabVIEW to the default system EOL.

Jean-Pierre Drolet


"Till Burkert" a écrit dans le message news:
3A1E39E3.DDFFCBC0@matphys.kth.se...
> Hello out there!
>
> My Labview program (on Win98) is saving data to a text file using 'New
> File', 'Write File', and 'Close File'. My plotting program (Genplot,
> http://www.genplot.com) does NOT read this files and my editor (Textpad,
> http://www.textpad.com) tells me that it is a Macintosh file. Using
> programs like 'ToUnix' or 'ToDos' work fine and I can open the files
> with Genplot. But this is a little bit annoying. Does anyone has an idea
> about that? I don't really know the differences b
etween DOS and Mac
> ASCII files. Is this a Labview bug?
>
> Cheers, Till
>
>
0 Kudos
Message 2 of 4
(3,082 Views)
Sounds like a trivial end-line problem. There are several ways of indicating
that the end of a line has been reached- most commonly a linefeed, a
carriage return, or the two characters in either order. Different platforms
use different methods, and if you build the text string in your application
by manually adding end-of-line character strings you can hit this kind of
problem. If you use the string constant specifically called "End of line"
when building the string, Labview automatically uses the correct character
sequence for the platform you're using.

It's a bit of a crap plotting program though if it's this fussy about the
ASCII import format! A graphing package should be flexible on end-line
characters, file and column headers and delimiters in my view- the ai
m
should be that it can import any ASCII file a user can throw at it.


Till Burkert wrote in message
news:3A1E39E3.DDFFCBC0@matphys.kth.se...
> Hello out there!
>
> My Labview program (on Win98) is saving data to a text file using 'New
> File', 'Write File', and 'Close File'. My plotting program (Genplot,
> http://www.genplot.com) does NOT read this files and my editor (Textpad,
> http://www.textpad.com) tells me that it is a Macintosh file. Using
> programs like 'ToUnix' or 'ToDos' work fine and I can open the files
> with Genplot. But this is a little bit annoying. Does anyone has an idea
> about that? I don't really know the differences between DOS and Mac
> ASCII files. Is this a Labview bug?
>
> Cheers, Till
>
>
0 Kudos
Message 3 of 4
(3,082 Views)
The platform differences in text files refers to the end of line
character used. There are two characters and three common
combinations. There are three constants in the string palette,
one that is just a carriage return character, one that is a
line feed character, and end of line that is the platform
specific combination.

These days, most programs don't care which combination is used,
but apparently you have one that still does. Presumably
somewhere in your diagram, you are using one of the other
constants and want to change it to either hard-code the PC
format or use the end of line constant.

Greg McKaskle

Till Burkert wrote:
>
> Hello out there!
>
> My Labview program (on Win98) is saving data to a text file using 'New
> File', 'Write File', and 'Close Fi
le'. My plotting program (Genplot,
> http://www.genplot.com) does NOT read this files and my editor (Textpad,
> http://www.textpad.com) tells me that it is a Macintosh file. Using
> programs like 'ToUnix' or 'ToDos' work fine and I can open the files
> with Genplot. But this is a little bit annoying. Does anyone has an idea
> about that? I don't really know the differences between DOS and Mac
> ASCII files. Is this a Labview bug?
>
> Cheers, Till
0 Kudos
Message 4 of 4
(3,082 Views)