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

Error 37 When Upgrading LabVIEW Code with Serial Communication on FieldPoint Controller

Primary Software: LabVIEW Development Systems>>Full Development System
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-FieldPoint
Hardware: Compact FieldPoint>>Controllers>>cFP-2020

Problem: I have a program that runs in LabVIEW 6.1 that does serial communication with my cFP-2020 controller using the serial compatability VIs. Why do I get error 37 when I port the code to LabVIEW 7.0 and try to run it on my new cFP and FP hardware?

Solution: If the user-specified serial port is not found in LabVIEW, error 37 is generated. When a LabVIEW program is using the serial compatibility VIs in LabVIEW 6.1 or a previous version, it uses a serial driver called "serpdrv" that interfaces with the Windows serial driver to control the COM ports. In order to get the program running with LabVIEW 7.0, a user would have to get a compatible version of the serpdrv and install it on their machine in the location specified by the libdir configuration option, which is usually the LabVIEW directory by default. The following attachment has several versions of the serpdrv for different versions of LabVIEW. The serpdrv60 should be used with LabVIEW version 6.0 and later.

Related Links:

Attachments:


serpdrv.zip


Report Date: 02/17/2004
Last Updated: 08/18/2005
Document ID: 36GEAUKZ

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