- Empezar
- Crear proyectos
- OPC UA
- Objetos gráficos
- Objetos gráficos predefinidos
- Sesiones y configuraciones regionales
- Referencias de objetos y variables
- Extensión de proyectos
- NetLogic
- Referencia de API de C#
- Tutoriales
- Tutorial de alarmas
- Tutorial de vínculos dinámicos
- Tutorial sobe objetos gráficos
- Tutorial del registrador
- Tutorial de NetLogic
- Tutorial de OPC UA
Identificar problemas en proyectos actualizados
Si encuentra problemas con proyectos actualizados, tenga en cuenta las siguientes directrices.
Proyectos actualizados a 1.6.0 o superior
Si actualiza un proyecto anterior a la versión 1.6.0 a la versión 1.6.0 o superior, asegúrese de reemplazar las propiedades antiguas no compatibles con nuevas propiedades en NetLogics:
Propiedades antiguas | Nuevas propiedades |
---|---|
uint[] ParentArrayIndex | ElementAccess ParentElementAccess |
IUAVariable ParentArrayIndexVariable | IUAVariable ParentElementAccessVariable |
Fíjese en el siguiente ejemplo:
[ExportMethod] public void ChangeParentScalarIndex() { IUAVariable arrayVar = Project.Current.GetVariable("Model/ArrayVar"); DynamicLink myDynamicLink = arrayVar.Children.Get<DynamicLink>("DynamicLink"); //-------------------- 1.4.X IMPLEMENTATION -------------------- //Accessing parent array index in FactoryTalk Optix version lower than 1.6.0. //You can use monodimensional and multidimensional arrays. uint[] myArrayIndex = { 3 }; myDynamicLink.ParentArrayIndex = myArrayIndex; //You can only use the `ParentScalarIndex` property with a monodimensional array. //The following simplifies the access to the parent array index with a scalar value. //The following implementation is equivalent to the previous implementation. myDynamicLink.ParentScalarIndex = 3; //------------------------------------------------------------ //-------------------- 1.6.X IMPLEMENTATION -------------------- //Accessing parent array index in FactoryTalk Optix version 1.6.0 and higher. //Create an `ElementAccess` wrapper structure that exposes `ArrayIndexes` and `FieldIndexes`. //Use `ArrayIndexes` for arrays; Use `FieldIndexes` for structures. //Manage the access to an array or structure with `ParentElementAccess`. ElementAccess myElementAccessStructure = new ElementAccess(myArrayIndex); myDynamicLink.ParentElementAccess = myElementAccessStructure; //------------------------------------------------------------ }
CONSEJO:
Si aparecen errores sobre las propiedades depreciadas en los scripts o widgets en el informe de actualización, quite los scripts o widgets afectados del proyecto y vuelva a añadirlos. Para obtener más información, consulte Bibliotecas.
troubleshooting
struct
upgrade
projects
uint[] ParentArrayIndex
IUAVariable ParentArrayIndexVariable
ElementAccess ParentElementAccess
IUAVariable ParentElementAccessVariable
Entregue su opinión