‎01-22-2010 05:39 PM
I have created a vi that communicates with a serial device. It works fine on the computer that it was creatd on. I then created an application and then built an installer to put it on another machine. The second machine does not have LV 2009 on it. Once installed on the machine the vi does not work. When it runs on the computer with LV 2009 the the com port control is a pull down, and it lists all comports on the computer and then you select the one you want to connect with. The computer that the vi is installed on does not list the available com ports. This leads me to believe that there is no serial comms support in the installable version. What do I do now?? I noticed that you can add "Additional Installers" when you build the installer and one of them is NI-Serial 3.4. I try to add this and a message said that it had to get, so I didn't use it thinking it was more than I needed and that standard com port driver would be included. Am I wrong here or am I missing something else?? All help is greatly appreciated.
Solved! Go to Solution.
‎01-22-2010 06:14 PM
‎01-22-2010 10:47 PM
‎01-23-2010 12:21 PM
‎01-24-2010 12:23 PM
‎01-24-2010 01:32 PM
‎01-25-2010 09:41 AM
Thanks for the help. I did not include the NI-VISA Runtime as an additional installer.
SSmith
‎10-13-2010 03:13 AM
Hi at all!!
I'm new in NI forum.
I have one similar problem. My VI communicate with external device on serial port. The VI work very well, but when I create executable (.exe) file with Labview application builder (on Labview 2010) the .exe don't use serial port!!! The executable run perfectly (nothing error or warning by the application builder), but the serial data on selected COM port isn't send!!! Also on the PC where I developed the VI!!!
What can I do?
Thanks for all!!
‎10-13-2010 09:57 AM
Claudio--
When you build the installer remember to add the NI-Serial, Under the "Additional Installers" tab. You might have to also add NI-VISA Runtime also. Hope this helps.
ssmith
‎10-13-2010 10:51 AM
@claudio.rossi wrote:
Hi at all!!
I'm new in NI forum.
I have one similar problem. My VI communicate with external device on serial port. The VI work very well, but when I create executable (.exe) file with Labview application builder (on Labview 2010) the .exe don't use serial port!!! The executable run perfectly (nothing error or warning by the application builder), but the serial data on selected COM port isn't send!!! Also on the PC where I developed the VI!!!
What do you mean by your last sentence? Are you trying to say that you can't run your executable even on the same computer on which you developed the application? If so, was LabVIEW open when you tried to run it? Try quitting LabVIEW; if you had previously run your VI and didn't close the serial port, LabVIEW might have kept it open, which would prevent the executable from accessing it. If the executable won't run on the development machine it's unlikely to be resolved by installing VISA since you need that installed for the VI to work properly in the development environment. Do you have any error handling in your code that would indicate if an error occurred after trying to write to the serial port (an indicator on the front panel, or a call to Simple Error Handler)?