LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a new directory which works in exe format ?

Solved!
Go to solution

Hi friends.

I wanted to design a program that stores some data and I want to store this datas in a directory beside my program. In the vi format everything is fine ( I have attached a sample of what I did). But when I change my program to exe format it doesn't create the directory? I think this is because of the current vi path! But how can I implement this design? Please help me.

With best Regards,

Masoud

0 Kudos
Message 1 of 6
(2,599 Views)

Read this:

 

Why Does My Executable Not Work When Using the Current VI's Path Constant? .

 

 

Ravens Fan was faster than me...

Message 3 of 6
(2,585 Views)

@J-M wrote:

Read this:

 

Why Does My Executable Not Work When Using the Current VI's Path Constant? .

 

 

Ravens Fan was faster than me...


True, but you added one more word than me. Smiley Very Happy

Message 4 of 6
(2,575 Views)

oh thanks alot. sorry i am new here i didn't find the solution by my self. you really help me thanks alot

0 Kudos
Message 5 of 6
(2,563 Views)

As I mentioned to you in our previous communications, posting to this forum will generally get you answers more quickly than asking an individual. I tried posting images of how I had handled this, but apparently am not able to post them from here.

 

As I had suggested earlier, the problem, as described in the links the two others posted, is that when you build an exe it adds another "layer" to the paths, the calling vi is now inside a higher level (the exe) so you need to strip the path one more time.

 

Good luck, come here for more assistance if you need it, I wasn't trying to ignore you, just can only do so much on my iPod while walking between meetings!

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 6 of 6
(2,561 Views)