LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing localhost shared variables?

Hello,

 

Likely a very amateur question but I have not been able to find an answer myself so here goes: 

 

I am attempting to try to edit the value of a network-published shared variable stored under localhost using LabVIEW 2016 (image attached) but am unsure how to access it. Could someone explain to me or point me towards reference material which explains how to access shared variables stored under localhost?

 

Thanks!

0 Kudos
Message 1 of 3
(2,529 Views)

Here's a link to the online LabVIEW 2016 help files related to shared variables (and other network communication fundamentals).

 

Based on the screenshot, it sounds like you're trying to read the Remote_Control variable which is already deployed on the network.  There are a few ways to do this:

  • If you have access to the .lvlib file that contains the Remote_Control variable, you can add that library to your current project and drag and drop the variables you want to read/write to
  • You can use the Shared Variable API (or Datasockets) to access the variable without needing the library file

Here's a larger reference to different ways of accessing shared variables.

Message 2 of 3
(2,478 Views)

Thank You! 

I am attempting to work through your suggestions. Much appreciated!

0 Kudos
Message 3 of 3
(2,446 Views)