LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when programmatically adding item to LabVIEW project

Solved!
Go to solution

I am trying to add a VI programmatically to a LabVIEW project using ActiveX property/invoke nodes:

 

22260iD54B2238687AF8CA

 

I get an error message (not an ordinary LabVIEW error) when the VI's name contains an underscore (which many of my VIs do...):

- when I try to add item.vi, everything is fine

- when I try to add item_.vi, the error dialog appears.

 

22262i3F2EFACF14F495AC

 

See attachment for an example application (LabVIEW 2010) demonstrating the problem.

 

Does anybody have an idea how I can avoid that problem without having to rename all my VIs?

0 Kudos
Message 1 of 3
(4,154 Views)
Solution
Accepted by topic author dlanger

Hello dlanger

 

you want to add a file please try this

 

22429i622B1C19B6B2AA02

 

Adding items is used for adding a folder to a project.

Pleas let me know if it works.

best regards
Alexander
Message 2 of 3
(4,123 Views)

Super cool, it works! Thank you! 🙂

0 Kudos
Message 3 of 3
(4,115 Views)