getAFData() public static method

Using AFSDK adds both PI Tags and Constant attribute values to Matlab.
Attribute.GetValues is an Important call <= Int32 determines level of specficity of returned values.
public static getAFData ( string server_database, string AttributeName, string MatlabName, string path, string start, string end, bool addToListView ) : void
server_database string String representing server and database
AttributeName string The name of the attribute
MatlabName string The variable name in the Matlab Workspace.
path string The path to the AFElement.
start string Start of Data Collection.
end string End of Data Collection.
addToListView bool true: adds the log input to the Log. (generally true).
return void
Beispiel #1
0
 /// <summary>
 ///  Accesses the AFServer to get data.
 /// </summary>
 /// <param name="server_database"> The string of the server and database 'server'-'database'</param>
 /// <param name="attName"> Name of the Attribute.</param>
 /// <param name="MatlabName"> Variable name to be used in Matlab workspace.</param>
 /// <param name="searchPath"> The path to the Element.</param>
 /// <param name="start">The time at which data will start being imported from.</param>
 /// <param name="end">The time when data will stop being imported.</param>
 /// <param name="edit"> true: Adds the log input into the LogSystem (generally true)</param>
 /// <returns></returns>
 public void getAFData(string server_database, string attName, string MatlabName, string searchPath, string start, string end, bool edit)
 {
     MatlabName = MatlabAccess.modifyMatlabName(MatlabName);
     if (MatlabName == string.Empty)
     {
         return;
     }
     try
     {
         AFAccess.getAFData(server_database, attName, MatlabName, searchPath, start, end, edit);
         mainForm.Status("Data sent for " + attName);
         return;
     }
     catch { checkMatlab(true); mainForm.Status("ERROR: Data not sent for  " + attName); return; }
 }