Example Code

Get Shared Variable List on a Remote System

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

The Get Remote Process List returns a list of all the shared variable engine processes running on a local or remote system.

The Get Remote Shared Variable List returns a list of all the shared variables associated with a local or remote process.

The Get All Remote Shared Variables by IP Address returns a list of all the shared variables associated with a local or remote target. 

 

Description

These VI's use psp browsing to get a list of all the processes and shared variables hosted on a remote machine. Similar to DSC's Get Process List.vi and Get Shared Variable List.vi, these VI's are able to return information about the shared variable engine's running on remote targets.

 

Requirements

  • LabVIEW 2012 (or compatible)
  • Datalogging and Supervisory Control (DSC) Module

 

Steps to Implement or Execute Code

  1. Input IP Address of local or remote system.
  2. Run the VI.
  3. Process List indicator shows the IP Address.

 

Additional Information or References 

Get Remote Process List VI Snippet

150.1.png

Get Remote Shared Variable List VI Snippet

150.2.png

 

 Get All Shared Variables by IP Address VI Snippet

150.3.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Fire
Member
Member
on

Thank you very much for this workaround, Ryan. It saved my day 🙂  Holger

Fire
Member
Member
on

I am very sorry, but Get_All Remote_SV_by_IP.vi returns error -1967370237; Possible reason(s):  OS and Network Services:  (Hex 0x8ABC5003) The connection to the server has been lost.  Get_Remote_Process_List.vi works fine and returns all existing Processes. The shared variables of the first process in list are also returned correctly, but the query of the second process fails in "PSP Enumerate Network Items.vi", which calls Logos and other DLL nodes.  Any idea?  Holger

Fire
Member
Member
on

Get_All Remote_SV_by_IP.vi returns error -1967370237 was true for the process NI_SSLConfiguration, which is not of interest in my case.  I could also build an executable which works fine.  Thanks again, Holger