LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview exe works but does not save everything

My program works when it is run as a vi and when it is run as an exe on my computer but when I transfer the exe to a new computer it does not save all the data. It puts 0's in spots where the value should not be 0. It runs on that new computer and does what it needs to but just does not store all the data.

Here is the PID.vi

0 Kudos
Message 11 of 16
(983 Views)

Have you put extra indicators in your VI expecially on error outputs for your DAQ assistants and looked at them?

0 Kudos
Message 12 of 16
(977 Views)

Yes I tried that and I got a numeric error but I can't find anything about what it means. I output -201304.

0 Kudos
Message 13 of 16
(965 Views)

I figured it out. It turns out that when I copied it over I did not copy the log file that it was supposed to log to over. It was running perfectly fine and doing what it had to do but when I went to access the data to save it, it did not have it becuase the logs weren't there.

0 Kudos
Message 14 of 16
(959 Views)

Did you use Explain Error in the LabVIEW help menu?

 

I get

"Error -201304 occurred at an unidentified location

Possible reason(s):

File path specified is invalid, or the file is not a valid TDMS file. Specify the location of a valid TDMS file."

 

Something appears to be wrong with the file path.

0 Kudos
Message 15 of 16
(958 Views)

And where are you getting this error in your program ?

 

After a little Google search, it turn out to be an error for invalid tdms file path.

 

"File path specified is invalid, or the file is not a valid TDMS file. Specify the
location of a valid TDMS file."

 

See this PDF file: http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/01d50d3f86ee67d8862576cf00745e78/$...

 

Looking at your DAQ assistant, you have configured it to log to a tdms file. Is the path, F:\Physics\AnalogInResults.tdms, correct ?

Is it available all the time ?

0 Kudos
Message 16 of 16
(956 Views)