Overview
This example demonstrates outputting a constant voltage on the serial port.
Description
This example sets the DTR line state to output a constant 5V until the program stops. The Break State property is used to suspend transmission on the line when the user specifies. An event structure is used to detect when the button controlling the break state is clicked.
Requirements
Software:
- LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
- Configure a Serial Port.
- Run the application.
Additional Information or References
It is not recommended that the serial port be used as a signal source, however it is possible. Note that using the computer’s serial port as a source can damage your computer.
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**