Admin Production ni-theme
Current Publication

NetworkVariablePopup

LabWindows/CVI

NetworkVariablePopup

int NetworkVariablePopup (char networkVariablePathName[]);

Purpose

Runs a popup dialog box thats lets you browse and select a Network Variable. By default, only machines in your local sub-net are displayed in the browser. You can use the "Add Machine" item in the context menu to add other machines.

Parameters

Output
Name Type Description
networkVariablePathName char [] On function return, contains the full path name of the Network Variable that you select in the popup dialog box. The buffer must be at least MAX_PATHNAME_LEN bytes long.
Note Note  MAX_PATHNAME_LEN is only reliable for ANSI single byte strings. For UTF-8 strings, call the IsUTF8PathLengthValid function to confirm that the file path is within the operating system character limit.

Return Value

Name Type Description
status int On error, returns a negative error code. Otherwise, returns one if you select a Network Variable and zero if you cancel the dialog without making a selection.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later

Examples

Refer to the following examples that use the NetworkVariablePopup function:

  • networkvariable\Browser\NVBrowser.cws

    Open example
  • networkvariable\Subscriber\NVSubscriber.cws

    Open example