MATLABfromCSharp.MainControl.getPIPoints C# (CSharp) Method

getPIPoints() public method

Accesses the PIServer to get the PIPoints that are available.
public getPIPoints ( PISystem sys, PIServer serv ) : List
sys PISystem The current PISystem
serv PIServer The current PIServer
return List
        public List<PIPoint> getPIPoints(PISystem sys, PIServer serv)
        {
            mainForm.Status("Getting PIPoints...");
            currentSystem = sys;
            currentPIServer = serv;
            List<PIPoint> list;
            try
            {
                List<string> query = new List<string>() { "*" };
                list = (List<PIPoint>)PIPoint.FindPIPoints(serv, query, null);
                return list;
            }
            catch
            {
                    mainForm.Status("ERROR: Unable to attach to " + serv.Name);
                    return null;
            }
        }