LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append VI list of SubVIs to report (path).vi cause error code 2146823136

Hi all,
 
LV: 8.5 + DSC
 
I'm trying to create documentation automatically. I'm using "Append VI list of SubVIs to report (path).vi" VI to add list of subvis to .doc file. Inside "Append VI list of SubVIs to report (path).vi" is subVI called "Append VI List of SubVIs to Report (refnum).vi". This subvi cause that error code as can be seen in attachment. The problem is that the name of 3D-surface object contain illegal characters. Why this object name is invalid ? Hierarcy can be seen in second attachment. Should I modify this subVI or is there any more sophisticated method to fix issue.
 
Thanks,    
0 Kudos
Message 1 of 4
(4,076 Views)

Hi SnowForest,

you could write a function which check for illegal characters in the filename and replace them if existing.

Mike

0 Kudos
Message 2 of 4
(4,068 Views)
Windows does not accept : (colon) as a valid character, hence the error.  To add to Mike's comments, use search and replace string function to replace it with something else like an underscore for example, before doing the "append to path" operation.
 
Hope it helps.
0 Kudos
Message 3 of 4
(4,055 Views)
Hi,
 
Thank you Mike and Vikas K. This solved one problem, but after that I found new one. I made a new thread about that issue.
 
 
Weekends,
0 Kudos
Message 4 of 4
(3,983 Views)