CNVNewFolder
int CNVNewFolder (const char *parentPath, const char *folderName);
Purpose
Creates a new folder in the network variable path you specify.
If you specify a folderName that already exists, CNVNewFolder returns an error.
![]() |
Note This library may return CNVDisconnectedError if you browse folders created after creating the network variable browser. If you need to create folders and browse them, National Instruments recommends that you create the browser after you create the folders. |
Parameters
Input | ||||
Name | Type | Description | ||
parentPath | const char * | The parent's machine-relative path. You can specify a process name or a process name followed by one or more folder names delimited with the backslash path separator. Do not include a trailing backslash in the path.
|
||
folderName | const char * | The name of the network variable folder.
|
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. One indicates that a next item was found, zero indicates that a next item was not found, and a negative number indicates that an error occurred. You can call CNVGetErrorDescription to obtain a string that describes the error. |
Additional Information
Library: Network Variable Library
Include file: cvinetv.h
LabWindows/CVI compatibility: LabWindows/CVI 2012 and later
Example
Refer to networkvariable\NVConfig\nvconfig.cws for an example of using the CNVNewFolder function.