LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TMC Compiler

Hi,

 

I compile a LabView based GUI for a specific DAQ-Hardware.

And this hardware needs a calibration, this is done via a DLL.

Now I have two options, implement the DLL-code via LabView

or use a text based language that know how to handle arrays.

Yesterday I found a tool that might be perfect for my purpose:

TMC Compiler (hosted on Sourceforge):

TMC Compiler (.m -> .c coverter)

 

Has someone used this tool to compute a DLL for the use with an compiled LV-application?

Is there something LV specific that one might need to take into consideration?

 

Regards,

 

Stefan

 

0 Kudos
Message 1 of 13
(4,600 Views)

No, but have you tried using tools->import->.dll ?

If you don't have the header file for the .dll you may use an dll explorer

which shows you all the functions inside.

Do you have also matlab sources or only the .dll?

 

 

0 Kudos
Message 2 of 13
(4,591 Views)

Thanks for your reply! How to interface a DLL inside LabView is another story.

My task is how to generate the content of the DLL.

And if you use octave to analyse and process your data, you would like to use

your octave code to generate a DLL.

0 Kudos
Message 3 of 13
(4,585 Views)

Hi Stefan

 

you really should provide all the information we need to give "good2 answers!

 

And this hardware needs a calibration, this is done via a DLL.

Do you already have a DLL available?

 

Now I have two options, implement the DLL-code via LabView or use a text based language that know how to handle arrays.

You can re-implement the DLL code in LabVIEW - or just use that DLL. Why do you need a 3rd party software then?

 

And if you use octave to analyse and process your data, you would like to use your octave code to generate a DLL.

How does Octave come into play here?

And why do you need Octave to generate a DLL you already have in use?

 

Again: provide any information we need to give you valid answers!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(4,579 Views)

Hi Gerd,

 

I have several versions and two types of DLL:

a.) DLL with very limited content, it is used during a calibration process to collect data

b.) DLL with specific content (includes calculations derived from the calibration tests)

 

For the "type-b" DLL I'm looking for an efficient way to compute them. The goal is in the end an automated process:

a.) Data analysis

b.) Code generation

c.) Build of DLL

 

The third party software is (currently) MatLab/octave to analyse the data.

 

Regards,

 

Stefan

0 Kudos
Message 5 of 13
(4,567 Views)

Hi Stefan,

 

so you already have DLLs - and so you already should have a way to "compute"/compile them.

Why do you look for a different way then?

 

As for calibration data: I prefer to put them in (separate) files. Your DLL might have a function call to load parameters as needed from predefined resources!

(That way you could put all functions into just one DLL. No need to swap them later on…)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(4,551 Views)

Hi Gerd,

 

the discussion goes a little bit in the wrong direction. The main intention of this topic is:

Is there any experience with this new alternative MatLab/octave compiler?

What needs to be taken care of, if you would like to use the compiled DLL together with a LabView-Application.

 

Off topic:

The reason to change the current approach:

I am not satisfied with c++-coding of linear algebra by hand.

 

0 Kudos
Message 7 of 13
(4,534 Views)

Hi Stefan,

 

you should ask this question in a Matlab/Octave forum…

 

To call a DLL from LabVIEW requires "good" header files.

It helps to have "simple" data structures - but I'm not that experienced with calling DLLs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(4,510 Views)

I have not yet found the time to try the compiler myself,  I am  still in the  reasearch period, today I found the following summary:

Blog: Shmuel Safonov

0 Kudos
Message 9 of 13
(4,474 Views)

Hi, stefan!

Being TMC author, it is really interesting for me if TMC Compiler is useful  for you tasks or it lacks something fundamental?

 

Message 10 of 13
(4,250 Views)