06-11-2018 03:24 AM
Hi,I am new to Labview,now I want to build a sinusoidal signal model from The MathWorks, Inc. Simulink Software and use the model in my Labview project. The tutorials in the net tell me to convert the model to a DLL document, I follwed the steps and get a DLL document. But when i ues the DLL document in
Laview,I found there are so many functions in the DLL. I also tried use the model interface toolkit and there are somthing wrong with my vi, I wonder to know wether my DLL document was build in the right order, can you tell me something about this?How can I use the simulink model DLL in the LabVIEW? My version is 2016 and Matlab is 2014Ra.The attachment is my steps about build the DLL documnet.
Thank you for your time.
Regards.
06-11-2018 05:37 AM
Is there any reason that you can't use the sine wave generation capabilities built into LabVIEW ?
06-11-2018 06:25 AM
Hello,I don't know how to use the dll document,should I use the model interface toolkits or the function call model?
06-11-2018 07:31 AM - edited 06-11-2018 07:31 AM
If you just want to create a simulated sine wave in LabVIEW then you don't need to go to all the trouble of interfacing a DLL to LabVIEW, which can be quite difficult.
You can simply use the LabVIEW Simulate Signal Express VI to generate a sine wave. It really depends on what you are trying to achieve.
If you need to use Mathworks then this is supported by the model interface toolkit.
06-11-2018 08:39 PM
Thanks for your reply,the sine wave is just a example,a complex model will be used in the future so the MathWorks, Inc. Simulink Software should be used. Wether the following steps is the right order:
1. create a simulink model in the MATLAB
2(1). compile the model in NI VeriStand
2(2). convert the model to a DLL document
3.use the DLL in Labview with model interface toolkit
From the step2(1)and step2(2),which step should follow and which should be abandon?
Thank you for your time