09-25-2009 10:20 AM
09-25-2009 10:34 AM
09-25-2009 10:34 AM
Something like that?
Andrey.
09-28-2009 11:42 AM - edited 09-28-2009 11:50 AM
Hey csmrunman,
Just to clarify, are you looking to append text to an existing file without over-writing existing text, or are you looking to create a series of text files with unique names? If you want to append text to an existing file, then Andrey's solution above should be what you need. If you want to programmatically determine a unique name for the text files, then you can use a similar means to deterine a unique name (Andrey used the iteration terminal above so that each iteration of the while loop produces a unique text to be inserted into the text file). You mentioned the use of sample ID and experiment number, which you could also use as a file name if you wish to, and even have the user of the VI enter the information that makes up the filename through front panel controls. The string functions (in the Functions Palette under Programming » String) will be of great use here. Of course, if you are just looking for an “out-of-the-box” solution, there is always the Write to Measurement File Express VI (Programming » File I/O), but this is best suited for situations where you have channels of data that you would like to store, so this may not fit depending on the data you wish to store. If it does fit, however, there are settings that you can configure for saving to a series of files: