12-02-2015 02:15 AM
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
12-02-2015 03:13 AM
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?
12-02-2015 03:27 AM
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.
12-02-2015 03:35 AM
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!
12-02-2015 05:00 AM
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
12-02-2015 06:25 AM - edited 12-02-2015 06:35 AM
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…)
12-02-2015 08:29 AM - edited 12-02-2015 08:31 AM
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.
12-02-2015 12:59 PM
12-03-2015 10:59 PM
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:
02-04-2016 05:32 PM
Hi, stefan!
Being TMC author, it is really interesting for me if TMC Compiler is useful for you tasks or it lacks something fundamental?