What is a good way to secure cables to a PCB?
There are some good advice in the following post, but the application is slightly different:
In this case, the strain-relief/securing of the cables will be onto the PCB, not to a casing. (The PCB will be encapsulated or just given a layer of conformal coating, so there isn't any casing.)
I'm considering to run the cables to the edge of the board. Then at the edge, press the cables between the PCB and a metal bar. The metal bar is pressed against the PCB with bolts and nuts (nylock or thread lock).
What might be the problems of this solution and what other methods should I consider?