Config Files

Close and Back Up Config File

After config file is closed, if its new length is non-zero, create a backup with the same name + ".bak" appended.

Get Default ini File Path

Construct a standardized configuration file path.
Start from the Shared Documents or My Documents folder, depending on the value of Shared? and constructed using a Windows call. Use a subfolder specified by Client. File name is either the value in Project with ".ini" appended, or is constructed from the calling VI's prefix (name until first space, underscore, or period), again with ".ini" appended.

Open Config File with Directory Creation

Open or create a config data file, also creating directories if necessary.

Open Default ini File (Near Code)

Open a .ini file with the same name as the top level vi or application but the .ini extension, located in the parent directory. Also returns the parent directory.

Open Default ini File (Shared)

Open a config file found within the All Users/Documents directory in the specified client subdirectory. If a project name is not given it will be constructed from the prefix of the calling VI. The prefix is everything up until a space, period, or underscore. Config file path is also returned. File is created if not found.

Open Default ini File (User)

Open a config file found within the My Documents directory in the specified client subdirectory. If a project name is not given it will be constructed from the prefix of the calling VI. The prefix is everything up until a space, period, or underscore. Config file path is also returned. File is created if not found.

Read Key ([[Double]])

Read a 2D float array key (actually a section) written by the matching Write VI.

Read Key ([Double])

Write a 1D float array in a human readable format. The "key" is actually placed in a separate section.

Read Key ([i32])

Read a 1D integer array key (actually a section) written by the matching Write VI.

Read Key ([String])

Read a 1D string array key (actually a section) written by the matching Write VI.

Remove Array Sections

Remove sections from an ini file when an array is shrinking. If Old Count is unwired, count will be read, parent section will be removed, and then count will be replaced. If Old Count is wired, it's assumed thatparent section handling was already performed. Child sections that are removed have names <parent>.<child root>#, where # ranges from new count to old count-1.

Write Key ([[Double]])

Write a 2D float array in a human readable format. The "key" is actually placed in a separate section.

Write Key ([Double])

Write a 1D float array in a human readable format. The "key" is actually placed in a separate section.

Write Key ([i32])

Write a 1D integer array in a human readable format. The "key" is actually placed in a separate section.

Write Key ([String])

Write a 1D string array in a human readable format. The "key" is actually placed in a separate section.