To download NI software, including the products shown below, visit ni.com/downloads.
This code demonstrates how to create multiple (measurement) files with an incrementing suffix in the file name.
Description
It is sometimes necessary to split a large file into multiple files with an incrementing suffix in the file name. LabVIEW 2015 (or compatible) provides a built in VI called "Create File with Incrementing Suffix" which can be used for this purpose. If you use LabVIEW 2014 or previous, you have to implement this functionality by yourself. This example shows a way to create a file with an incrementing suffix if you can't take advantage of LabVIEW 2015 (or compatible). It is not the same implementation like the sipped "Create File with Incrementing Suffix" VI.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Thanks for posting. Could you include a screenshot of the code to give us an idea of what it does?
The picture was too large to put on the page without severly blurring the image. The .bmp file is attached for users to look at.
This vi will not open in labview 8.5, which is what i have. Can you make it compatible with that version please? I'm not yet ready to convert my code to 8.6 as i've been working on it for a while now. Thanks.
Posted
There's a better way to do this. Using the File/Directory Info icon, you can see how many files are in the directory. Then just increment this and append it to the file path. This way, as you get more files, you're not running through a for loop 100 times every time you want to save.