AnsweredAssumed Answered

SigmaStudio 3.6 code generation bug

Question asked by RyanJ on May 2, 2012
Latest reply on Oct 5, 2012 by RyanJ

When generating C header files, the 'signal detection' block creates duplicate macro definitions. Here's an example with the duplicate names highlighted:

 

/* Module Signal Detection1 - Signal Detection*/

#define MOD_SIGNALDETECTION1_COUNT                     3

#define MOD_SIGNALDETECTION1_DEVICE                    "IC1"

#define MOD_SIGNALDETECTION1_ALG0_CONSIGDETALG1_ADDR   75

#define MOD_SIGNALDETECTION1_ALG0_CONSIGDETALG1_FIXPT  0x007FFE1B

#define MOD_SIGNALDETECTION1_ALG0_CONSIGDETALG1_VALUE  SIGMASTUDIOTYPE_FIXPOINT_CONVERT(0.999942239533362)

#define MOD_SIGNALDETECTION1_ALG0_CONSIGDETALG1_TYPE   SIGMASTUDIOTYPE_FIXPOINT

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_ADDR      76

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_FIXPT     0x00000346

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_VALUE     SIGMASTUDIOTYPE_FIXPOINT_CONVERT(0.0001)

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_TYPE      SIGMASTUDIOTYPE_FIXPOINT

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_ADDR      77

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_FIXPT     0x0000679F

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_VALUE     SIGMASTUDIOTYPE_FIXPOINT_CONVERT(0.00316227766016838)

#define MOD_SIGNALDETECTION1_ALG0_SIGDETALG1_TYPE      SIGMASTUDIOTYPE_FIXPOINT

Outcomes