04-03-2018 09:33 AM
The NI library "\vi.lib\Waveform\WDTFileIO.llb" contains the " Write Waveform to File.vi" file;
I.e. the first character of the filename is a "space".
This space can generate a problem because in our case to export our program we perform a "source distribution"
in which there is the main VI and a subdirectory with all the VIs used.
When the distribution is generated together with all the other VIs there is the " Write Waveform to File.vi" file with the initial space.
But, when with Windows a copy of the distribution directory is executed the initial space is removed from the filename
and therefore the distribution does not work.
To overcome this problem in the options to generate the distribution we have enabled the "apply prefix to all contained items" option
for all the "Dependencies".
So the filename will be "XXX Write Waveform to File.vi"; I.e. the space is no longer at the beginning of the name and the problem does not happen.
Is there any other way to overcome this problem?
Any suggestions ?
04-03-2018 12:18 PM
No suggestions, but that's a pretty snazzy workaround. 🙂
04-03-2018 01:25 PM
Another workaround would be to save your own copy of ' Write Waveform to File.vi', name your copy something sane, and use that instead of the vi.lib version.
05-22-2018 03:01 AM
A small remark regarding the workaround to use the "apply prefix to all contained items" option.
With this option if in the project there are DLL files, they too will be renamed and this could give problems.