10-18-2011 10:45 AM
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?
10-18-2011 11:23 AM
Hi,
you need this functions to handle network variable:
CNVCreateBufferedWriter
CNVCreateScalarDataValue
CNVPutDataInBuffer
CNVCreateSubscriber
CNVGetScalarDataValue
Thanks
10-19-2011 09:31 AM
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.
05-18-2012 07:13 AM
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?
05-21-2012 10:57 AM
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.