ADI struct

Hello to all!
I have this struct
typedef struct attribute((packed)) _MQTTRAWDATA
{
BYTE IDsens;
WORD NumSamples;
WORD SampleX[16];
WORD SampleY[16];
WORD SampleZ[16];
WORD BlockCounter;
WORD Crc;
}MQTTRAWDATA;
I have created this ADI struct
/*------------------------------------------------------------------------------
** Structured ADI #120
**------------------------------------------------------------------------------
/
static const AD_StructDataType appl_AdiWriteStructMQTTRawData[] =
{
/
Index: 0 / { “MQTT_IDsens”, ABP_UINT8, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.IDsens, NULL } } },
/
Index: 1 / { “MQTT_NumSamples”, ABP_UINT16, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.NumSamples, NULL } } },
/
Index: 2 / { “MQTT_SampleX”, ABP_UINT16, 16, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.SampleX[0], NULL } } },
/
Index: 3 / { “MQTT_SampleY”, ABP_UINT16, 16, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.SampleY[0], NULL } } },
/
Index: 4 / { “MQTT_SampleZ”, ABP_UINT16, 16, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.SampleZ[0], NULL } } },
/
Index: 5 / { “MQTT_BlockCounter”, ABP_UINT16, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.BlockCounter, NULL } } },
/
Index: 6 */ { “MQTT_Crc”, ABP_UINT16, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, 0, { { &MQTTRawdt.Crc, NULL } } }
};
and at the end
const AD_AdiEntryType APPL_asAdiEntryList[] =
{
{ 120, “MQTT_RawData”, DONT_CARE, 7, APPL_WRITE_MAP_READ_ACCESS_DESC, { { NULL, NULL } }, appl_AdiWriteStructMQTTRawData }
};

But when I open a parameter Web page of the Compact Com C40 I see the the "SampleX[16] are not displayed.
Where do I’m in wrong?

Maybe do it’s not possible to use an array in a struct?

Hello Paolo,

Are you seeing unsupported or something else from the webpage. I suspect you are seeing unsupported which is most likely from the data type you are using not being supported by the web interface. Subelements for types is fairly new to the compactcom. Most likely the feature has not made it to the web interface.

It has been logged as a bug but for more info on the issue I recommend opening up a case via mysupport,hms.se for more info and to help us qualify the issue further.

Deryck

Hello Deryck, thanks for your reply.
Yes, In the web page I read “unsupported”.
OK, I will not use the array in the ADI struct.
Paolo