Schnittstellen zwichen Matlab/Simulink und Labview

Hallo Leute,
ich habe ein Diplomthema wo ich muss ein Fpga I/O (muss nicht die ganze I/O sein) mit ein block in Simulink(Simulink Model) aufrufen.
im moment kann ich die Programmierung des Fpga auf ni pxi 7813R unter labview machen und dann würde mir ein file konfiguriet.
Um ein Simulink model mit Labview zu verbinden braucht man SIT .
Jetzt kommt die Frage :die I/O des Model kann ich nur unter labview definieren, nun musse ich jetzt in meiner Diplomaufgabe in Matlab/Simulink in einer Blockset definieren .
Weiss jemand irgendein Information darüber, ich weiss noch nicht wie kann ich das realisieren. bitte sagen sie mir jede Information die mir helfen kann . ich wäre sehr dankbar 
houssa

Hi,
ich benötige leider dringend und kurzfristig Hilfe.
Ich hab eine 10-15 Seitige Hausarbeit  geschrieben bzw. bin noch dabei, es geht um die  Kopplung von Simulink mit LabVIEW zu schreiben.
Die Note der Hausarbeit, wird meine Zeugnisnote für dieses Fach sein.
Daher suche ich jemanden der sich das durchlesen kann und von der Materie versteht.
Natürlich gegen Zahlung
Bitte um schnelle Rückmeldung.
Lieben Gruß,
Lisa

