05-09-2012 10:45 AM
Hello All,
I am encountering an interesting problem. I made a simple LabView application on my laptop that is intended to display and log serial data from a serial port.
When I developed the VI on my laptop I was using a USB to Serial converter, which is perhaps pertinent.
I built the executable, and put it on my target PC. I had to install the LabView 2011 runtime environment on the PC. When I tried to run the executable, at first it gave me an error and said the CPU could not run with SSE optimizations. So I rebuilt the .exe with SSE disabled.
The .VI runs now, but when I go to choose the serial port that the vi should be reading from, it cant see the serial port. It actually can't see any ports, it only gives the 'refresh' option in the standard pulldown menu. I also tried using a USB to serial converter, and it doesnt recognize that virtual port either.
The .vi works fine on my laptop.
On the PC I am running Windows XP sp3 and it has an older Intel Celeron processor 1.2ghz .
On the Laptop I am running Windows 7 and it has a intel i5 processor .
If anyone has any ideas or thoughts or potential relevant information that may help me solve this problem, I would really appreciate it because I am out of ideas on how to fix this. Thanks for the help!
05-09-2012 10:56 AM
What you don't mention is whether you included the NI-VISA runtime engine, MAX, the hardware configuration in MAX, or the USB-RS232 driver in your installer. You did create an installer, didn't you?
05-11-2012 10:52 AM
I did not create an installer actually, i just made an exe. I manually installed the runtime engine on the target PC. I have very little harddrive space to work with on the target PC, I dont think I can fit MAX and other stuff on there. But if an installer is a good bet for making sure a problem like this happens I can figure out a way to test out that solution.
Any idea what might be causing the problem though? You think some Windows component isnt installed or the driver being used is super old or something?
05-11-2012 11:06 AM
No code that uses hardware will work unless you actually install the driver for that hardware. As I said, you need the VISA runtime as well as the LabVIEW runtime and you must install the windows driver for the USB device. You can certainly install everything separately but creating an an all incompassing installer is preferred.
What kind of target has so little disk space?
05-11-2012 12:12 PM - edited 05-11-2012 12:13 PM
Memory is inexpensive- (I think I heard that once or twice)
05-22-2012 01:23 PM
Thanks Dennis for the info!
And ya haha, its pretty embarrassing that I am even trying to use such an old computer with such a ridiculously small hard drive. But it is just a very simple serial port observation program so my IT guy only wanted to give me pretty much the worst computer there was available for me to use for such a project.
Thanks again I didn't realize the installer did so much.