Hi Deryck,
I’ll admit, now I’m completely lost.
If I can, let me reset the conversation to see if that helps.
I’ll explain what I’m trying to accomplish first.
In my device I have three types of parameters…
- Configuration settings that are read once and write once (as I understand ‘acyclic’) (slot 1)
- Results or ‘inputs’ which are read constantly by the master (‘cyclic’) (slot 2)
- ‘Outputs’ which are written constantly to my device (also ‘cyclic’) (slot 3)
With what I have the configuration settings are being written to constantly (not what I need) and I don’t understand why that is.
Below is my current code, I’ve attached the GSD I’m using.
const AD_AdiEntryType APPL_asAdiEntryList[] =
{
/* S/I */
/* 1/0 */ { 256, "PipeDiam", ABP_FLOAT, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stConfig.Alg.fPipeDiam ,&appl_sFloatProp[FP_PipeDiam] } }, GetAdiValue, SetAdiPipeDiamValue },
/* 1/1 */ { 257, "Viscosity", ABP_FLOAT, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stConfig.Usr.fViscosity ,&appl_sFloatProp[FP_Viscosity] } }, GetAdiValue, SetAdiValue},
/* 1/2 */ { 258, "ReynoldsC0", ABP_FLOAT, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stConfig.Usr.fReynoldsC0 ,&appl_sFloatProp[FP_NORange] } }, GetAdiValue, SetAdiValue},
/* 1/3 */ { 259, "ReynoldsC1", ABP_FLOAT, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stConfig.Usr.fReynoldsC1 ,&appl_sFloatProp[FP_NORange] } }, GetAdiValue, SetAdiValue},
/* 1/4 */ { 260, "ReynoldsC2", ABP_FLOAT, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stConfig.Usr.fReynoldsC2 ,&appl_sFloatProp[FP_NORange] } }, GetAdiValue, SetAdiValue},
/* 1/5 */ { 261, "VolUnits", ABP_UINT8, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stMapConfig.ucVolUnits ,&appl_sUCProp[UC_VolUnits] } }, GetAdiMapValue, SetAdiMapValue},
/* 2/0 */ { 511, "VFFiltered", ABP_FLOAT, 1, APPL_WRITE_MAP_READ_ACCESS_DESC, { { &g_stDSPDiagnostics.fVFFiltered ,NULL } }, GetAdiValue, NULL },
/* 2/1 */ { 512, "SOSFiltered", ABP_FLOAT, 1, APPL_WRITE_MAP_READ_ACCESS_DESC, { { &g_stDSPDiagnostics.fSOSFiltered ,NULL } }, GetAdiValue, NULL },
/* 2/2 */ { 513, "GVFFiltered", ABP_FLOAT, 1, APPL_WRITE_MAP_READ_ACCESS_DESC, { { &g_stDSPDiagnostics.fGVFFiltered ,NULL } }, GetAdiValue, NULL },
/* 2/3 */ { 514, "VFQuality", ABP_FLOAT, 1, APPL_WRITE_MAP_READ_ACCESS_DESC, { { &g_stDSPDiagnostics.fVFQuality ,NULL } }, GetAdiValue, NULL },
/* 2/4 */ { 515, "SOSQuality", ABP_FLOAT, 1, APPL_WRITE_MAP_READ_ACCESS_DESC, { { &g_stDSPDiagnostics.fSOSQuality ,NULL } }, GetAdiValue, NULL },
/* 3/0 */ { 766, "Pressure", ABP_FLOAT, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stExternalInputs.fPressure ,&appl_sFloatProp[FP_NORange] } }, GetAdiValue, SetAdiInputValue },
/* 3/1 */ { 767, "Temperature", ABP_FLOAT, 1, APPL_READ_MAP_WRITE_ACCESS_DESC, { { &g_stExternalInputs.fTemperature ,&appl_sFloatProp[FP_NORange] } }, GetAdiValue, SetAdiInputValue },
};
/
const AD_MapType APPL_asAdObjDefaultMap[] =
{
{ 256, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ 257, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ 258, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ 259, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ 260, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ 261, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ 511, PD_WRITE, AD_MAP_ALL_ELEM, 0 },
{ 512, PD_WRITE, AD_MAP_ALL_ELEM, 0 },
{ 513, PD_WRITE, AD_MAP_ALL_ELEM, 0 },
{ 514, PD_WRITE, AD_MAP_ALL_ELEM, 0 },
{ 515, PD_WRITE, AD_MAP_ALL_ELEM, 0 },
{ 766, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ 767, PD_READ, AD_MAP_ALL_ELEM, 0 },
{ AD_MAP_END_ENTRY }
};
Changing the ABCC_CFG_REMAP_SUPPORT_ENABLED flag does not appear to change anything
The GSD only lists slots 2 and 3
-ed
CIDRA_.gsd (16.8 KB)