Similar Messages

  • Matlab, simulink et labview

    Bonjour à tous,
    Je me suis renseigné sur le sujet, et j'aimerai savoir si j'ai bien compris.
    On peut incorporer du code matlab dans labview , via la boite script "matlab" du diagramme, pour utiliser simulink avec labview, il faut creer une dll à partir du code généré sous simulink.
    Est ce que j'ai bon, ou peut on incorporer aussi du code sous simulink dans Labview, via une boite spéciale.
    Merci pour vos réponses

    Bonjour,
    Merci d’être venu sur le forum de National Instruments.
    A priori vous avez bien compris comment intégrer du code Mathlab dans LabVIEW. Pour ce qui est de Simulink il faut effectivement appeler un DLL créé sous Simulink. Ce lien vous permettra de savoir comment faire.
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/

  • ABS from MATLAB (simulink) to Labview (.vi file)

    Hello
    My Antiskid Control System project requires me to plot the graphs of wheel speed and vehicle speed. The original model is from Matlab simulink file-absbrake(this is an example of control)
    I tried to convert the whole system into labview representation. I donot want to use SIT or RT or any other Labview tools. I wanted to convert from Simulink model into Labview element-by-element. Can anyone help me...plss
    my due date for submission is 15march...so please help me

    abs.vi is the file that i attempted to 'convert' from matlab into labview
    Attachments:
    abs.vi ‏97 KB
    absbrake.vi ‏32 KB
    absdata.vi ‏1 KB

  • FPGA Interface between Simulink/M​atlab und Labview

    Hello People,
    I has a diploma topic, where I must  call a Fpga I/O (AI/O or DI/O) from a block in Simulink(Simulink Model) .  I can make the programming of the Fpga on ni pxi 7813R under labview . Around a Simulink model with Labview to connect one needs SIT.
    Now the question:I can define  the  I/O of the Simulink Model under labview , now I must the I/O  in Matlab/Simulink in block set define . White someone any information about it, I white not yet as I know that realize please to say her me each information me to help can. 
    Thanks very much
     houssa

    Hello FourtwonaFirst  thanks for your answer and your interest, I try to explain what i want to realize. I have a Model in Simulink, I can this Model connect in LabVIEW with simulation interface toolkit,  and with SIT Connection manager the hardware I/O as Model I/O  configure.  
    I would like to make the I/O interfaces of a FPGA 7813R PXI system from Simulink accessible. Similarly as with dSPACE RTI block, I can access the I/O from Simulink means over S Function Block. for example Analog Input.
    Also I want to define the I/O of the Model as FPGA I/O  in Simulink and then can I build the ModelDLL  in Matlab and in SIT download. finally run  the Model-simulation on RT Target.
    I think, we need access to the visa server. I am on the search for this concept.
    Perhaps you or someone can support me.
    My Regards and thanks
    HooSSa

  • Aufruf des FPGA Konfiguration von Matlab/Simulink

    Hallo ,
    ich versuche gerade ein HIL zu testen mit NI Hardware PXI und FPGA , weiss jemand ob es möglich auf die Konfiguration des PXI  mittel  Matlab/Simulink zugreifen , so zu sagen ob ich kann die Funktionalität des  FPGA oder CAN Karte als blockset in  Simulink/Matlab  statt in  Labview aufrufen. Mein Arbeitsgeber will gerne, dass die ganze Fonktionalitäten als blockset wie zum beispiel unter dspace in Simulink/Matlab  aufrufen kann.
    Ich bedanke mich sehr für die Information
    befaiz

    Hello First  thanks for your answer and your interest, I try to explain what i want to realize. I have a Model in Simulink, I can this Model connect in LabVIEW with simulation interface toolkit,  and with SIT Connection manager the hardware I/O as Model I/O  configure.  
    I would like to make the I/O interfaces of a FPGA 7813R PXI system from Simulink accessible. Similarly as with dSPACE RTI block, I can access the I/O from Simulink means over S Function Block. for example Analog Input.
    Also I want to define the I/O of the Model as FPGA I/O  in Simulink and then can I build the ModelDLL  in Matlab and in SIT download. finally run  the Model-simulation on RT Target.
    I think, we need access to the visa server. I am on the search for this concept.
    Perhaps you or someone can support me.
    My Regards and thanks
    HooSSa

  • Problem in creating the simulation dll using SIT 2.0.3,matlab 7.1,labview 7.1

    I am currently using SIT 2.0.3 ,using this toolkit i am trying to create the simulation DLL for labview.but i am getting the following error in matlab command window
    Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 117 Column: 7
    Undefined identifier ReleaseVersion
    Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 117 Column: 25
    The == and != operators can only be used to compare values of the same type
    Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 260 Column: 26
    Undefined identifier ReleaseVersion
    Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 260 Column: 44
    The == and != operators can only be used to compare values of the same type
    Is this a version problem?
    I am using
    Simulation interface toolkit 2.0.3
    Matlab 7.1.0.246(R14) Service pack
    Real time workshop V.6.3
    Labview 7.1
    Microsoft visual C++ 6.0
    Can anybody help me to solve this issue.

    Hi Jayasheela,
    Here are the Read Me files for different versions of Simulation Interface Toolkit. Usually, the toolkit will only work with the versions of software that are explicitly stated.
    Simulation Interface Toolkit 3.0 Readme
    The MathWorks, Inc. MATLAB® / Simulink® application software release 13.x or 14.0, 14.1, 14.2, 14.3
    The MathWorks, Inc. Real-Time Workshop® release 13.x or 14.0. 14.1, 14.2, 14.3
    Microsoft
    Visual C++ 6.0. You can use Microsoft Visual C++ .NET 2003 only if you
    installed the LabVIEW 7.1.1 maintenance release.
    National Instruments LabVIEW Real-Time Module 7.1.x for ETS Targets.
    (Optional) National Instruments LabVIEW FPGA Module 1.1.x, for customized FPGA VIs used in real-time simulations involving FPGA devices
    Simulation Interface Toolkit 3.0.1 Readme
    The Simulation Interface Toolkit (SIT) 3.0.1 updates SIT 3.0
    to support LabVIEW 8.0, the LabVIEW 8.0 Real-Time Module, and the
    LabVIEW 8.0 FPGA Module. You also can use SIT 3.0.1 with LabVIEW 7.1.x. However, you cannot install SIT 3.0.1 for both LabVIEW 8.0 and LabVIEW 7.1.x.
    Simulation Interface Toolkit 3.0.2 Readme
    The Simulation Interface Toolkit (SIT) 3.0.2 updates SIT 3.0.1
    to support LabVIEW 8.2, the LabVIEW 8.2 Real-Time Module, and the
    LabVIEW 8.2 FPGA Module. You also can use SIT 3.0.2 with LabVIEW 7.1.x or with LabVIEW 8.0.x. However, you cannot install SIT 3.0.2 for more than one version of LabVIEW on the same computer.
    This maintenance release also adds support for the following products:
    The MathWorks, Inc. MATLAB® / Simulink® application software R2006a.
    The MathWorks, Inc. Real-Time Workshop® R2006a.
    If you install SIT 3.0.2 for LabVIEW 7.1, you can use
    Microsoft Visual C++ 6.0 to convert models to model DLLs. If you
    install SIT 3.0.2 for LabVIEW 7.1.1, 8.0, 8.0.1, or 8.2, you can use
    either Visual C++ 6.0 or Visual C++ .NET 2003.
    Simulation Interface Toolkit 4.0 Readme
    The MathWorks, Inc. MATLAB® / Simulink® application software release 13.x, 14.x, or 2006a, 2006b, 2007a
    The MathWorks, Inc. Real-Time Workshop® release 13.x, 14.x or 2006a, 2006b, 2007a
    Microsoft Visual C++ 6.0 or .NET 2003
    You can also take a look at this KnowledgeBase article, which condenses some of the previous information.
    MATLAB®, Real-Time Workshop®, and Simulink® are the registered trademarks of The
    MathWorks, Inc. Further, other product and company names mentioned herein are
    trademarks, registered trademarks, or trade names of their respective companies.
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • How can I put C files gave me from Matlab Simulink Real Time Workshop in a CIN?

    I'm doing a turbine simulation, and I've already done it in Matlab Simulink Real Time Workshop. It gave me files .c, and I want to use them to run the same simulation on a PCI 7030/6040 using LabView RT 5.1. I'm using the CINs. My problem is that I'm able to have .lsb files, but them don't work....I mean I have as output the same result 0(zero). What can I do for solving my problem?
    Thanks in advance!!

    Somehow, this question was posted twice on the same day. See the other posting of this same question for the answer.
    Chad H.
    Applications Engineering
    National Instruments
    http://www.ni.com/ask

  • Matlab script in Labview

    Hi there,
    I want to integrate my Matlab script in Labview,
    the input variable should be a Matrix like
    the following A = [ 0 256 ; 1 256 ;1.5 100 ; 1.55 110; 1.59 55; 1.6 56 ; 9 256; 14 256 ;15 100 ]
    How do I do this in Labview, I tried an array but
    no succes...
    Bye for now

    hi chris .. thanks for the reply ...
    here's the results from 'ver
    MATLAB Version 7.0.1.24704 (R14) Service Pack 1
    MATLAB License Number: 227039
    Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2)
    Java VM Version: Java 1.4.2_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
    MATLAB                                               
    Version 7.0.1      (R14SP1)
    Simulink                                             
    Version 6.1        (R14SP1)
    Aerospace
    Blockset                                   
    Version 1.6.1      (R14SP1)
    Bioinformatics
    Toolbox                               
    Version 1.1.1      (R14SP1)
    CDMA Reference
    Blockset                              
    Version 1.1        (R14SP1)
    Communications
    Blockset                              
    Version 3.0.1      (R14SP1)
    Communications
    Toolbox                               
    Version 3.0.1      (R14SP1)
    Control System
    Toolbox                               
    Version 6.1        (R14SP1)
    Curve Fitting
    Toolbox                                
    Version 1.1.2      (R14SP1)
    Data Acquisition
    Toolbox                             
    Version 2.5.1      (R14SP1)
    Database
    Toolbox                                     
    Version 3.0.1      (R14SP1)
    Datafeed
    Toolbox                                     
    Version 1.6        (R14SP1)
    Embedded Target for Infineon C166 Microcontrollers    Version 1.1.1      (R14SP1)
    Embedded Target for Motorola
    HC12                    
    Version 1.1.1      (R14SP1)
    Embedded Target for Motorola
    MPC555                  
    Version 2.0.1      (R14SP1)
    Embedded Target for OSEK
    VDX                         
    Version 1.1.1      (R14SP1)
    Embedded Target for TI C2000
    DSP(tm)                 
    Version 1.1.1      (R14SP1)
    Embedded Target for TI C6000
    DSP(tm)                 
    Version 2.2.1      (R14SP1)
    Excel
    Link                                           
    Version 2.2.1      (R14SP1)
    Extended Symbolic
    Math                               
    Version 3.1.1      (R14SP1)
    Filter Design HDL
    Coder                              
    Version 1.1        (R14SP1)
    Filter Design
    Toolbox                                
    Version 3.1        (R14SP1)
    Financial Derivatives
    Toolbox                        
    Version 3.0.1      (R14SP1)
    Financial Time Series
    Toolbox                        
    Version 2.1.1      (R14SP1)
    Financial
    Toolbox                                    
    Version 2.4.2      (R14SP1)
    Fixed-Income
    Toolbox                                 
    Version 1.1        (R14SP1)
    Fixed-Point
    Toolbox                                  
    Version 1.1        (R14SP1)
    Fuzzy Logic
    Toolbox                                  
    Version 2.2        (R14SP1)

  • Simulation Interface Toolkit - How to toggle a manual switch in simulink from LabVIEW?

    I have a manual switch in my simulink diagram that I want to use to switch between to values from my LabVIEW interface. I have tried to connect a toggle switch at LabVIEW`s VI with different parameters in the simulink model(I can choose betweenhow Port Labels, sw, and action), but none of them seem to work properly.
    The manual switch in Simulink gets to inputs, one output. There is also an Environment Cotroller that output the simulation(SIM) or Real-Time Workshop(RTW) port depending on the current environment.
    At this time I am doing simulations and are not using Real-Time Workshop.
    I want to thank you for your help in advance.
    -Mari

    Hi
    Kotsya,
    Thank you for posting to the National Instruments Discussion
    Forums.
    If you are not using the Math Interface Toolkit, you may be
    interested in using the MATLAB® Script Node. This allows
    you to call MATLAB® commands using ActiveX and I you
    can call your Simulink model from MATLAB® that way.
    Here are some resources on how you can do this:
    MATLAB® Script Node LabVIEW 8.2
    Help
    How Can I Resolve MATLAB® script node and
    Xmath Script Node Issues in LabVIEW?
    Hope this helps!
    Abhinav T.
    Applications Engineering
    National Instruments India
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx
    Measurement Fundamentals

  • Simulink and Labview

    Hi all,
    could I use the SimMechanics(Simulink) to create a mechanical model and after that create a DLL with the SIT(Simulation Interface Toolkit) to use it in Labview?
    Thank you.
    Ziman 

    Hello!
    Yes, you can have SimMechanics and build a DLL and then use it in LabVIEW using the Simulation Interface Toolkit.
    However there are a few things to consider since it seems like it works quite differently compared to ordinary Matlab/Simulink
    Quote:
    “SimMechanics model differs significantly from other Simulink models in how it represents a machine. An ordinary Simulink model represents the mathematics of a machine's motion, i.e., the algebraic and differential equations that predict the machine's future state from its present state. The mathematical model enables Simulink to simulate the machine. By contrast, a SimMechanics model represents the structure of a machine, the geometric and kinematics’ relationships of its component bodies. SimMechanics converts this structural representation to an internal, equivalent mathematical model. This saves you from having to develop the mathematical model yourself."
    I am not sure whether the mathematical models are present for the user for optimizations purposes.
    Regards,
    Jimmie Adolph
    Systems Engineer Manager, National Instruments Northern Region
    Bring Me The Horizon - Sempiternal

  • Measure signals from Matlab Simulink Model

    Hi,
    I modeled a six bus power system network on Matlab/Simulink and I would like to measure the voltage and current signals using a DAQ card. The DAQ card im having is a
    NI PCI-6132 S Series Multifunction DAQ. How do I go about acquiring this signals?
    Regards,
    Louwrence

    Hey Louwrence,
    Are you going to be using the 6132 card with LabVIEW to acquire the signals? If so, you should look in the NI Example Finder that is installed with LabVIEW. Go to Help>> Example Finder. Then go to Hardware Input and Output>> DAQmx>> Analog Measurement and choose the example you would like to look at.
    If you are trying to use the card through MATLAB, you will need the DAQ Toolbox. You can check for official compatibility here. I do not know what is installed with this toolbox as it is not National Instruments. There may be some examples in there however.
    Hope this helps.
    MATLAB®, Real-Time Workshop®, and Simulink® are registered trademarks of The MathWorks, Inc. 
    Joe S
    Applications Engineer
    National Instruments

  • How to use matlab function with labview?

    Hello,
    I just want to use some matlab functions like floor(),ones()... in my labview code, who can tell me how to do it?
     I want to only install MCR in my PC, so MATLAB script node can not work because it need matlab installed. 
    Thanks
    Solved!
    Go to Solution.

    floor() exists on the standard labview pallet already and the ones() function would be fairly simple to reproduce. If you only need a few basic functions repost asking for direction on recreating those specific methods. However, you're right - there is not a direct way to use compiled matlab code in labview without full matlab and the math script nodes. If you're really desparate to reuse some some exisiting IP there are C++ alternatives that implement many of the same methods and syntax as matlab (http://arma.sourceforge.net/faq.html). I'm fairly sure there are other tools that attempt to translate matlab code into pure c functions, both of which can be called via a DLL from within labview: https://decibel.ni.com/content/docs/DOC-9076
    Alternatively, here is an all NI linear algebra solution: http://sine.ni.com/nips/cds/view/p/lang/en/nid/210525

  • Same code gives different results in Matlab Script in Labview and Matlab

    I am implemeting a Matlab code into a LabVIEW application using Matlab script. When I import the exactly same code to the Matlab Script in LabVIEW it gives a different result than it is in Matlab. This code is a simulation code including first kind bessel functions. Using LabVIEW 7.1 and Matlab R14 service pack 3.

    Labview 8.5
    Matlab R2009b
    Attached are the graphs produced by matlab script in labview and in matlab.
    The minimum of graph produced by matlab code is below 1 and that in labview is above 1.
    Thanks a lot for your reply.
    Sorry, I haven't quantified the "sometimes" yet. 
    Attachments:
    matlabsResult.jpg ‏29 KB
    LV.png ‏84 KB

  • How to use a Matlab Program within Labview

    Hi
    I saw in this forum that many users are using some matlab program
    executed in Labview program. I have actually Labview 7.1 and would like
    to use some of my matlab program in Labview. Is there an easy way to do
    it ?
    Thanks
    Thomas

    The MATLAB Script function is kinda buried in the function palette, and
    can be found under Functions >> Analyze >> Mathematics
    >> Formula.  Unfortunately this feature is not available in
    the LabVIEW Base package.  Hope this helps!
    Andy F.
    National Instruments

  • Using Matlab code in LabVIEW

    Hi,
    I have never used LabVIEW and I am wondering if there is a way to run Matlab code in LabVIEW. If so, how would I do it and are there any special instructions or tips I should know about?

    What is your LabVIEW version?
    Do you have matlab installed on your computer?
    In older LabVIEW versions, you can only use the matlab script node, which requires that you have a copy of matlab installed.
    In newer versions, you have two more alternatives that don't require the purchase of Matlab:
    Use a mathscript node.
    Use a scilab script node.
    Information on mathscript: http://zone.ni.com/devzone/cda/tut/p/id/3502
    Information on scilab: http://zone.ni.com/devzone/cda/epd/p/id/657
    There is even a mathscript forum here: http://forums.ni.com/ni/board?board.id=MathScript
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Loading multiple files with SQL Loader

    Hello. I will appreciate your recommendation about the way to load multiple files (to multiple tables) using SQL Loader with only one Control file. file1 to load to Table1, file2 to load to Table2 etc. How the Control file should look like? I was loo

  • Depreciation for 53 weeks in the weekly Calender Issue

    Hello We are currently facing an issue with caliculation of depreciation in AA for FY 2011. At the company GL follows the 4-4-5 weeks pattern.The depreciation follows the weekly calander whichtypically have 52 weeks. Every 6 years we are going to hav

  • Description for Variable in variable screen

    Hi Forum, I am using variables type "Replacement Path" in a query for 0FISCYEAR and 0FISCPER3 through by another variable for 0FISCPER. The variables are functioning well, but in the screen of entrance of variables, the variable for 0FISCPER display

  • CD and DVD roms not working

    I have just installed a 845PE Max2 motherboard and 2.4GHz Intel processor.  I have kept my CD writer and DVD from my old machine. The PC boots up fine but does not recognise the ROMs at all. Anyone any ideas what I could have done wrong?

  • Problem in bapi   BAPI_PO_CREATE

    Hi, I am using Bapi BAPI_PO_CREATE To upload data in ME21. Please send me the Sample code if possible along with the Data. Regards AJay