Labview Serial Port Hyperterminal For Mac

In this tutorial you will learn how to communicate with a computer using a MAX3323 single channel RS-232 driver/receiver and a software serial connection on the Arduino. A general purpose software serial tutorial can be found here. Computer with a terminal program installed (ie. HyperTerminal or RealTerm on the PC, Zterm on Mac).

1. Loopback Test to Verify Hardware Operation

There are three ways to verify the operation of the serial port: LabVIEW, HyperTerminal, and LabWindows/CVI. All perform a loopback test on the serial port by shorting out the Transfer and Receive pins on the cable connected to that port. Step 1 is the description for shorting the pins and is the first step to all three. The LabVIEW procedure is listed below, and both the HyperTerminal and LabWindows/CVI procedures are linked at the end of the page. Use the following procedure if you are using LabVIEW.

  1. Connect a cable to your serial port. The most common port is a 9-pin or 25-pin (DB-9 or DB-25) RS-232 port. On the cable, short lines 2 and 3. This connects the Transfer line coming out of the computer to the Receive line going in. Once shorted, the top row of the DB-9 cable should look like this: [1 2=3 4 5]. An easy way to short pins 2 and 3 is to use a paper clip. If you have a female RS-232 cable, bend the paper clip and stick the ends in the second and third hole. If you have a male cable, bend the paper clip in a way that you shorten the long loop to the same length as the short loop. Then you can clamp it on the two pins.
    On an RS-485 port, voltages are referenced differentially. Therefore, short TXD+ and RXD+ together and then TXD- and RXD- together (pin 4 to 8 and pin 5 to 9 on a DB-9 cable; pin 1 to 5 and pin 2 to 4 on a Combicon connector). Make sure your software is configured in four-wire mode.
  2. For HyperTerminal or LabWindows/CVI, follow the links at the end of the page.
  3. For LabVIEW, follow the link 'Loopback Test for Serial Port.' This takes you to the Loopback VI in the Example Program Database, which is a part of the Technical Support page. You need to unzip the file. This VI is written in LabVIEW 4.0.1 and will write a string of words out of the serial port and then read them back in. Before running the VI, make sure to set the port channel correctly. In LabVIEW, zero represents the first serial port. [PC: 0 = COM1, 1 = COM2,.. Mac: 0 = Modem, 1 = Printer,.. Sun: 0 = ttya, 1 = ttyb,..]
  4. If this works correctly and the string of words is read back in, the serial port hardware works. Most serial port communication problems are in the program and concern timing of read/writes calls or configuration of the serial port.

    2. Common Problems

Most problems are in the program, not the hardware. Always use example programs as a reference point for ways to wire the diagram panel. Use the sample VIs shipped with LabVIEW under Help>>Search Examples or from the VIs located in the Examples Program Database linked at the end of the page.
Port Referencing: In LabVIEW, ports are numbered starting at zero. Therefore, port 0 in LabVIEW is COM 1 on a PC.
[PC: 0 = COM1, 1= COM2,.. Mac: 0 = Modem, 1 = Printer,.. Sun: 0 = ttya, 1 = ttyb,..]
Timing In Program, Hanging: Many times, a read operation is performed on a port that results in the Serial Port Read VI stopping and waiting or 'hanging.' One way this can happen is if a read operation is done to the port and the program specifies a certain number of bytes that the Serial Port Read VI should get. The Serial Port Read VI was told to get a designated number of bytes; if there are not that many bytes in the serial port receive buffer, it waits until more bytes are written to the serial port. If no more bytes are written to the serial port to complete the operation, the program hangs and waits indefinitely. This can be eliminated by using the Serial Read with TimeOut VI in Help>>Search Examples>>Serial Communication. Another method is to use the Bytes At Serial Port VI to check the port and see how many bytes are in the buffer. Wiring the result as the input for the number of bytes to read ensures that the read operation completes. Looking at the examples under serial communication in LabVIEW is an excellent starting point.
Timing In Program, Incomplete Transfer: A common problem is when a read operation is done on the serial port and it does not get the complete string of information expected. This may happen when you have a read operation happening before the write operation has time to complete. This could be resolved by using a Sequence structure or by using data flow dependency. Using a Sequence structure with the read after the write will make sure the data is completely written first. Using data flow requires a wire to be connected to the read VI after (downstream) the initial write VI.
Instrument's Termination Character: Serial communication can be very tricky when trying to communicate with devices, because the serial port will output exactly as programmed. This means you must know and program the exact sequence of code, including termination characters, to ensure the instrument operates properly. Common problems occur in not using the termination character required by the instrument or by leaving an extra space/character in the instruction string. There is a new standard for communicating with devices in LabVIEW called Virtual Instrument Software Architecture (VISA), a single interface library for controlling VXI, GPIB, RS-232, and other types of instruments. If you are having problems with serial I/O, VISA is a great way to help eliminate termination character errors and make your code reusable and interchangeable between devices in the future.

3. Virtual Instrument Software Architecture (VISA)


