07-04-2010 07:42 PM
Hello Everyone,
I have build a VI contains mathscript function node, due to the big data needs to run it takes long time to finish the execution, is there any way to make the process faster, such as building shared library so it can be called by call library function node, or this only valid for c and c++ .
any help will be highly appreciated
07-05-2010 07:08 AM
07-05-2010 09:30 AM
There is no way to convert the Mathscript code to a shared library.
Please post what you're actually doing in the Mathscript node. As Gerd noted, there's probably a way to do this using native LabVIEW functions.
07-06-2010 04:25 AM
07-06-2010 06:29 AM
07-06-2010 08:49 AM
@srikrishnaNF wrote:
Hi aneece,
My observation is that if you use mathscript RT module(comes along with labview 2009 onwards),it may makes the things faster..
For a separate license fee, of course....
07-08-2010 11:53 AM
@smercurio_fc wrote:
There is no way to convert the Mathscript code to a shared library.
Please post what you're actually doing in the Mathscript node. As Gerd noted, there's probably a way to do this using native LabVIEW functions.
While it may not be possible for a direct conversion from MathScript code to a DLL, it is possible to build a shared library using the application builder from a VI containing a MathScript node. This could be one way to get MathScript code into a shared library.
The application builder is included with LabVIEW Professional Edition. You can setup a shared library by going to the project explorer and right clicking "Build Specifications" and selecting New->Shared Library (DLL).
-K Scott
07-09-2010 10:27 PM
Hello Guys,
I wrote the code in C language and I tried to build a shared library, when I do right click on the call library functin node and creat .c file, the file ll be saved as a C file in text format not in .dll format, so the last step it doesn't work (identify the path to the file)and that due to the file is not saved as .dll.
07-09-2010 10:40 PM
The last step is woking perfectly fine as all that is supposed to happen is to create a .c file that you can edit and create a dll with whatever c compiler you have. LabVIEW does not come with a c compiler
07-10-2010 05:14 AM
Thanks Dennis,
you mean i have to have a c compiler installed in my pc. can i know in what kind of text language that the sine wave and other wave generators which are all being called by the call library function node are written? I thought LV comes with the C compiler.
thanks
Aneece