Integrating R Code with LabVIEW

Updated Aug 14, 2024

Reported In

Software

  • LabVIEW

Other

  • R (programming language)

Issue Details

I need to use certain function in R (programming language) with LabVIEW. Does LabVIEW support of calling R code? If possible, how can I call R code from LabVIEW?

Solution

LabVIEW is not officially supporting R programming language. Below is suggested workaround to integrate R with LabVIEW.
  1. You can create a wrapper on the R code with LabVIEW supported programming language. 
  2. Use TCP (or any other communication protocol supported by R and LabVIEW) to exchange data between LabVIEW and R.

Additional Information

LabVIEW officially supports Python, MathWorks® MATLAB® Software, and C/C++. You can use those languages as a wrapper to R code.