LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview exe works but does not save everything

Hello,

I recently created a .exe from a vi and it works but it does not save some of the information to the text file when tested on another computer. It saves all the information on my computer which is the computer it was created on but not on any other computer. It is supposed to save the humidity level that is measured, the difference from measured and wanted. It seems to run fine but does not save the information so there is no way to insure that it actually maintaining the humidity where you want it to be. I was wondering if anyone knows why this is occuring. I am running labview 2011, I designed it on Windows 7 and have tried testing it on Windows 7 and Vista

0 Kudos
Message 1 of 16
(3,553 Views)

There's no way to begin even suggesting ideas without you showing us some code to see how your program works.

0 Kudos
Message 2 of 16
(3,547 Views)
0 Kudos
Message 3 of 16
(3,545 Views)

Are you sure it is reading the humidity correctly?

 

You have a DAQ assistant, but nothing really showing what the data is coming in to know if it is reading correctly.

 

Is the DAQ device named the same on the second computer as it is on the first?

0 Kudos
Message 4 of 16
(3,543 Views)

For the second computer it does not have a schematic because it is only an executable. It doesn't name the DAQ anything but it does recognized that DAQ is there. I can tell it uses the DAQ because it opens and closes the valves to allow either humid air or dry air to come into the chamber.

0 Kudos
Message 5 of 16
(3,518 Views)

Did you choose a valid file path on the 2nd computer so it has a file to save to?

You should close the file ref after the loop and also wire the error out to a error handler or indicator, i wouldn't be surprised if you get a Error 7 (file not found)

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 16
(3,513 Views)

Yes I have it set to save to a specific file. It does save certain information but sets other information to 0. here is a sample of what the .txt output looks like:

Time              Humidity %       Humidity % W        H-Dif                V(Out)            V(in)        Humidity Level      V(con)

2:52:05 PM        0.000000        63.545831        0.000000        5.000000        0.000000        2.763698        1.000000

 

It puts 0 for the humidity %, H-Dif, and V(in) which are all inputs from the DAQ.

I created a second .exe to test if I could get an input in from the DAQ and I did. I am running them both at the same time and the humidity is being held where it should be so I know the first .exe is doing its job its just not saving all of the information to the .txt file.

0 Kudos
Message 7 of 16
(3,509 Views)

No, you don't know it is doing its job correctly.  If it was, you wouldn't be getting zeroes for your humidity.  An .exe isn't going to selectively save data, it is going to save exactly what the code tells it to, and if the code is failing to read an input or parse the data correctly, then the incorrect data is what will get written to the file.

 

Put some extra indicators for data and errors on your front panel so you know whether your code is actually functioning properly once built into an .exe and run on the other PC.  If you put an error indicator on the error terminal of your DAQ assistant, I'm betting it will show you something interesting.

0 Kudos
Message 8 of 16
(3,505 Views)

I noticed my DAQ outputs a integer and I am using a DBL to string converter. Could that be the problem? I do know that it is maintainng the correct humidity because I have measured it with other means and it is right where it needs to be.

0 Kudos
Message 9 of 16
(3,501 Views)

Can you attach your simplepid.vi?  That's not attached, so if the problem is in there, it might explain it since that is the source of the value going to  your DAQ assistant output.

 

Can you state exactly what is not working correctly with your program?  I don't think you've ever clearly stated it.

0 Kudos
Message 10 of 16
(3,495 Views)