I’m collecting trouble codes from machines and trying to figure out the best way to store them in the platform.
Each time I sample, there can be from 0 to N trouble codes in effect. Each of the N trouble codes has 6 number parameters associated with it.
It’s a bit awkward to store them as attributes as my only option is to choose a maximum number of codes to represent, say K. Then I have many attributes code0_param0, code0_param1, code0_param2, code0_param3, code0_param4, code0_param4, code0_param5, code 1_param0, code1_param1 . . . . . all the way up to code codek_param5. It gets messy pretty quickly.
Is there a better way?