Franck
See below.
Martin
*****
Subject: LabVIEW 6.1 serial port issue
From: "Brian H. Powell" 
Date: Fri, 25 Jan 2002 15:04:12 -0600
     Thanks to a lot of help from Lew Drake, we figured out what's happening
with his serial port not working with the serial compatibility VIs.  The
problem only occurs if you install the LabVIEW Datalogging and Supervisory
Control (DSC) add-on product to LabVIEW.
     It turns out that the LabVIEW DSC module inserts an incorrect line
into the labview.ini file.  This causes us to try to open the wrong COM
port.
     Specifically, the DSC installer adds:
serialDevices="COM1;COM2;COM3;COM4;COM5;COM6;COM7;COM8;COM9;LPT1;LPT2;LPT3;L
PT4;
(That should be all on one line, but I'm not sure if it'll be word-w
rapped
when I send this message.)
Anyway, there's a leading quote on that line, but no trailing quote, so we
don't strip the leading quote.  Thus, we try to open "COM1 (with a leading
quote).  This doesn't work and you get the all-time-favorite serial error
37.
     The fix for most people is to remove this line from your labview.ini
file after DSC is installed.  If you don't have the DSC module, you won't
see this problem at all.
     I will again encourage people to use VISA for all future serial port
development.  At some point, I would like to see the "serpdrv" VIs go
away.  (And since I'm the decision-maker on this, it'll probably
happen. 🙂
     There'll be a Knowledgebase article for this soon, and it should be
fixed in the next release of the DSC module.  (There are no immediate
plans to re-release it since this issue has a simple workaround.)
Brian
"franckfischer"  wrote in message
news:506500000005000000CD5B0000-1011517314000@exchange.ni.com...
> Hello Nik
o,
>
> In your VI, you are asked of the port number, what have you specified
> ? On my PC/notebook, I have only COM1, so I suppose that the port
> number was 0 but I always get error 37.
> Thank you for your help.
>
> Franck.