Localhost communication is one way to exchange data between NI Linux RT and LabVIEW RT code. Below, is a Shell Script and LabVIEW project that exemplifies NI Linux RT command line interface sending/receiving data to/from LabVIEW RT through TCP socket.
Steps to execute:
1. Copy the waveform script to a NI Linux RT diretory
Help: Using WebDAV to Transfer Files to Your Real-Time Target
2. In the command line interface give permission to the waveform script
Help: How Do I Acess the Shell on a NI Linux Real-Time OS Device
3. Run RT_waveform_generator.vi on you NI Linux RT target
4. Set and get waveform parameters in the command line interface and observe the graph in the VI front panel
Screenshots:
Script help
Setting waveform parameters