10-15-2018 10:04 PM
I started with a somewhat rambling post here: Building dependent PPLs on cRIO. That post was in an Actor Framework on cRIO specific subforum because it began with compiling AF, but I think my questions are now more general, so I'm posting here.
I'm going to use bullet points to try and break up a set of observations/facts/hopes/opinions that might otherwise be a little difficult to read.
Some questions:
Any advice is much appreciated.
10-15-2018 10:19 PM
First and foremost I would recommend that you look at using MGI's Solution Explorer. It really helps when building PPLs. It make life a lot easier. Secondly, I wold recommend that you set up a continuous integration system using something like Jenkins. When you start using PPLs you will need to rebuild often and something like Jenkins will help you to automate the process.
LV 2018 has an example project for building AF into a PPL. You will need this for your system. I have been told there is a bug in LV 2017 with building AF as a PPL. We switched to LV 2018 as a result of this.
What I think you will need to do is have your build environment setup so that you build your target dependent PPLs and include a prefix or postfix to the PPL name to designate which target it is for. Your code will probably need to use conditional disable structure to load the correct library for a given target. I have not attempted to do this myself but I will need to in the near future. I have had to place other code in conditional disable structures to load different code for specific targets but have don't that with PPLs yet. though I don't see why this wouldn't work. The VIs calls in the different case of the conditional disable structure would be the same but would be using the correct version of the PPL for the specific target. Your source code for the PPLs would be common, only your build specs and the name of the PPL would change for each target. This isn't the cleanest solution but I think it should work.