VISA is a single interface library for controlling VXI, GPIB, RS-232, and other types of instruments on all LabVIEW platforms. VISA is a standard endorsed by the VXIplug&play Systems Alliance, which includes more than 35 of the largest instrumentation companies in the industry. The VISA standard unifies the industry to make software interpretable and reusable over time and regardless of instrument I/O operation. Linked below is a page to help with VISA questions. VISA VIs for LabVIEW 4.x are linked at the end of the page.

See Also:
Serial, GPIB, and VXI Communication with Measurement Studio VISA
VISA Examples for LabVIEW 4.1

4. Printing Reports & Error 37


LabVIEW 5.1 for Windows includes Report Generation VIs that allow you to send text to the printer. For an example of how to use the Report Generation VIs, select Help>>Search Examples>>Advanced>>Report Generation. For printing with serial communication and earlier versions of LabVIEW, see the link below.
If the printer is connected to a local parallel port as LPT1 (or LPT2, etc.), you can use the Serial Port Write VI. For more information, see the Serial Port VIs chapter in your LabVIEW documentation.
If the printer is a network printer, you cannot use the Serial Port Write VI; you must use other methods to print, such as one of the following:

  1. Use Programmatic Printing of a subVI to programmatically print a string. Select Print VI When VI Completes Execution in VI Setup of the subVI.
  2. Use the System Exec VI to print a string programmatically by using Notepad.exe. The string to use in the System Exec VI could be: Notepad.exe /p c:junk.txt, where junk.txt is the name of an ASCII text file containing the text to be printed.

For problems with Error 37, follow the link below to check the settings in the labview.ini file.

See Also:
Error 37 and writing to the Parallel Port with LabVIEW

5. Modem Communication in LabVIEW


Companies in the Alliance Program support modem communication in LabVIEW very well. National Instruments recommends these companies because of their quality work.

See Also:
Alliance Program

6. User Support Newsgroups


The Developer Exchange newsgroups are Usenet newsgroups covering National Instruments products, as well as general fields of science and engineering. You can read, search, and post to the newsgroups to share solutions and find additional support from other users. Past questions and solutions are also stored at this site for search purposes.

7. Advanced Troubleshooting of COM Port Data


Advanced users who want to analyze the exact bits being transferred over the serial port to detect differences between programs (for example, LabVIEW vs. HyperTerminal) can use a program called Portmon. System Internals provides Portmon, and the company's Web site provides you advanced utilities, technical information, and source code related to Windows 9x and Windows NT/2K internals.

See Also:
System Internals for Portmon


Related Links:
Testing Serial Communication using HyperTerminal
Testing Serial Communication using CVI
Loopback Test for Serial Port
Using the VISA classes in Measurement Studio to Perform Serial Communication

Multimedia Business Messengers Desktop Development Education Games Graphics Home Networking Security Servers Utilities Web Dev Other
Sort by: Relevance

Q Serial Terminal

Q Serial Terminal is an open source QT-based serial terminal program. The program can be used with embedded systems. It implements a terminal program using QT and the QExtSerialPort library. It also mixes the input and output into one terminal window.

  • Publisher: Blake Leverett
  • Home page:sourceforge.net
  • Last updated: January 23rd, 2014

Wise Telnet & Serial Terminal

-Locally and remotely programmable keyboard.-Support for 7-bit National Replacement Characters (NRC).-Protect and write-protect modes.-24/25/42/43 line, and 80/132 column display modes, including Economy 80-column(TM) mode.-Character, line and page attributes.-Multiple, sizeable page modes and full split-screen support.

These players already put up a great competition for the MX player, and I hope you are well versed in them. There are only two alternatives to MX player on MAC, some of them may be useless and not worth downloading. Vlc media player 64 bit.

  • Publisher: John Popplewell
  • Last updated: September 6th, 2011

Serial Port Terminal

Free Serial Port Terminal is a handy and easy to use serial port terminal.It works on Windows 2000 / XP / Vista / Seven.Serial Port Terminal is a session-based, multi-purpose application that provides simple communication interface to connect to any serial port device.

  • Publisher: Jonas Kundra
  • Last updated: October 24th, 2011

BirdTerm

BirdTerm is a free, open source program for Windows which emulates a serial terminal. It supports ANSI color and cursor position commands.Programmers can use this program to communicate with embedded CPUs which have serial port communication. Can also be used to communicate with old telephone modems etc.

  • Publisher: BoldInventions
  • Home page:sourceforge.net
  • Last updated: October 27th, 2011

Indigo Terminal Emulator

Indigo Terminal Emulator is a powerful terminal based communication software tool for telnet and serial terminal communications. Indigo offers many tools and features that are unmatched in other terminal software solutions. Indigo supports scripting and simultaneous connected terminal sessions.

  • Publisher: shadeBlue
  • Home page:www.shadeblue.com
  • Last updated: April 20th, 2014

PobTools

POB-TOOLS is a simple IDE with:- Code editor- Project management- Upload new program into the POB hardware (POBEYE, DUAL-POB..)- Integrated help of functions and simple example.- Serial terminal- POB-TOOTH and DUAL-POB management and so much more.

  • Publisher: POB-Technology
  • Last updated: October 27th, 2011

