<< Click to Display Table of Contents >> Navigation: »No topics above this level« MemberCollection.Connect Method |
Creates a connection of each member object to its processvariable
[Visual Basic]
Public Overrides Overloads Sub Connect()
[C#]
public override void Connect();
The Uploaded event from the collections parent notifies that each member was successful uploaded. So for connecting the whole MemberCollection it is useful to wait for the parents uploaded event.
// Create new connection to a variable of type structure
Variable varSt = new Variable(cpuObj,"stVariable");
// Add handler for Uploaded event
varSt.Uploaded += PviEventHandler(Members_Uploaded);
// connect the struct variable
varSt.Connect();
...
// Receive uploaded event
private void Members_Uploaded(object sender, PviEventArgs e)
{
((Variable)sender).Members.Connect();
}
MemberCollection Class | BR.AN.PviServices Namespace
Generated from assembly BR.AN.PviServices [8.1.0.4]