LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best practices for real-time LabVIEW ↔ Julia data exchange

Hi everyone,

I am currently working on a project where I want to integrate LabVIEW with Julia. The basic idea is that LabVIEW acquires some signals from hardware, Julia processes the data (e.g., simple computations like scaling or filtering), and then LabVIEW receives the results back.

I am considering using TCP/IP Sockets or ZeroMQ since there are toolkits in LabVIEW for it.

 

Before I commit to building everything on one of these approaches, I wanted to ask the community:

 

  • Are there other practical ways to exchange data between LabVIEW and Julia, especially for real-time or near-real-time applications?
  • Any experiences with using shared memory, memory-mapped files, or other IPC mechanisms in this context?
  • Any advice on pitfalls or best practices for continuous signal streams between LabVIEW and Julia?

Thanks in advance for any suggestions! Frauke

0 Kudos
Message 1 of 4
(154 Views)

Why Julia, what is special that LabVIEW cannot achieve or is it very large implementation that investing to bridge LabVIEW and Julia is beneficial compared to reinvent it in LabVIEW?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 4
(118 Views)

@fraukenbl wrote:

Hi everyone,

I am currently working on a project where I want to integrate LabVIEW with Julia. The basic idea is that LabVIEW acquires some signals from hardware, Julia processes the data (e.g., simple computations like scaling or filtering), and then LabVIEW receives the results back.

I am considering using TCP/IP Sockets or ZeroMQ since there are toolkits in LabVIEW for it.

 

Before I commit to building everything on one of these approaches, I wanted to ask the community:

 

  • Are there other practical ways to exchange data between LabVIEW and Julia, especially for real-time or near-real-time applications?
  • Any experiences with using shared memory, memory-mapped files, or other IPC mechanisms in this context?
  • Any advice on pitfalls or best practices for continuous signal streams between LabVIEW and Julia?

Thanks in advance for any suggestions! Frauke


Since bandwidth, data size and, timing requirements are not mentioned, just use TCP/IP. Its easy to code, easy to debug and there are no external libraries required.

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 3 of 4
(92 Views)

@Jay14159265 wrote:

Since bandwidth, data size and, timing requirements are not mentioned, just use TCP/IP. Its easy to code, easy to debug and there are no external libraries required.


Heck, just write the data to a text file and have Julia write a new one next to it. Even easier to debug than straight TCP/IP!

Message 4 of 4
(60 Views)