LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 5.1 Set Type and Creator function - how to output text format

I was given an existing LabVIEW ver 5.1 program for a Mac (I've only used ver 8.5 or higher) and asked to change the file output from Igor to plain text. The Set Type and Creator function has type = "IGBW" and creator = "IGR0". The description in the help just says it needs to be a 4 character string. What do I use for a plain text file?
0 Kudos
Message 1 of 5
(2,951 Views)

What version of the Mac OS are you using?  Can you post a screenshot (.jpg or .png) of the part of the code which you need to change?

 

The Type and Creator information is no longer used in OS X.

 

Lynn 

0 Kudos
Message 2 of 5
(2,944 Views)

Lynn, Thanks. I have attached the section of code with the Set Type and Creator function. The computer is running Mac OS 9. Also, here is a link to the NI help on this: file:///Applications/National%20Instruments/LabVIEW%208.5/help/html/index.htm?glang.chm/Set_Type_and_Creator.html

 

0 Kudos
Message 3 of 5
(2,934 Views)
For type you can use "TEXT". For creator you can use whatever application you want. For example, for SimpleText it would be "ttxt".
0 Kudos
Message 4 of 5
(2,925 Views)

OK,  To write to a text file just use the Write to Text File+ VI.  Remove  the Set Type and Creator VI.  The file will default to a generic text file.  I do not recall what Type and Creator codes will be used (TEXT and ????, maybe) but the OS will find a text editor or word processor which can read the file.

 

If you need to use particular Type and Creator codes to get the file to open in a specific program when double-clicked, you need to determine what those codes are. Or if it is a small number of files you can change it manually with the Get Info mode in OS 9.

 

I am working from ancient memory so I may have some of the details rather fuzzy.  Let me know exactly what you are trying to do and I will try to help.

 

Lynn 

0 Kudos
Message 5 of 5
(2,921 Views)