LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call library function node

Solved!
Go to solution

hi ,

i want to copy file from path to another path,i try 2 methods:

1-the first i use the copy function but i still have an error with it ( duplicate path) .but the file is copied.

2- the second, i use call library function node but it still give zero result(the file is not copied to the new path)

my code is so large and necessite many files to be attached,so i attached an image of a portion of my code

0 Kudos
Message 1 of 5
(2,562 Views)

What is the reason for you to use scenario #2? What DLL are you calling?

 And how?

 

What are the exact input values in scenario #1?

0 Kudos
Message 2 of 5
(2,557 Views)

for the scenario 2 ,i just try another method to have a solution with no error, i search in digital.ni.com 'how to copy a file" and i find this method.

for the scenario 1,i will send the code,but it will not run because it need to load another vi

0 Kudos
Message 3 of 5
(2,549 Views)
Solution
Accepted by topic author iman

Did you look at the Help for the Copy File function? It has an "overwrite" input.

 

Note: Your code uses the Current VI Path function. Be careful with this function. Why Does My Executable Not Work When Using the Current VI's Path Constant?

0 Kudos
Message 4 of 5
(2,539 Views)

Smiley Happy omg it's ok, a  true constant o the overwrite solve my problem

thanks to all

0 Kudos
Message 5 of 5
(2,532 Views)