06-06-2006 10:40 AM
06-06-2006 10:57 AM
I can see a couple possible sources of an error. One is the hard-coded path to a file. It might be better to just let the file be created in the same folder that the exe is installed to. Then the end user can install it wherever. Be aware that if you use the function Current VI's Path, it will be different when you build an exe. You need to check to see whether the app is running in the development or run-time system and do an extra strip path if it's the run-time. The application property App.Kind will return this information. Second, did you select to include the VISA run-time support when you built the app? You need that to run your serial communication. I think this might be the most likely source of the error.
Your front panel error out indicator is hidden. You might want to make it visible to that you can get an actual error code.
I don't understand how the application can be run run without the LabVIEW run-time being installed. Assuming that your distribution is the microsoft .msi file, this will have to be run and this will put the LabVIEW run-time on the pc. Also, it shouldn't matter one bit whether the end user has Excel installed or not. You are not writing a native Excel file at all. You are writing a text file with a .xls entension. If you were using ActiveX to invoke Excel and write that way, then that could be a problem.