LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read write problem

I had a code that was working perfectly until recently. Some part of the VI where it reads and write does not work. Does anyone have the patiece to actually go throught the code and help me. I am a beginer with LV.
When we make an exe using LV 7.1, all the source files are pretty much on the exe, correct? So, if I go and copy that exe elsewwhere, the source files should open correctly, right? I ask this because it seems that the files from vi.lib may have got displaced and hence it does not read/write.
 
Help required urgently.
 
0 Kudos
Message 1 of 7
(3,568 Views)
I am sure someone gonna have time to look at your program. 
------- LabVIEW 2009, So Easy, Even a Therapist Can Do It -------
0 Kudos
Message 2 of 7
(3,565 Views)

what's the error code you get when running the exe?? 

There maybe hidden files or some files that need to transfer together when move your exe from one pc station to another pc station.

regards,

Simon

0 Kudos
Message 3 of 7
(3,563 Views)
You didn't post your code for anyone to look at but I'm goint to guess that you did not take into account that paths are a bit different in the development environment and in the run-time. If you use a function like Get Current VI's Path, in development mode, it will return something like c:\folder\example.vi. After the app is built, it will return c:\folder\app.exe\example.vi. So, to get the path to the folder, you need to do an extra strip path. This is an extremely common mistake and there is a knowledge base article (that I don't have the link to offhand) and there have been numerous posts with the exact same question. There are a lot of ways to handle this. The one I usually use is to put in an application.kind property node and wire the output to a case structure. Put the extra Strip Path in the Run Time System case.
 


Message Edited by Dennis Knutson on 11-06-2007 08:20 PM
0 Kudos
Message 4 of 7
(3,553 Views)

Thanks Guys.

Dennis, you hit the nail on the head. I am attaching the top level VI for you guys to look at. This code is built by by predecessor (w/o much documentation) and hence so much struggle.

 

0 Kudos
Message 5 of 7
(3,525 Views)

Here are the other dynamically loaded vis.

 

Download All
0 Kudos
Message 6 of 7
(3,516 Views)
Heres more
Download All
0 Kudos
Message 7 of 7
(3,514 Views)