Using USB-to-Serial Converters in LabVIEW Real-Time

Updated Sep 24, 2019

Reported In

Hardware

  • USB-485
  • USB-232

Software

  • LabVIEW Real-Time Module

Driver

  • NI-Serial

Operating System

  • NI Linux Real-Time
  • PharLap
  • VxWorks

Issue Details

I want to use an NI or 3rd-party USB-to-Serial Converter, such as the NI USB-232/4, to do serial communication on my Real-Time Operating System. How do I do this?

Solution

To do Real-Time serial communication, it is recommended to use an on-board serial port or use an NI PXI /C Series Serial Interface Module to add serial support to your device.

NI USB-to-Serial Converters converters are not fully supported as serial interfaces for Real-Time Operating Systems and will be identified as a USB RAW device. It is still possible to use NI-VISA to control USB devices in Real-Time. Drivers of USB-to-Serial converters from vendors other than NI are not supported and are not guaranteed to work in LabVIEW Real-Time. 

Additional Information

NI recommends customers to use the NI USB-to-Serial Converters for Windows Targets as they are fully supported by NI-Serial for Windows Targets.

For a full list of supported serial interfaces under Real-Time Targets check the NI-Serial for LabVIEW Real-Time Readme.