LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Easy serial port question

Hi all, I've got a simple problem on my hands --

I have two machines running Win NT, one has LabVIEW 5.1, the other just
has the run time engine (so it can run LabVIEW .exe files). They are
connected via a serial port, set to COM2 for both machines (good
connection verified thru HyperTerminal).

Anyway, when I run the sample VI "Labview <-> Serial", it seems to
work. But when I make it an executible, it returns "Error 37 - Device
not found". Now, I'm not *sure* it's working as just a VI because the
other computer does not have LabVIEW on it, but I don't get any errors.

.... and I am including "serpdrv" when making the .exe, but I think that
only matters for LabVIEW 3.1 and older.

Any ideas on what is going on?

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 1 of 3
(4,161 Views)
I think a copy of serpdrv needs to be in the same directory as your new
executable.

Does the executable behave the same on both machines?

Rick Nelson wrote in message
news:378F94EC.809B8276@csciences.com...
> Hi all, I've got a simple problem on my hands --
>
> I have two machines running Win NT, one has LabVIEW 5.1, the other just
> has the run time engine (so it can run LabVIEW .exe files). They are
> connected via a serial port, set to COM2 for both machines (good
> connection verified thru HyperTerminal).
>
> Anyway, when I run the sample VI "Labview <-> Serial", it seems to
> work. But when I make it an executible, it returns "Error 37 - Device
> not found". Now, I'm not *sure* it's working as just a VI because the
> other computer does not have
LabVIEW on it, but I don't get any errors.
>
> ... and I am including "serpdrv" when making the .exe, but I think that
> only matters for LabVIEW 3.1 and older.
>
> Any ideas on what is going on?
>
> 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
(4,161 Views)
....if anyone else has had this problem... not only does serpdrv have to be
in the same dir, but you must append the following line to labview.ini
before compile:

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

(all one line)

.... and then copy that .ini file to "myprogram.ini" and change the first
line from [labview] to [myprogram], and put the .ini file in the directory
as 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 3 of 3
(4,161 Views)