nfcomm.ocx: Error messages - Connection with weighbridge

Pachi
Member Posts: 25
Hi all,
I'm trying to connect NAV2009 R2 SQL Classic with a weighbridge connected to a PC through a COM port (COM4) using nfcomm.ocx.
I'm using the same port parameters than other software is reading weights from the indicator but I'm getting an error value I can not understand.
My code, until error, is the following:
"ErrorDesc" is an integer variable that receives value "-2". Could someone explain me the meaning of this value?
Thanks,
I'm trying to connect NAV2009 R2 SQL Classic with a weighbridge connected to a PC through a COM port (COM4) using nfcomm.ocx.
I'm using the same port parameters than other software is reading weights from the indicator but I'm getting an error value I can not understand.
My code, until error, is the following:
ComPort.ComX := 3; // 0=COM1, 1=COM2, 2=COM3, 3=COM4 ComPort.BaudRate := 6; // 4=2400, 5=4800, 6=9600, 7=19200, 8=38400, 9=57600, 10=11520 ComPort.DataBits := 4; // 0=4, 1=5, 2=6, 3=7, 4=8 ComPort.Parity := 0; // 0=none, 1=Odd, 2=Even, 3=Mark, 4=Space ComPort.StopBits := 0; // 0=1, 1=1.5, 2=2 ComPort.ClearBuff; ComPort.OpenPort; //PortOpen := ComPort.OpenPort; ErrorDesc := ComPort.CommError;
"ErrorDesc" is an integer variable that receives value "-2". Could someone explain me the meaning of this value?
Thanks,
0
Comments
-
Hi
We had some problems with nfcomm.ocx. We changed then to a commercial product:
http://www.activexperts.com/serial-port-component/
It contains demo code and is fully supported. Hope this helps
Thomas0 -
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions