Hey all,
I have a program that measures a part of known values with several probes. I need to be able to choose between them in a logical way. I'm not sure which of all the possible loop combinations would be best.
What I need to happen:
given probes A B C D E F
given 3 sets of 5 features SET1 SET2 SET3
always measure SET1 with probe A.
always measure SET2 and SET3 with probe B.
Operator then chooses which of the remaining probes to use, I have tracefields and variables that get set to YES or NO.
C is chosen: measure SET2 and SET3 with probe C.
D is chosen: measure SET3 with probe D.
E is chosen: measure SET2 and SET3 with probe E.
F is chosen: measure SET2 with probe F.
Each probe other than A and B are optional.
Currently:
Each set gets dimensioned immediately after its features.
Each set has a name label at the beginning of the code block.
End goal is to measure each set as required with only the single operator input at the beginning for the tracefield.
Any combination of flow control commands to get to this end is open for consideration. I'm asking for advice hoping to avoid falling down the rabbit hole of brute force testing.
Thanks in advance!
Derrick
I have a program that measures a part of known values with several probes. I need to be able to choose between them in a logical way. I'm not sure which of all the possible loop combinations would be best.
What I need to happen:
given probes A B C D E F
given 3 sets of 5 features SET1 SET2 SET3
always measure SET1 with probe A.
always measure SET2 and SET3 with probe B.
Operator then chooses which of the remaining probes to use, I have tracefields and variables that get set to YES or NO.
C is chosen: measure SET2 and SET3 with probe C.
D is chosen: measure SET3 with probe D.
E is chosen: measure SET2 and SET3 with probe E.
F is chosen: measure SET2 with probe F.
Each probe other than A and B are optional.
Currently:
Each set gets dimensioned immediately after its features.
Each set has a name label at the beginning of the code block.
End goal is to measure each set as required with only the single operator input at the beginning for the tracefield.
Any combination of flow control commands to get to this end is open for consideration. I'm asking for advice hoping to avoid falling down the rabbit hole of brute force testing.
Thanks in advance!
Derrick
Comment