SerialTerminal

Realterm is a terminal program specially designed for capturing, controlling and debugging binary and other difficult data streams. It is far better for debugging comms than Hyperterminal.Serial terminal is a program partcularly targeted at binary and difficult data .It uses as a comms component for other s/w via full activeX interface.

  • Publisher: crun
  • Home page:realterm.sourceforge.net
  • Last updated: November 9th, 2011

CICLaMaB

If you wish to change the filesystem and/or the kernel of your Texas Instruments AR7 processor based modem/router, CICLaMaB helps you to set correctly all the parameters needed! CICLaMaB has embedded a serial terminal for the modem/router debugging and the possibility to recovery, by JTag interface, a damaged bootloader.

  • Publisher: Liquidsky
  • Home page:ciclamab.altervista.org
  • Last updated: March 30th, 2008
Hyperterminal download free

Tera Term

Tera Term is a terminal emulation program that allows you to connect to Linux boxes.Main Features:- Serial port connections.- TCP/IP (telnet, SSH1, SSH2) connections.- Log replaying.- Named pipe connection.- IPv6 communication.- VT100 emulation and selected VT200/300 emulation.- TEK4010 emulation.- File transfer protocols (Kermit, XMODEM, YMODEM, ZMODEM, B-PLUS and Quick-VAN).

  • Publisher: T. Teranishi
  • Home page:ttssh2.sourceforge.jp
  • Last updated: October 3rd, 2015

Mission Planner

With Mission Planner you can point-and-click waypoint entry, using Google maps.Main Features:- Select mission commands from drop-down menus.- Download mission log files and analyze them.- Configure APM settings for your airframe.- Interface with a PC flight simulator to create a full hardware-in-the-loop UAV simulator.- See the output from APM's serial terminal.

  • Publisher: Michael Oborne
  • Home page:code.google.com
  • Last updated: October 2nd, 2017

Pololu Serial Transmitter

Pololu Serial Transmitter is a simple serial transmitter utility for Windows which allows you to transmit sequences of bytes to a selectable COM port.The Pololu Serial Transmitter is used to send commands to the serially controllable devices, which can help you troubleshoot problems by letting you determine if the fault lies with your serial code or with the device itself.

  • Publisher: Pololu Corporation
  • Home page:www.pololu.com
  • Last updated: April 29th, 2012

APRS Messenger

The APRS Messenger program provides a simple way to send and receive APRS messages from an APRS TNC Digi Tracker on VHF and by APRS over PSK, QPSK and GMSK modes on HF.Main features:-Serial terminal program to setup APRS TNC Digi Tracker-APRS over PSK, QPSK and GMSK modes for high performance HF APRS using the PC soundcard.

  • Publisher: Cross Country Wireless (2009) Ltd
  • Home page:www.crosscountrywireless.net
  • Last updated: April 6th, 2012

Online

An excellent VT100 terminal emulator for the Palm Pilot.

  • Publisher: Nival Online
  • Home page:www.MarkSpace.com
  • Last updated: January 20th, 2010

AXEpad

AXEpad is a cross-platform development tool for all PICAXE chips, supporting all three of the Windows, Mac and Linux operating systems. AXEpad is a notepad type application for developing PICAXE BASIC language programs. It supports all PICAXE chips and has a full set of code development features such as:- syntax check and download- source code colour syntax highlighting

  • Publisher: Revolution Education Ltd
  • Home page:www.picaxe.com
  • Last updated: March 18th, 2017

UrJTAG

UrJTAG aims to create an enhanced, modern tool for communicating over JTAG with flash chips, CPUs, and many more. It takes on the well proven openwince jtag tools code. Future plans include conversion of the code base into a library that can be used with other applications.

  • Publisher: Arnim Läuger
  • Home page:urjtag.sourceforge.net
  • Last updated: June 5th, 2010

SCL Utility

SCL Utility is a terminal utility for streaming serial commands.You can stream SCL commands from the command line and also write and save SCL command scripts.SCL Utility has a simple interface and works with all RS-232, RS-485, and Ethernet ports.

  • Publisher: Applied Motion Products
  • Home page:www.applied-motion.com
  • Last updated: April 13th, 2012

CRT

CRT is a multi-protocol application for your remote access and emulation needs.Main features:- Session manager filter bar.- Keyword highlighting enhancements.- Scripting enhancements.- Support for larger keys.- Dynamic port forwarding.- OpenSSH key format support.- OpenSSH Agent forwarding.- Configurable rows and columns.

  • Publisher: VanDyke Software Inc.
  • Home page:www.vandyke.com
  • Last updated: October 6th, 2015

PowerVT

The easy-to-use advanced terminal emulator for all Windows users, providing precise VT emulation to enable PCs to connect to DEC and UNIX hosts. PowerVT delivers precise VT320, VT220 and VT100 emulation with simultaneous Telnet, modem and direct seri..

  • Publisher: Dartcom Incorporated
  • Home page:www.dart.com
  • Last updated: January 14th, 2010

Related Post