LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Variable exists on another PC

Using Network Variable library there are two functions (CNVProcessIsRunning and CNVVariableExists) that can be used with local variables (i.e. Published on the same PC). As a matter of fact the machine name can't be used as an input to these functions.

Are there some functions that can be used in the same way for variables published on a different Pc?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 5
(3,086 Views)

Hi,

you need this functions to handle network variable:

 

CNVCreateBufferedWriter

CNVCreateScalarDataValue

CNVPutDataInBuffer

CNVCreateSubscriber

CNVGetScalarDataValue

 

Thanks

 

0 Kudos
Message 2 of 5
(3,017 Views)

You can use the Browser class functions like CNVBrowse to browse for variables on the network. They are low-level functions and a little more difficult to use than other functions in this library but you can see their usage in the implementation of the open source NetworkVariablePopup function in toolbox.c.

0 Kudos
Message 3 of 5
(3,006 Views)

Hi Mohan

I used CNVBrowse and I've been able to find all the existing processes and variables over the network, but how can I determine if that processes are running or not?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 5
(2,981 Views)

Hi vix,

 

Only network variable 'processes' that are 'running' are visible to the CNVBrowse API. 'processes' that are 'stopped' do not show up in the browsing API. So if you are able to browse to a process/variable, then that variable is available for use.

0 Kudos
Message 5 of 5
(2,970 Views)