NI 9870 - Continuous Serial Read - On-Demand Write

Publish Date: Jun 23, 2011 | 4 Ratings | 4.75 out of 5 | Print | 1 Customer Review | Submit your review


The NI 9870, 4-port serial C-Series Module, was made to work with the cRIO in FPGA Interface Mode. The programming required for this module is a little more advanced than some of its analog and digital cousins. This is an example of an easily scalable and modifiable program, originally designed to stream data from all 4 ports simultaneously and write to any of the 4 (one at a time) on demand. The initial design was created to stream data back from GPS and other serial devices simultaneously while allowing for intermittent writing to any of the ports.

This example code was written to simultaneously read from the 4 ports on a single NI 9870 in slot one of a cRIO chassis.  However, it can be easily modified to read fewer or more ports on one or more modules. 

Another part of the original code is to write to one, user-selectable port at a time when the write button is pressed.  This portion of the code can also be modified to allow programmatic sending of strings or streaming in both directions.

This code can also run loopback tests, as is, with the appropriate wiring in place. 

Figure 1. Front Panel of Host VI.

Back to Top

Customer Reviews
1 Review | Submit your review

 - Feb 26, 2010

This example would be great if it was also saved as Labview 8.6, for those of us that haven't upgraded yet?!?

Bookmark & Share




NI 9870 - Continous Serial Rea
d - On-Demand Write



Rate this document

Answered Your Question?
Yes No