02-25-2019 05:16 AM
Hi All,
I am facing issue in setting the runtime menu for a VI inside a PPL. I tried setting the menu statically as well as programmatically (using property node) but the default menu is shown always. When I read the value of the RT Menu property back, I get the value that I have set, but the menu shown is default.
Please let me know if any of you have tried this and you are able to get it working.
Thanks,
Sree
04-29-2019 05:14 AM
tl:r; If you can include the RTMs in your library, this is no problem. If they need to be separately edited (and not part of the lvlibp file), maybe it's tricky/impossible...
If I understand the problem you're trying to solve correctly, then I've attached some simple files showing it working (for LabVIEW 2017 32-bit Windows).
I included my compiled PPL, but of course for a different platform you can recompile.
Basically, I created a library with a single VI containing code much like you show in the image (taking a path input) and then a RunTime Menu with just the About LabVIEW dialog. I made sure to compile it with the default menu set. I then pass a path to the RTM, but in my case, (since the RTM is inside the PPL) the path looks like: <Current VI's Path (next to PPL)>/../MyLib.lvlibp/CustomRTM.rtm
Testing without a path connected shows the default RTM. Once I connect the path, I get the RTM compiled into the PPL.
If you don't want to use RTMs compiled into the PPL, you might have a problem (maybe this is what you wanted to do?) - I wasn't immediately able to use the same path (i.e with the MyLib.lvlibp section removed) to set the path - the indicators show it was found, but the menus didn't change.
05-05-2019 09:07 AM
Not sure how you fared with my last post, but here's a link discussing RTM in exes - it seems like they also have some requirement that they be included (perhaps).