03-19-2020 04:57 AM
Hi,
I am trying to improve my SCC game: I've been using git with my projects, but when I make something that might involve an object called by multiple VIs, everything that is involved will be marked dirty and needs to be checked out even if I did not change those directly. The I found the option "separate compiled code from source" which is made to deal with this issue. However, when looking at the support pages I have found something that I can't understand properly: "Do not separate compiled code from VIs that you intend to load or run using the LabVIEW Run-Time Engine."
Does this mean that if I intend to build an executable in the end it won't work with separating the compiled code? Or does it mean that I can't call these VIs as raw VIs from the RTE? If the latter, I guess, I can deal with it, if the former, I guess I'll need to let this option go.
Thanks
Solved! Go to Solution.
03-19-2020 05:06 AM
Hi Jean-Luc,
@jeanlucpicard wrote:
Does this mean that if I intend to build an executable in the end it won't work with separating the compiled code? Or does it mean that I can't call these VIs as raw VIs from the RTE?
This only applies to VIs you want to call from an executable using VIServer methods, "separate code" will not affect building executables…
03-19-2020 05:50 AM
That sounds good for me
Does this also mean that if I have for example an optimizer which calls the goal function via a VI ref, that should also work, right?
03-19-2020 05:52 AM
Hi Jean-Luc,
@jeanlucpicard wrote:
Does this also mean that if I have for example an optimizer which calls the goal function via a VI ref, that should also work, right?
That depends how you provide that VI reference: when the VI is placed separately from your executable file (i.e. not using a static reference), then this VI must include the compiled code to be able to run by RTE…
03-19-2020 06:07 AM
I also include those in the project and hardcode the VI to be used with a static ref, so then it should be fine, right?
03-19-2020 07:17 AM
@jeanlucpicard wrote:
I also include those in the project and hardcode the VI to be used with a static ref, so then it should be fine, right?
Then it should be included, yes. It's easy enough to build and test. 🙂
/Y
03-19-2020 12:58 PM
The only time separating the compiled code from the source is an issue is if you are dynamically calling VIs from the executable AND distributing those VIs separate from the executable itself, that is using plugins. You can still distribute plugins separately and manage your SCC by using packed project libraries. Those are compiled code and can be called dynamically from an exe and be distributed independently of the exe itself.