Simulink-labview

Hola a tod@s!!
Actualmente tengo un programa en Simulink, versión de Matlab R2010b (64 bits), y tengo unas señales que debo pasar a Labview a través de Simulation Interface Toolkit, para realizar pruebas me he bajado de su página web la última versión de Labview (versión para estudiantes) y también me he bajado la versión de marzo del 2013 del LabVIEW Simulation Interface Toolkit. Me gustaría saber si estas versiones de Matlab y LabVIEW Simulation Interface Toolkit son compatibles y no tendré problema para enviar las señales.
Muchas gracias por su tiempo.

Hola 2iggarci,
En este link podrás encontrar tu respuesta
http://digital.ni.com/public.nsf/allkb/D174674A91E5536286257428005C2426
Un saludo, que pases un buen día.
Certified LabVIEW Developer (CLD)

Similar Messages

  • Simulink, Labview and DLL

    Hi all,
    I can communicate my model in Simulink with Labview using the SIT and without working in real-time. However,now, although I have made a DLL(Dynamic Library Link) with Simulink and my compiler, I don´t know how I could run it in real-time with my target calling the DLL.
    This is, instead of using my model (*.mdl) in Matlab, I want to use the DLL but I don´t know how I must call it from Labview.
    If someone could help me, I would be very grateful.
    Thanks
    Ziman.

    Hello,
    considering that you have recent versions of LabVIEW and SIT, you could do that ( run the model in an RT target ) using the SIT Connection Manager ( Tools - SIT Connection Manager ). In this dialog box, you will have to select Real-Time Target, insert an IP and choose the path to the Model DLL. Once configured, then click on OK button and when running the VI, it will download the model to the RT Target
    If you open an example that comes with SIT called Sinewave ( Help - Find Examples ), you will have the information to run it in an RT Target in the front panel. For more information, here you have a link ( http://zone.ni.com/devzone/cda/tut/p/id/3583 ).
    I hope this helps
    crisR

  • Does creating a labview dll from simulink model require visual studio

    I've asked the same question at the Simulink forums, but maybe someone here has the answer: 
    I'm trying to perform this process here:
    http://zone.ni.com/devzone/cda/tut/p/id/3447
    However, I get the following errors from the Simulink Real Time Workshop:
    Error building Real-Time Workshop target for block diagram 'SensorCAN_sfcn'. MATLAB error message:
    Error using ==> setup_for_visual>LocIssueMSDevError at 324
    Invalid setting for environment variable MSDevDir or DevEnvDir.
    The setting is: ''
    You can verify the setting by checking for the existence of:
      %DevEnvDir%\..\tools\vsvars32.bat          (for Visual C/C++ 7.1)
      %MSDevDir%\..\..\vc98\bin\vcvars32.bat     (for Visual C/C++ 6.0)
      %DevEnvDir%\..\tools\vsvars32.bat          (for Visual C/C++ 8.0)
    I do not use Visual C, what little programming I do has been done in Borland Builder or with command line gcc.  Is there any way to make simulink look for a different dev environment?  Or does this process require Visual C?
    Solved!
    Go to Solution.

    Thanks, I've got SIT 5.0 installled, but it turns out we have a site license for VS 2008, so I now have that as well.  I've got a new problem though, and although I think it's related to Simulink, these forums seems a little more responsive than that Matlab forums. So....
    I’m working with someone else's s-code, and I haven't used Simulink in the past. As I said in my original post, I am attempting to use SIT to turn the s-code into a dll for use in a LabView RT application. I opened the mdl file in Simulink, and I’m now trying to build the LabView dll in the Simulink Real Time Workshop.  The target file is nidll.tlc and Matlab starts the SIT when launched, so it appears the tools are aware of each other.  However, when I attempt to build the dll, I get the following error:
    fatal error C1083: Cannot open include file: 'rtlibsrc.h': No such file or directory
    I’m using the following: Matlab 2008b, SIT 5.0, and MS Visual Studio 2008, so the libraries and includes should be fairly up to date. What I don't get is that the files that are calling for this include are auto-generated by Simulink, so I don't know why it's not finding the rtlibsrc.h. Still, I found that in the RTW subdirectory, and copied it into my local directory. This gives me a different error:
    ### Linking ...
    C:\PROGRA~1\MATLAB\R2008b\sys\perl\win32\bin\perl C:\PROGRA~1\MATLAB\R2008b\rtw\c\tools\mkvc_lnk.pl SensorCAN_sfcn.lnk SensorCAN_sfcn.obj rtGetInf.obj rtGetNaN.obj rt_logging.obj rt_matrx.obj rt_nonfinite.obj rt_printf.obj rt_sfcn_helper.obj nidll_main.obj rt_sim.obj SensorCAN_sfcn.res SensorCAN0_sf.obj
    link /RELEASE /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll /NODEFAULTLIB:MSVCRT LIBCMT.LIB kernel32.lib ws2_32.lib mswsock.lib advapi32.lib @SensorCAN_sfcn.lnk /dll -outensorCAN_sfcn.dll
       Creating library SensorCAN_sfcn.lib and object SensorCAN_sfcn.exp
    SensorCAN0_sf.obj : error LNK2019: unresolved external symbol _rt_Lookup referenced in function _mdlOutputs
    Again, self-generated code, now with unresolved external symbols? I'm assuming that I'm linking the wrong version of a dll or obj that contains mdlOutputs, which appears to be something from Matlab. Can anyone point me in the correct direction? Missing headers and incorrect libraries lead me to believe that I've got a search path issue somewhere, but the Matlab/Simulink/LabView/Visual Studio are all fresh default installs.

  • Reg: vacancy for LabVIEW developer in Bangalore, Chennai and Delhi with (1-6) years experience

    Recruitment Process for LABVIEW: Tele Interview in case of outstation candidates. Bangalore candidates will have to first come for a Written Test (Technical + Analytical), 1-2 rounds of direct technical interview.
    Degree/Branches:  B.E / B.Tech in Electronics / EEE / E&C / E& Instrumentation .
    ROLES AND RESPONSIBILTIES OF ASSOCIATE ENGINEER-SEG:
    Development
    1. Responsible for developing software for the project/module allotted to you with smooth coordination and smooth handing over of the work executed by one to another member in case of change of projects.
    2. Expected to work on multiple projects, project dead line, adhere to coding guidelines and update your progress on the project on a weekly basis to your immediate supervisor.
    3. Developing the software strictly as per the requirement specification, design and Bug free.
    4. Responsible for building a trouble-free system to the satisfaction of the customer.
    Installation
    1. Responsible for installation of hardware and software at customer site for coordinating with the vendor and Manager – Sourcing to see that works done by the vendor is as per requirement specification
    Customer Support
    1. Responsible for providing support to the customer on the system supplied by the Captronic Systems in the past as well as present.
    2. Attends to the support case within 48hrs(local) / 96hrs(outstation ) / 96hrs(out of warranty) of reporting and collecting the Support Closure Report from the customer and submit it to the SBU-HEAD
    3. Informs Support executive with Support Status, Action Taken and Support Closed On
    Training
    1. Responsible for providing training to customer on the systems supplied by Captronic Systems.
    2. Responsible for in-house training to newly recruited engineers.
    Testing
    1. Responsible for testing code developed by you, by another developer and testing entire system at the customer site.  
    2. Responsible for testing hardware supplied by Captronic System and log the test report on the hardware test register.
    Sales Support
    1. Expected to travel with sales team to provide support to sales-team in proposal making at short notice and perform flawless pre-sales system and requirement study.
    General
    1. Expected to take part in technical sessions and keep yourself abreast with the recent product released and technical advancement made
    2. Expected to become domain expert is at least one field and to constantly improve coding style and knowledge.
    Quality
    Responsible for implementing the project methodology and quality policy of the company for all activities under your purview
     Interested candidates may forward your resumes witheir current CTC and notice period to [email protected] . Salary is never the Constraint.

    SANDU SUNITHA
    D/o.S. Venkateshwarlu,
    H.No:11/57, Kothapeta,
    Maruthi Nagar,Dhone,
    Kurnool (Dt.),
    Andhra Pradesh.
    E-Mail:[email protected]
    Mobile : 91-9963586292/08884822259
    Date: 09/ 05/ 2013
    Respected Sir/Madam,
    I have done my masters in  Control Systems Engineering in Electrical
    branch from Malla Reddy College of  Engineering. I am a well organized
    person, with good knowledge about the subject, able to do
    multitasking, able to work within a team and have excellent
    communication skills. As a good Engineer and excellent team player I
    can handle the responsibilities and challenges of the post of an good
    engineer to its fullest.
    I have worked for 6 Months as Project Trainee in CSR INDIA PVT LTD. My
    responsibilities in that institute include Testing, Reporting and
    Debugging, Updating the bugs as a trainee fresher. I was a part of the
    team that designed MERCURY TESTING TOOL, world's Best Automation tool
    today. I tested the model and executed the changes.And i had worked as
    Project Engineer in FUSION ELECTRONICS on Wonder ware SCADA. Presently
    working as Project Scientist in NAL (National Aerospace Laborateries)
    under Research and Development of IVHM(INTEGRATED VEHICLE HEALTH
    MANAGEMENT) Project on MATLAB/SIMULINK ,Labview ,Wireless Sensor
    Networks,WatchDog and Testing.
    Here is the list of the documents enclosed with this cover letter.
     1. Resume
    I hope that you find these of worth. I assure you that if selected; I
    will not let you down and would prove to be an asset for your reputed
    industry.
    Sincerely yours,
    SANDU SUNITHA
    Attachments:
    SANDU_SUNITHA(29_Apr_2013).doc ‏176 KB

  • I am trying to integrate simulink model (.mdl) file with SIT of Labview for RCP and HIL purpose. I am using Labview 8.6, Simulink 6.6 with RTW 6.6 and RTW embedded coder 4.6 ,Visual C Express 2008 and Visual C++ Express 2008.

    I am trying to integrate simulink model (.mdl) file with SIT of Labview for RCP and HIL purpose. I am using Labview 8.6, Simulink 6.6 with RTW 6.6 and RTW embedded coder 4.6 ,Visual C Express 2008 and Visual C++ Express 2008. I have selected system target file as nidll.tlc,make command as make_rtw and template nidll_vs.tmf. When I try to generate .dll file I get the following error.
    Attachments:
    SITProblem.JPG ‏101 KB

    Hi,
    No . I could not solve the issue. Presently we are using microautobox (from Dspace)for doing the RCP.
    Himadri 

  • LabView 7.1 SIT: how can I modify the LV-Simulink connections during execution?

    Hi!
    I'm using LabView 7.1 (with the SIT toolkit) to make a user interface for a
    Simulink model.  The problem I’m encountering is that the Simulink
    parameters aren’t always linked to the same LV controls, depending on the options
    selected by the user.  Since I wasn’t sure
    if it was possible to do this, I decided to send the values of the main
    controls into other controls, which would be hidden (or not if I can’t… doesn’t
    really matter).  The hidden controls would
    then be linked to the Simulink parameters, and the connections would never have
    to change. 
    It is quite
    confusing to describe in words, so I’ve included a picture representing what I’m
    trying to do.  It shows the way I'm trying to do it right now, with the hidden controls, but only the final result counts, so tell me if there's a better way to do it, or if it's just wrong.
    For the moment, since
    I’m not very good at using events, I just can’t figure how to connect the
    hidden controls to the Simulink parameters. 
    By default in SIT, the Simulink values are updated when the user changes
    the value corresponding LabView control. 
    Here, the values of the controls linked to Simulink are not modified
    directly by the user, so it doesn’t update.
    I hope my explanations are clear enough to be understood… if not, don’t hesitate to ask more details.
    Thanks in advance!

    I just tried to do what is shown in your picture, and it does update the value of the control, but the value is not sent to Simulink... I don't know if I'm doing something wrong...  I did some basic tests with the Sine Wave SIT example.  I added a control called "Frequency Simulink", which is updating each time the value of the "Frequency" control changes, using a local variable inside the event (like your picture).  However, the new value of the frequency isn't passed to Simulink.  I posted the modified version of the sine wave example that I used to test, if someone wants to try it.
    Thanks for your answer, and please tell me if I did something wrong.
    Attachments:
    SITtest.vi ‏273 KB

  • Problem in converting a simulink model in LabVIEW 2010

    hello,
    I have developed a Simulink model in MATLAB which I want to convert into equivalent LabVIEW VI's. The simulink model is as attached. The problem here is:-
    LabVIEW is not able to convert all the mechanical blocks named Ankle revolute joint, Body , joint actuator and joint sensor into  equivalent LabVIEW VI.
    Is it possible to convert those blocks into equivalent LabVIEW VI's?
    PS:- I am using LabVIEW 2010.
    Attachments:
    AAFO.PNG ‏19 KB

    Hi Susheel,
    RFC module interface parameters (import, export , tables) can only refer to data dictionary types. Hence if you currently have one of the parameters referring to a type defined in your function group main include or in a type pool, you need to create a SE11 data dictionary structure/ table type for that and then change the data type reference.
    Cheers,
    Aditya

  • Transfer functions imported from Simulink through MIT not working in Labview

    Hi,
    I am just starting to use Labview interface with Simulink using Model Interface Toolkit (MIT). I am trying to import an integrater model from simulink. The model is very simple. An input port connected to an output port through an integrator model (1/s). Here are the steps I used:
    1. Build the model in Simulink.
    2. Add the NI input-output ports to the model and place the NIVeriStandSignal Probe in the model.
    3. Generate the dll using NiVeriStand.tlc as the target file option.
    4. Import that dll into Labview using Load Model.vi. Follow the steps given in the example file for importing the input/ output ports info along with the timing info.
    5. Then use a numeric control to input value to the integrator dll and pass the output from dll to a waveform chart.
    But when I run the labview VI, the output in the chart is always zero. What could be the possible reason? Please let me know if I am making any mistake in the process?
    I have used Fixed time step with ode4 (Runge-Kutta) as the solver options in Simulink during dll generation. I am using Labview 2014 and Matlab R2014a.
    I have found the issue to occur only when I use any transfer functions or Plecs circuit with inductors or capacitors in my Simulink model. But when I use simulink model with only constant or maths functions like add, subtract etc, this process works and gives me the correct result in Labview.
    Any help would be appreciated.
    Thanks.

    Hello Sachin_Madhu,
    Can you build example programs with a solver included? Does the model work in The MathWorks, Inc. Simulink® Software without tying into LabVIEW? It is important that when you built the model you followed the four steps listed in this help file:
    http://zone.ni.com/reference/en-XX/help/374160A-01​/vsmithelp/mit_convert_model_to_dll/
    MATLAB®, Simulink®, and Real-Time Workshop® are registered trademarks of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.
    Siana A.
    Application Engineering
    National Instruments

  • How to use Labview 6i and Simulink model ????

    HELLO I would like to use a simulink model written in matlab from labview
    6i.
    Can somebody help me?
    NI says that there is a possibility but they don�t know it.
    but - it can been done.
    motti

    Hi Motti,
    There are at least two ways to solve this depending on the problem. One ways is to use ActiveX technology to run a simulation model and get the results in the files saved from simulink. This is good if you have an off-line problem you do the calculations in simulink than the analysis in LabVIEW. If you have to communicate with the model interactively than you should use Real-Time WorkShop to create an executable and connect to it by TCP/IP. I have VIs for both solutions. I'm planning to release a LabVIEW toolkit for Matlab Simulink. If your problem is argent we can work out some deal.
    Andras Ferencz
    Naturen Kft.

  • Simulink model to labview

    Hi,
     I need to implement a simple speed control for a DC motor with two cascaded PI controllers.
    Is it posible to include a simulink model in a VI instead of using the simulink control blocks?
    Thank you!

    Hi,
    You can indeed build a LabVIEW interface for a simulink model by using the Simulation Interface Toolkit.
    The following link will provide you informations about this toolkit and how it works in parlicular:
    => http://zone.ni.com/devzone/conceptd.nsf/webmain/955a9d79583a0ab686256db8006672b8
    Regards,
    JPR
    NIF

  • Using Simulink data in labview

    Hello everyone !
    I have made an algorithm in labview and the simulink model data needs to be manipulated in this algorithm. The output of this algorithm is to be fed back in simulink model. I am able to map labview front panel controls with simulink model but i cannot use its data in block diagram window. How do i do it ?

    Here you have three options:
    1. Create a DLL from your model and use the Model Interface Toolkit (http://sine.ni.com/nips/cds/view/p/lang/en/nid/211815) to load the model into LabVIEW;
    2. Convert your model into a LabVIEW Control Design and Simulation (http://www.ni.com/white-paper/11281/en/) SubSystem and use the Control and Simulation Loop to run the model;
    3. Use some sort of communication between LabVIEW and Simulink (like OPC server) to communicate between simulations. This last option, although possible, it requires some sort of synchronization between products to avoid the loop to run too fast.
    Hopefully this helps,
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Is it possible to import simulink blocks into labview

    Hi,
    I was wondering if it is possible to import the MATLAB/simulink blocks into labview. 
    thanks,
    Baran.

    Hi Baran,
    There is no way to directly import any of the programing blocks from The MathWorks, Inc. Simulink® software into LabVIEW.
    However if you wanted to use your own code that you programed using The MathWorks, Inc. Simulink® environment in LabVIEW, we do have the NI Simulation Interface Toolkit which you can use.
    <Brian A | Applications Engineering | National Instruments> 

  • Simulink to LabVIEW automatic conversion

    I used the Tools>>Control Design and Simulation>>Simulation Model Converter to convert a Simulink file (.mdl) to a .vi (multiple files). The problem is that the converted files have a lot of errors and therefore  are not executable. The most frequent error is "You have two terminals of different types. the type of the source is cluster of 2 elements. The type of the sink is 1-D array of double [64 bit real (15 digit precision)] " How to I resolve this error? Is there a difference between Bus Creator/Bus Selector and Bundle/Unbundle in Simulink and LabVIEW respectively? I attach a sample VI. Thanks.
    Attachments:
    Water Pump.vi ‏13 KB

    Hello AAR,
    I cannot speak as much to the exact functionality of the Bus Creater/Bus Selector, but I will see if I can describe the bundle/unbundle to help clear up any confusion.
    The Bundle function creates a cluster in LabVIEW which can be a group of like or unlike data.  This cluster can be passed around the diagram and then the Unbundle or Unbundle by Name functions can be used to pass out a particular value in the cluster.
    I am not sure what your original model was doing, but it is easy to see why the VI you attached is broken.  You can resolve the broken wires in some different ways, and it depends on your intention with your original model.
    The attached file builds several scalars and an array into a 1-D array.  This array is then Bundled with a second array.  The cluster output of this bundle function is then being passed to an indicator called Water and a Global Variable called Inlet_water.  The datatype of both Water and Inlet_water is an array of doubles.  In LabVIEW the cluster datatype and array datatype or not interchangable.  I am not sure how these arrays are used in the rest of the model, but here is where your options come in.
    You could replace the Bundle with a Build Array(concatenate the inputs to make one 1-D array rather than a 2-D array).  Then, wherever you need access to specific elements of the array you can use the Index Array function.  For this modification you will need to know the index of the element you are interested in when using the Index Array.  Either that or convert your global variable and indicator to be clusters.  I think the first modification would probably be the simpler modification, but again it is dependent on how you intend to use the data in the rest of your model.
    I hope this helps, please post back if you have further questions about this.
    Regards,
    Angela M
    Product Support Engineer

  • Serial communication from simulink to labview

    hello everybody,
    i have problems with establishing serial communication from simulink(where the data is generated) to labview (version 2010).
    i tried everything but it won t work.can you please help me on this one pleaaase.
    thanks ^^
    Attachments:
    projet labview.vi ‏15 KB

    thanks so far for your replies,
    to clarify any confusion this is my system in simulink.
    the data are decimal values
    thanks again, hope i ll receive a reply from you guys soon cause i really need to progress in my project
    Attachments:
    xxx.PNG ‏20 KB
    yy.PNG ‏35 KB

  • Incorporation of Fuzzy Block From Simulink into LabVIEW Through SIT

    I am working on a project where I am using Simulation Interface Toolkit. In my applciation, I am using PXI-8176 with a PXI-6070E DAQ card. I generated my model using Simulink in which there is a Fuzzy Logic Control block.
    However, when I run my application real time on my PXI 8176 machine,  for some reason, the output of the fuzzy logic block is always constant when
    it is supposed to be changing as I change the inputs to the block ( I am able to observe my hardware input). I got in touch with the Mathworks people and confirmed that the DLL file generated by the real-time workshop contains the fuzzy block and everything seems to be working well with that dll file. I was wondering if there is any additional step that I have to follow in order to make the fuzzy block work in real time in my real-time machine. Or is there something that I need to do to be able to observe the fuzzy logic outputs?
    The steps that I walked through as folows:
    1-)I went to build option and the pick nidll.tlc, as I am targeting a PXI
    machine for the real-time application.
    2-) I built my appliciation using Real-time workshop.
    3-) Then I opened  Labview program to generate a user interface for my
    simulink model using (Simulation Interface Toolkit). Then I loaded the dll
    file generated by the real-time workshop and deployed the final code into
    the PXI Real-time machine. Everything is working just fine except that
    when I probe the output of fuzzy logic control block, it always spits out
    constant values. However, the output of the fuzzy logic block is always
    constant when it is supposed to be changing as I change the inputs to the
    block.
    Thank you so much!
    Serdar

    Hi Serdar,
    Have you tried running your model in LabVIEW on your host computer?  Try simulating the hardware with controls and indicators and see if it is running correctly without the hardware.  Also does your model work correctly before using SIT to connect to it.  LabVIEW and SIT only reference the model you created.  
    Best Regards,
    Bryan H.

Maybe you are looking for