09-19-2016 02:00 AM
Hi Diane,
Yes checking empty values before concatenation could be a solution but I had to do it for each variable and each time I
concanate so for me I duplicate code... As I often call my sub VI I prefer to do the test inside, once.
What's the problem to include the concatenation part also in a subVI - with proper input checking added?
But when I convert string data to filepath I loose the "\\" and automatically just have "\"... Some options in the filepath command are activated?
There's no special command - here basic rules for creating file paths are applied!
(Atleast on Windows) there are no double backslashes allowed in filepaths - so they are replaced by a single backslash.
Again:
- building a filepath using an empty string is just a FAIL.
- Using simple string functions to build file paths also is a fail as you are advised (several times) to use the fiule path functions available in LabVIEW!
- check for empty strings BEFORE conversion to a file path - anything else will give you trouble!