09-12-2023 12:59 PM
It seems very complex and potentially inefficient just for the sake of not imposing a generic connector pane to the implementers of "To JSON.vi". Also you are using front panel references, which may be removed when building to an exe or a packed library.
My method does not need any project item traversing, nor any connector pane checking as I load a strict VI refnum. This allows to wire the terminals directly.
Here is some code with my implementation of a "Serializable interface" if you want to benchmark and compare with your method.
Regards,
Raphaël.
09-29-2023 03:22 AM
@raphschru wrote:
It seems very complex and potentially inefficient just for the sake of not imposing a generic connector pane to the implementers of "To JSON.vi". Also you are using front panel references, which may be removed when building to an exe or a packed library.
You'd also want to test this in an executable asap.
It will probably fail, as the build removes the FP of the dynamically started VIs, so you won't get valid control references.
A solution is to give all those VIs a reference to one of it's controls. This will tell the compiler not to remove the FP. But I can't tell if that's the only problem.