CNVProcessExists

int CNVProcessExists (const char *processName, int *exists);

Purpose

Indicates whether a network variable process with the name you specify exists in the current system.

Parameters

Input
Name Type Description
processName const char * The name of the network variable process.

Note Note  National Instruments recommends using only alphanumeric characters in process names. You cannot use the backslash (\) character or the following words, which are reserved by the Network Variable Library, in processName: system, FP, LV, or NI_. Reserved process names are not case-sensitive. This function returns an error if you use any of these reserved words or the backslash character.
Output
Name Type Description
exists int Returns whether the network variable process exists. A non-zero value indicates that the network variable process exists. Zero indicates that the network variable process does not exist.

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 8.5 and later

Examples

Refer to the following examples that use the CNVProcessExists function:

  • apps\chess\chess.cws

    Open example
  • networkvariable\Configurator\configurator.cws

    Open example

WAS THIS ARTICLE HELPFUL?

Not Helpful