That function node should work, and does work for me. I notice though that the status display does not change until the next time it receives a process sample, so if you are not also sending it data then you won't know that it has worked. Feed an inject node direct into the pid node to give it something to do and your function node should work. If not then post a mini-flow with injects and the function and pid node exhibiting the problem.