04-04-2023 02:56 AM
Hi everyone,
when I build my project into an llb, the compiler will stumble over multiple files with the same name causing it to put them outside the llb in separate folders. Code distribution is a little painful then.
I figured it out this is caused by the stupidity, that labview cannot have to files with the same name withhin the same scope. So far so clear.
My problem is that I have no idea how to fix this as those files are from NI themselves. NI_Report, NI_html and NI_standard report, Less Functor, Less Comparable and also the same for streams and pipes.
For Streams and Pipes it's a special pain in the arse as labview will not recognize them as different and will try to put them in the same folder (that's why i gave up using this feature even though I waited for it for arount 15 years to come) causing the build to fail.
So... The only solution is that while the build process the files in the used classes will be renamed to unique name. I somewhere read a while ago that there is an option for this but I cannot find anything.
Thank you guys and I'm sorry for my bitterness.
04-04-2023 03:02 AM
You'd have to explain first why you want to use llbs in the first place.
Most LabVIEW programmers that have been around long enough gave up on llbs 15 years ago.
If you do need plug-in like modules, ppls is probably the way to go.
04-04-2023 03:15 AM
Unfortunately I cannot change the system. It expects llbs to come to I have to deliver. It's a plug-in like system.
04-04-2023 03:29 AM
@Nils_Thomsen wrote:
Unfortunately I cannot change the system. It expects llbs to come to I have to deliver. It's a plug-in like system.
Do you really need everything to be in one llb? Is it perhaps not enough to have the top-VI(s) in the llb and the rest outside?
If not, then its a bad system and needs to be changed.
04-04-2023 03:32 AM
wiebe@CARYA wrote:
You'd have to explain first why you want to use llbs in the first place.
Most LabVIEW programmers that have been around long enough gave up on llbs 15 years ago.
If you do need plug-in like modules, ppls is probably the way to go.
I actually gave up on ppls and created a llb-plugin system after watching one of Darrens presentations. Much less headaches.
04-04-2023 03:48 AM
Maybe it's a bad system but - as stated - I cannot change it. LLBs are expected and the way to go.
But this is not the question.
The problem is the LV build process.
04-04-2023 04:02 AM
04-04-2023 04:04 AM
No it wont. There es for example the file "lesser than.vi" that will in both cases be renamed to "prefix_lesser than.vi" again causing two files having the same file name.
04-04-2023 04:23 AM
04-04-2023 06:04 AM
I don't see the point in adding a prefix. It will simply rename all files what will bring no advantage as they later still have the same name.