Fuzzy system from simulink to labview

Hey all, hope you are well. 
I have a developed fuzzy system in simulink, how would I go about transfering this over to labview? If anyone has any help or developed a model that can do this. Any advice is well recieved. 
regards
Alim Guy

Hi Alim,
This can be achieved using the Simulation Interface Toolkit, which can be purchased from this URL, which allows you to directly interact with models developed in Simulink. This toolkit will import the developed files into LabVIEW. In terms of researching Fuzzy Systems created within LabVIEW, if you have the Fuzzy Logic Toolkit, you can go to the NI Example Finder (LabVIEW > Help > Find Examples...) and search for the keyword 'Fuzzy' you can view Fuzzy Systems developed purely in LabVIEW. You can learn in depth about Fuzzy Logic Toolkit here to see if these tools suit your specific requirements.
In terms of the ease of implementation, it really depends on what you're after. It's not so much what process is easiest, but what you are suits your current process of development. If you're used to developing systems in Simulink and it's the standard at your workplace, then it's probably more suitable to implement your Fuzzy System through the Simulation Interface Toolkit; there are some extra steps required when importing the data in terms of referencing the variables appropriately in LabVIEW but it's not a lot of extra work. If you're interested in developing and implementing your systems entirely from the LabVIEW environment, it will be worth using the Fuzzy Logic Toolkit.
Regards, 
Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

