Description: A sample project that shows a few different ways to force an output.
Project Background:
The RAMview implementation allows you to move data from the ECU to the application. If you populate a value in the RAMView data structure on the ECU, that value can be seen on the PC. Data written by the application will appear in the data structure on ECU, and the application can use that as needed.
There are two ways to manage a FORCE or OVERRIDE:
- The first way is to add an additional Boolean flag to the data structure, which when active, will tell the application to use the RAMview output value for the physical output, instead of the calculated application value.
- The second way is to implement the override as a function. When a variable is implemented as a function type, it doesn’t exist in the data structure, instead, a function is called in the KFXUser.c file. This function call includes a value, so you could implement this as an override when the value written is between 0-100, and return to default operation whenever the value written is outside this range.