Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

to build a Demo program

My program (LabVIEW) is to read a file which was stored in  a folder before ( spreadsheet type) then plots it on graphs. It is OK. Then I built it (stand alone application). When it works, it have to find the file in that folder. How to avoid this ? I hope someone understand my problem.
0 Kudos
Message 1 of 5
(3,152 Views)

No, I don't understand the problem. 'It works and it has to find the file'. Do you mean that it does notwork because it does not find the file?

An extremely common problem for first time users of the LabVIEW application builder is that they don't take into account the fact that paths are different when the app is built. If you use the Current VI's path function, in development mode it will return something like c:\folder\example.vi. When built, it will return c:\folder\app.exe\example.vi. In order to get to the folder, you need to do an extra strip path. Go to http://digital.ni.com/public.nsf/websearch/686119C33C2C30C186256CA70081AC25?OpenDocument and read about one way to fix it.

If this is not the problem you are seeing, try to provide some details.

Also, try to keep questions like this in the LabVIEW board. It has nothing at all to do with multi-function DAQ.

0 Kudos
Message 2 of 5
(3,148 Views)
I think I didnot explain my problem more clearly. My problem may be explained an other way: How can I store the content of a data file in a labview application? when the program runs,it doesnot need to read that file, it can work on any computer that do not have the file. The
0 Kudos
Message 3 of 5
(3,137 Views)
Write a VI to read the file and have an indicator for the contents. Run the VI. Go to the block diagram and right click on the terminal and select 'Create Constant'. Copy the constant and paste it into the VI that needs the data. Note that this will increase the size of the VI.
0 Kudos
Message 4 of 5
(3,127 Views)
It is OK now. Thanks a lot.
0 Kudos
Message 5 of 5
(3,110 Views)