02-27-2012 04:45 PM
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
02-27-2012 07:42 PM
There's no way to begin even suggesting ideas without you showing us some code to see how your program works.
02-27-2012 07:48 PM
Here it is
02-27-2012 07:56 PM
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?
02-29-2012 01:59 PM
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.
02-29-2012 03:20 PM
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
02-29-2012 03:43 PM
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.
02-29-2012 04:02 PM - edited 02-29-2012 04:04 PM
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.
02-29-2012 04:29 PM
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.
02-29-2012 10:48 PM
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.