Hello everyone,
I’m looking for a faster and more efficient way to bind a structured array to a Table widget in Automation Studio 4.12. My table has seven columns:
- Index
- Name
- Real Value
- Software Value
- Inverse (toggle button)
- Delay
- BindingIndex
Currently, the only method I’ve found to bind my values to the table columns is by creating separate arrays for each attribute. However, this approach isn’t ideal.
To give more context, I’ve set up a custom management system for my digital inputs and outputs, which are displayed and can be modified from the HMI panel. Here’s a simplified overview:
- My data is organized in an array of structures (
diPackaging
) that holds all necessary information for each I/O, including fields likeIdx
,Name
,Value
,Inverse
, etc. - I would like to bind each field directly to the table columns, so that, for example,
diPackaging[i].Name
binds directly to the “Name” column, anddiPackaging[i].Value
binds to the “Software Value” column.
The issue I’m facing is that I can’t seem to bind the fields within diPackaging
directly to table columns without creating supporting arrays for each field.
Is there any way in Automation Studio 4.12 to bind diPackaging.Name
directly to the “Name” column, diPackaging.Value
to the “Software Value” column, and so on, without creating additional arrays?
Thank you for any insights or suggestions!