Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
8 ratings:
 3.5 out of 5   

Archived: Why Do I Receive Error 37 When I Run a Serial VI in LabVIEW for Linux?

This document has been archived and is no longer updated by National Instruments



Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 6.0
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-Serial

Problem:
Whenever I try to run Serial Port Init.vi, Serial Port Read.vi, Serial Port Write.vi, or any other Serial VI in LabVIEW for Linux, I get Error 37. Why is this?

Solution:
You may not have permission to access the serial device. The serial ports in Linux are accessed like files. The file names of the serial ports are /dev/ttyS0 and /dev/ttyS1. You can view the permissions of the serial ports by typing ls -l /dev/ttyS* from a terminal. The default Linux installation may only give read and write access to the "root" user. The root user can allow other users to have read/write access by typing chmod a+rw /dev/ttyS* from a terminal.

The attached text file shows a terminal line capture demonstrating the steps used to circumvent the Error 37 when using LabVIEW Serial VIs in Linux.

Related Links:
KnowledgeBase 21O7DELI: Error -37 When Using the Serial Compatibility VIs
KnowledgeBase 0EHKBM8Z: LabVIEW for Sun: Serial I/O Causes Error -37


Attachments:


linuxser.txt


Report Date: 01/25/2001
Last Updated: 02/10/2014
Document ID: 25OF9TUZ

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