LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Question - Serial Port

I am building a software with Labview 4.0 (a little old version) using
serial port. Since I almost finished it, I made a executable file. But
there comes an error("Device not found.") from the beginning, which was
never happened when I run it in the developing environment. It runs
really well in the developing window. I put the "serpdrv" in the same
folder of the executable file, but in vain. Is there anyone who can
help me?


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 3
(1,768 Views)
Did you check your labview.ini file? It's in LabVIEW's main folder. Make
sure this line is there (if not, just add it to the end of the file).

serialDevices="COM1;COM2;COM3;COM4;COM5;COM6;COM7;COM8;COM9;\\.\COM10;\\.\COM11;\\.\COM12;\\.\COM13;LPT1;LPT2;"



Basically, LabVIEW has to know what ports are on your system. This feature
isn't documented very well...

Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 2 of 3
(1,768 Views)
The file serpdrv must be in the same directory of your exe, it is the
interface between Lv and Pc ports.
and if you perform data acquisition you must have daqdrv

jhkang@cwill.com a écrit dans l'article <7qmrn3$6ov$1@nnrp1.deja.com>...
> I am building a software with Labview 4.0 (a little old version) using
> serial port. Since I almost finished it, I made a executable file. But
> there comes an error("Device not found.") from the beginning, which was
> never happened when I run it in the developing environment. It runs
> really well in the developing window. I put the "serpdrv" in the same
> folder of the executable file, but in vain. Is there anyone who can
> help me?
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>
0 Kudos
Message 3 of 3
(1,768 Views)