Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 2.5 out of 5     Rate this Document

Error 6101 in Modbus Library MB Serial Example Master.vi

Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 8.6.1
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-VISA

Problem:
I have installed the Modbus LabVIEW Library but when I run "MB Serial Example Master.vi" I get error 6101.

Solution:
Error 6101 is a timeout error and it is caused by the failure of the communication between the client and the server. The most probable causes for the error are the following:
  1. The MB Serial Example Slave.vi must be started before the MB Serial Example Master.vi;
  2. The COM Ports must be connected using a null modem cable. Moreover the cable must match the communication protocol of the hardware (for example if the hardware has a RS-485 port, be sure that the cable is RS-485 compliant).  
  3. One of the COM Ports is not working properly. In order to verify that a serial port is operational, you can perform a serial loopback test: further details can be found in the "How to Do a Serial Loopback Test" tutorial linked below. There are also some free utilities that can be used to check the functionality of COM ports, as for example Portmon for Windows.


Related Links:
KB 3GLDMSIT: The Difference Between a Null Modem and Straight Through Serial Cable
KB 48NB9TBH: Pinout For Serial Port
Tutorial: How To Do a Serial Loopback Test
Portmon for Windows v3.02

Attachments:





Report Date: 06/16/2009
Last Updated: 06/16/2009
Document ID: 4YF6Q4RZ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit