drbitboy
Lifetime Supporting Member
As a diagnostic, immediately after the line with the [OTE OUTPUT], add summat that will declare whether the output is assigned a 1 by the OTE, i.e.:
When running, either AFLOAT will increment at order 1kHz, indicating the programm is assigning 1 to output, or not at all, indicating the program is assigning 0 to OUTPUT.
If AFLOAT is incrementing, but OUTPUT is 0 in every other indication, then there is something else that is setting it to 0.
SourceA/Dest does not have to be named AFLOAT; any float will do.
Use floats to avoid any overflow and subsequent fault.
Code:
OUTPUT
--- ... ------------------( )---
OUTPUT
---] [-----[ADD ]---
[SourceA AFLOAT]
[SourceB 1]
[Dest AFLOAT]
When running, either AFLOAT will increment at order 1kHz, indicating the programm is assigning 1 to output, or not at all, indicating the program is assigning 0 to OUTPUT.
If AFLOAT is incrementing, but OUTPUT is 0 in every other indication, then there is something else that is setting it to 0.
SourceA/Dest does not have to be named AFLOAT; any float will do.
Use floats to avoid any overflow and subsequent fault.