Similar Messages

  • 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.

  • 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

  • No output from Simulink to LabVIEW with Simulation Interface Toolkit (0/1)

    I'm able to send data from labview to simulink, but the labview
    display doesn't show any output from the simulink model. I've attached
    two very simple labview and simulink files which gives me this
    problem. I have the same problem when trying to implement the sinewave
    example in the manual for the toolkit as well.
    I'm using LabVIEW 7.1 Pro, Matlab 6.5 and Simulink 5.0 on WinXP pro.

    The Simulation Interface Toolkit 2.0.1 or earlier does not work with LabVIEW 7.1. There is a patch available (or available soon) from NI support that corrects this problem. THe patch is Simulation Interface Toolkit 2.0.2.

  • Dll function calls from VB6 to Labview do not work.

    HI,
    We are transferring our production test systems from VB6 to Labview, and we are using "CAN-AC2-PCI" cards. When call functions of dll "canacpci.dll", UUT does not response at all, and Labview program does not report any error either. Attached are the user manual and my labview codes.
    I guess the DeviceNe_init.vi works because if run it twice, second runing will report error. To correct the error, the card has to be closed first..
    I close the card first, then initialize it. After then send the data. But I can not see any communication by DeviceNet Analyzer when sending data.
    All function parameters are copied from existing VB6 program. The VB6 program works fine.
    Please help me out,
    Thanks,
    Xiang Zhan
    Attachments:
    DeviceNe_init.vi ‏36 KB
    DeviceNet_SendDataXXXX.vi ‏18 KB
    CAN-ACx-PCI.pdf ‏139 KB

    Hi Turck,
    I'm not familar with this device, and it is difficult to say in this case.  I would recommend calling into National Instruments support or contacting the vendor of the device for additional assistance in this case.  As this isn't one of NI's Industrial Communications devices, you could also post on the LabVIEW forums for additional assistance, as there are a lot more people looking at that board than this one.
    Thanks!
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • I can't connect to my PXI from within my LabView Project

    Please advise,
    I have been programming my PXI-8195 fine for weeks, but this morning I am receiving an error in connecting to the remote system from within my LabView Project.  MAX says it is 'connected-running' and I even successfully tested a DAQmx task.  I tried rebooting the PXI a couple of times as well as my host computer.
    Thanks in advance for any assistance.

    Hi Nik11,
    What error are you receiving in LabVIEW?  Also, what operating system are you using on the 8195, and are you using LabVIEW or LabVIEW RT?
    Regards,
    Adam W
    Applications Engineering

  • 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

  • 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

  • Fuzzy System Designer in Labview 8.5

    I am using LabView 8.5. My project requires me to use fuzzy logic. In the Labview manual, stated that, I need to click to Tools > Control Design and Simulation > Fuzzy System Designer to launch the Fuzzy System Designer. However, in LabView 8.5, I follwed the steps but it did not lead to Fuzzy System Designer as the intruction mentioned in the manual. How to find it?

    In addition, I strongly recommend to update your LabVIEW version to 2009 or later. We did a major improvement to the toolkit at that version.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Fuzzy system designer

    Hi,
    Is it possible to start "Fuzzy system designer" from a .vi so that the .fs file is loaded?
    I would like to tune my rules and memberships. Now I must look for Tools -> Control... -> Fuzzy System Designer, then wait for it to load. After that I must find the right .fs file. It could  be more easily to use if the operation is: press button which stops fuzzy controller, starts/change control to Fuzzy system designer. After that I can edit rules etc, save the system. Back to my .vi. Press button to load new fuzzy system.
    Thanks in advance!
    Seppo Rantala

    To change parameters of Fuzzy WHILE the Fuzzy Controller, you have two options:
    1. You need to use the programmatic API (LabVIEW 2010 and later) that allow you to change any parameter while the VI is running. Please look at documentation and examples "examples\control\fuzzy\Dynamic greenhouse controller\FuzzyEx Dynamic Fuzzy Controller for a greenhouse.vi" to see how to use the API.
    2. You can automate the process you described below by place the load VI "inside the loop" and use a case structure to reload the controller after you modify the parameters with the existent tool. Notice that you do not need to stop the Fuzzy System Designer to operate your VI and you can modify the controller, save to a file and then, you can "reload" the controller, which will update all the parameters for you.
    Hope this helps.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • How can I call a LabVIEW executable from within another LabVIEW executable?

    I have a customer requirement for two LabVIEW executables. Based on their current setup, they need to run executable "A" or "B", both of which are under independent revision control. I have created a third "selection" executable that allows the operator to choose between one of the two, but I am receiving errors when I attempt to call a LabVIEW executable from within a LabVIEW executable using either the "System exec" VI or the "Run Application" VI. If I call a non-LabVIEW executable (such as Windows Explorer) everything works fine.

    > I have a customer requirement for two LabVIEW executables. Based on
    > their current setup, they need to run executable "A" or "B", both of
    > which are under independent revision control. I have created a third
    > "selection" executable that allows the operator to choose between one
    > of the two, but I am receiving errors when I attempt to call a LabVIEW
    > executable from within a LabVIEW executable using either the "System
    > exec" VI or the "Run Application" VI. If I call a non-LabVIEW
    > executable (such as Windows Explorer) everything works fine.
    As with the other poster, I suspect a path problem. You might try the
    path out in a shell window, and if it works, copy the complete absolute
    path to LV to see if that works. LV is basically passing the comma
    nd to
    the OS and doesn't even know what is in it, so you should be able to get
    it to work.
    The other poster commented on subpanels, which is a good suggestion, but
    without going to LV7, an EXE can have open more than one VI. You can
    use the VI Server and the Run method to fire up another top-level VI.
    The decision is whether you want both to be in unique processes.
    Greg McKaskle

  • How do I read the camera model and manufacturer from IMAQ in LabVIEW?

    Hello All,
    I have a machine vision application for automated test. I am required to save the image for each test for quality purposes. Since LabVIEW interfaces the CameraLink camera thru the IMAQ driver, various cameras can be used without changing the LabVIEW application. I need to store the basic configuration information, including camera model and manufacturer, with the image. I am able to read some parameters from IMAQ (like bit allocation and shutter speed) using the Read Attribute VI, but unable to read model and manufacturer.
    Does anyone know how to read camera make/model from IMAQ in LabVIEW?

    With this VI, any camera attribute that you can see and set in MAX, you should be able to see and set in LabVIEW.  These are attributes that are defined in you camera file.  Since Model/Make is not an "attribute" that you necessarily set, it is not included in your attributes tab in MAX.
    If your camera file included a model attribute, then it would show up in MAX under attributes and you would be able to read it using the above-mentioned VI.  The only thing I can suggest is perhaps use some File I/O instead of IMAQ VI's and read your camera file, if the ones you have are consistent in structure.
    Hope this helps!
    Tejinder Gill
    National Instruments
    Applications Engineer
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • 'Fuzzy System Designer' problem

    After I completed set up the 'Fuzzy System Designer' (2 inputs and 1 output). How can I use it in vi program? I find it can save as .fc (custom pattern) file in 'Fuzzy Logic Controller Design'. But how to use the .fc file?

    Hi,
    To use the Fuzzy Logic file, you need to use the "FL Load Fuzzy Controller" to load the file and use the "FL Fuzzy Controller" VI to execute the controller.
    The best way to see how to use it is accessing the manual and examples that ship with LabVIEW. You can access both function by going to "Help>>Search LabVIEW Help..." and go to "LabVIEW Modules and Toolkits" Options, browse the content for PID and Fuzzy Logic Toolkit. To access the example finder, go to "Help>>Find Examples.." and under Modules and Toolkits, find PID and Fuzzy Logic and open the examples.
    Hope this helps!
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Fuzzy system. Correction of rules.

    Hi all! Tell me, I have a fuzzy logic system with 6 inputs and one output. How to draw up rules and to adjust the system so that the resulting index was changed in the range from 0 to 10. Under the current rules, it varies on average from 3 min to max 8.6. that is the scale of values is not complete, although output membership function changes from 0 to 10. In what may be the case.
    Attachments:
    Fuzzy system.zip ‏38 KB

    Hello,
    This is a common behavior for Mamdani based Fuzzy controllers, where the defuzzification methods usually use the center or maximum value of a membership function to process the output, and these values maybe never touch the border of your universe of interest.
    A workaround would be just creating membership functions in a extended range, so the maximum or minimal outputs will be whitin your desired range. For example, instead of using 0___10 range, try -2___12 so the defuzzification can reach your 0 or 10.
    You can try first to mirror your first and last membership functions and see the result, and adjust them as needed.
    Hope this helps, best wishes.

  • Stock value is not getting updated in APO system From ECC automatically

    Hi All,
    Stock value is not getting updated in APO system From ECC automatically but if we do it manually from transaction CFM2 it will get updated.
    for this we are using EXIT_SAPLCSTK_001.
    I am using VL10A for delivery and VL06G for PGI
    I have also checked integration model for material and stock.
    Please help me out as it is very urgent.
    Thanks,
    Gaurav Mittal
    Edited by: GAURAV MITTAL on Feb 6, 2008 6:09 PM

    Hi,
    for transferring the stock data from R/3 to APO automatically, you need to have the integration model for material and stock activated.
    please check the same.
    if this does not help, let me know in detail the steps which you are following..
    Ram

Maybe you are looking for