04-20-2010 09:17 AM
Hi
I have a DLL file and i want to use it in my Real-Time host.
already i have downloaded it to my RT host , but i donot know how to run it,,,,,,, actually i need somethig that check this file and then ask me for preparing the inputs of this file and then show me the outputs of it.
i donot want to use that block which ask me to know the name of the functions and so on,,,,,,,,,because this dll file is generated by matlab and i donot know it´s functions , actually it may have a lot of functions , i just want to feed the inputs and observe the outputs of it.
Thanks
Ali
04-21-2010 06:01 AM
There are some things to have into account. First, if you don't know the functions prototypes, it will be very difficult to find out. Since you have compiled the code, you should have a .h file containing such info. If you have the .h, you can try to use . If this .dll ha been built with Matlab compiler (not RT Workshop), it will depend on Matlab Runtime which can not be installed on Pharlap or VxWorks.
If your OS is VxWorks, you will need to build a .out file instead of a .dll. On Pharlap, the .dll option is possible. However, you have to ensure that this dll does not rely on any Windows .dll.
Finally, if you have your .h, you can use the Call Library Function Node and insert the arguments by hand or use the Wizard for Importing a .dll in labVIEW (Tools >> Import >> Shared Library...).
Best regards.