![]() It is important to know these values from the instrument itself to successfully establish the communication. Relevant serial protocol parameters, such as baud rate, data bits, parity, and flow control, are set up for the serial port ID where the instrument is connected. With the device connected and the NI-VISA driver installed, the NI-MAX tool can complete the configuration. USB-to-serial (RS-232) adapters are needed to connect serial devices to personal computers. Considering that personal computers equipped with serial ports can be hard to find nowadays, then to achieve this physical connection, USB-to-serial adapters can be used.įigure 2. To begin the communication setup of a serial-based instrument with LabVIEW, the device must first be connected to the computer where the application is executed. ![]() NI-VISA is a driver, downloadable from NI, that provides a standard for integrating several different communication protocols, including serial RS-232/RS-485, Ethernet, USB, among others. To achieve this, LabVIEW uses an application programming interface (API), called NI-VISA (National Instruments – Virtual Instrument Software Architecture). Beyond RS-232, RS-422 and RS-485 standards are also supported. ![]() Naturally, LabVIEW offers the capability of interfacing with a large number of serial-based hardware instruments. LabVIEW is a software platform that helps automate laboratory testing and other industrial processes utilizing Virtual Instruments (VIs), or computer-based tools. Although data transmission speeds are lower than most protocols, it is still an adequate solution for many of the aforementioned devices. ![]() Serial communication can be established with as little as two wires, making it suitable for microcontrollers and PCBs where the number of pins available is minimal. One of the main reasons for the interface’s longevity is its simplicity. Many modern oscilloscopes are equipped with RS-232 ports. Today, RS-232 has been largely replaced by other faster and more energy-efficient protocols in the PC industry, such as the USB.ĭespite this, RS-232 ports are still commonly used in industrial devices, such as laboratory equipment, variable-frequency drives (VFDs), networking equipment, embedded systems, and even PLCs.įigure 1. ![]() It is one of the oldest communication protocols in the computer industry, dating back to the 1960s when RS-232 was created.įor decades, RS-232 was one of the most widely used interfaces in personal computers, allowing the connection of keyboards, mice, and other peripherals to the main CPU. Serial communication is a data transmission protocol in which information is sent in a series, one bit at a time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |