Integrate Julia scripts into NI Labview

Hello, how about everyone, my most sincere and cordial greetings to all who read this post.

I am a fairly new user and amazed at how great it is to use Julia as an alternative to other languages.

My question is a bit silly but I still have no where to start, I would like to generate DLLs of some functions that I generate later in Julia.

I have generated these DLLs before in C # within visual studio but they are really deficient, I would like to know if I can generate them in Julia due to their optimization and ease of programming, in addition to being free software which is what makes it great and amazing.

# Example in Julia
function Sumita(x,y)
    return x+y

Relative to NET in C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ejemplo_Operaciones
    public class Ej_OperacionesBasicas
        public int Sumitaa(int A, int B)
            int Result = A + B;
            return (Result);

My interest is if someone could help me or guide me what would be the process to generate the DLL with Julia 1.4 and what files do I have to generate, configure and more.

Thank you in advance and I wish someone could guide me !! Kind regards to all again.

1 Like

I forgot to mention that this DLL would be used in other virtual instrumentation software called NI Labview, that when correctly generating this dll it would be no problem calling it from this software.

any suggestions please don’t let me die alone :sleepy: :sleepy: :sleepy:


The hard truth is that its not possible to compile Julia down to a DLL.
You can use to create an executable and call it from LabVIEW ( or maybe use something like ZeroMQ to communicate between two processes.

Hello, thanks for answering my question, the option of zeromq sounds interesting, I will try, if I do not die trying hehe.

I thought I had read that with build_shared_lib in PackageCompiler 0.64 if they could be generated, but in the current version, 1.1 already creates images, as you mentioned to generate executables, but I think it would be worth it for another thread to learn how to do them and all the corresponding configurations as well as dependencies to libraries etc.