LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 42 create folder

Hi everybody,
 
Test System is WinXP with LV8.2.
 
In the course of the vi I dynamically load VIs, create folders etc without a hitch. However after compiling to an executable,  I get error 42 when creating a folder or an error 8 when trying to open a vi reference.
 
Help would be much appreciated
Schorsch
0 Kudos
Message 1 of 5
(3,368 Views)

Hi Schorsch,

are you sure that your paths are correct? If you build an executable, then the function "getcurrentvi´spath" gives following back. C:\your.exe\your.vi.

Hope it helps.
Mike

0 Kudos
Message 2 of 5
(3,367 Views)

This, this and this may help.

 
0 Kudos
Message 3 of 5
(3,363 Views)
I have a little sub VI I always use when opening/creating files/folders. Gives a relative path to the file. (It's in 8.5 can save for something else if you need.)


0 Kudos
Message 4 of 5
(3,362 Views)
Thanks for vi,
 
gave me an idea and solved the problem! Smiley Very Happy
0 Kudos
Message 5 of 5
(3,359 Views)