Currently the generated db is something like below. This means that the result of the RPC is written back to the first PV. This makes sense in some cases, but is not correct in other cases.
The idea would be that the action PV (test1-Square) is set to 1, to initiate the action, and then it would drop back to 0, to indicate completion. But since we have the readback PV, this is not required. I see two possibilities:
1) we have a boolean action, where you set it, and then it resets itself. In this case, explicitly calling setValueBack is not even necessary.
2) we have any other kind of action, which is essentially a function receiving an input, which outputs the value through the feedback record. In this case, the action PV would not be "reset" via the database.
Currently the generated db is something like below. This means that the result of the RPC is written back to the first PV. This makes sense in some cases, but is not correct in other cases.