LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Data Value Reference (DVR) value dynamically during run-time

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.

Message 11 of 12
(389 Views)

@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.

0 Kudos
Message 12 of 12
(327 Views)