06-28-2007 12:38 PM
07-02-2007 01:19 AM - edited 07-02-2007 01:19 AM
Message Edited by Yi Y on 07-02-2007 01:27 AM
07-02-2007 11:36 AM
OK, I thought that might be the case. I already use code similar to yours to get a list of shared variables that I use elsewhere in the program. Perhaps I can just populate generic combo boxes with this list and (if necessary) convert the result of the combo box to an SV from a string. I will try to do that. That might actually be convenient, because maybe I can strip the {Server\library\} prefix from the items in the viewable drop-down list to make viewing the variables easier.
Does the combo box control in LV have the ability to have multiple columns, so that I could put the trimmed down SV names in one column, but bind the control to another zero-width column containing the entire SV path\libraray\name nomenclature? I often do this in VB 6.0.
Michael
07-03-2007 02:39 PM
07-09-2007 03:58 PM
Yi,
Is there a way that I can programmatically get a list of shared variables from a REMOTE PC's deployed network shared variables? The "Get Shared Variable List" vi seems to only allow me to get a list of shared variables in a local host's (my own PC) process list. I need to do this to be able to populate the combo box above. The only solution I can imagine is to create another local "dummy" .lvlib library with all of the same variables as the remote PC's process, and then use the "Get Shared Variable List.vi" to obtain this list and then strip the path, i.e. \\localhost\library\, then att the appropriate remote path, i.e. \\RemotePC\Library, then convert back to tags. I don't want to deploy the same library on the slave machine(s) that is deployed on the host, because I don't want multiple PCs all banging on the FieldPoint devices at the same time. The object was to have the master PC polling the Fieldpoint and updating shared variables, and the slave PCs would just access the networked shared variables for read/write access to the Fieldpoint.
Let me know if there is an easier way.
Michael Hampson
07-10-2007 09:20 PM