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

Similar Messages

  • 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

  • Strange problem of calling library function node in labview 2010 and 2011

    one year ago,I develop a program to usb device data and it works well,in labview 8.6 or 2009(win xp).Recently, When I test
    the program in labview 2010 and labview 2011(win xp).,the program always crash immediately.I check the program and find main
    problem is in call library function node. In my program,I use labview 2009 library for the USBExpress driver for
    Silicon Labs USB MCU's from:https://decibel.ni.com/content/docs/DOC-9522,for example, 2 functions SI_OPEN and SI_READ
    can not work well.
    the header definition of SI_OPEN and SI_READ is:
    SI_STATUS WINAPI SI_Open(
    DWORD dwDevice,
    HANDLE* cyHandle
    SI_STATUS WINAPI SI_Read(
    HANDLE cyHandle,
    LPVOID lpBuffer,
    DWORD dwBytesToRead,
    LPDWORD lpdwBytesReturned,
    OVERLAPPED* o = NULL
    the SI_STATUS is equivalent to int type.
    orignally, for HANDLE * in SI_Open, the parameter type in call library function node is numeric, data format is unsigned 32 bit integer ,and pass pointer to value.
    for HANDLE in SI_Read, the parameter type in call library function node is numeric, data format is unsigned 32 bit integer ,and pass value.The program works well in labview 8.6&2009,however,crash in labview 2010 &2011.
    later,I debug the program, for HANDLE *, I choose parameter type in call library function node as adapt to type, data format is point to Handles.for HANDLE, I choose parameter type in call library function node as adapt to type, data format is Handles by Value.Crash not happend in labview 2010&2011,however,it cannot read any data from from USB device correctly as before.I can not find the reason.
    Dear friends,I need your help to answer the problem. Thank you.

    Based on the help page it looks like it should execute asynchronously.
    The thing in the description that leads me to believe they execute asynchronously is that you can configure the library to run as a multi-threaded operation.
    Please take a look here to see the difference between synchronous and asynchronous execution.
    Since the code even has the ability to be multi-threaded, you can consider it as running in parallel to your other code.
    Any data returned is passed to the thread that called that function.
    Cory K

  • Run veristand project in labview- outports of simulink model dll

    I have compiled a Simulink model into a dll file now I want to use some of the outports of the simulink model in labview I can see the outports in veristand workspace but now I want to use them in labview how can I do that?

    now I want to execute my .vi with a PXI and I get this problem I have saved the dll. in veristand target PXI not in the Controller I have created a project and I have saved the Veristand files in C:\ of the PXI and I have the problem below I need special sofware I have installed all the avaliable veristand software in the PXI 
    Attachments:
    Capturaaa.PNG ‏25 KB

  • Using SIT connection manager with large simulink models is extremely slow

    Hello,
    I'm trying to use a large simulink model in LabVIEW but once the DLL is correctly generated and the SIT connection manager is invoked to explore the model sinks, sources and parameters, it takes hours to generate the model connections tree. Afterwards, when the connections tree is completed, it is impossible to handle it because every operation performed takes a lot of time and memory (i.e. to expand a block to see which parameters are inside).
    The version of SIT I'm using is 2.0.3 with LabVIEW 7.1.
    Is there anybody experienced with large simulink models and SIT?
    Thanks and regards.
    Ignacio Sánchez Peral
    SENER Ingeniería y Sistemas S.A.
    Control Systems Section
    Aerospace Division
    C/ Severo Ochoa, 4 (PTM).
    28760 Tres Cantos (Madrid) Spain.
    [email protected]
    Tel + 34 91 807 74 34
    Fax + 34 91 807 72 08
    http://www.sener.es

    The VI in the Driver VI called SIT Initialize Model.vi has an input called time step (sec) (-1: use model time step) which does what you want it to. It doesn't actually affect the time step of the solver used in the built model DLL, just the rate at which the main base rate loop actually runs in real time. In fact, base rate loop period would be a better name for this control. If you set it, you won't alter your model, but you will be able to adjust the rate of the base rate loop.
    Simply create a control from this input terminal on your driver VI and fill in an appropriate period in seconds. Make sure to set this value as default in the control so that the Driver VI remembers it.
    You will have to take into account that your model will still think it's running at the time step it was compiled at. So your model simulation time and the actual wall clock time won't match up.
    Jarrod S.
    National Instruments

  • 3D graphs cause LabVIEW 2010 to hang

    I've been using LabVIEW  2010 for several weeks without any problems, but today I noticed that it doesn't work at all with anything related to the 3D picture control. Today was the first time that I tried doing anything with the 3D picture tool since installing LV 2010. Dropping any of the 3D Graphs on the front panel of a new VI causes LV2010 to hang. (By hang, I mean the VI window remains open but most UI things no longer work.  Right-clicking on the window does not show a context menu.  The main menu doesn't work.  The X button does not close the VI front panel window nor the diagram window. Control-Q does not cause LabVIEW to quit.  I have to kill the process in Task Manager.)  It is the same story with just a plaing 3D picture indicator.  Also, the solarsystem.vi example does not work either.  The problems start as soon as I open the solarsystem.vi.  After killing LV with Task Manager and relaunching LV10, I do not get the LV message about a previous crash.
    The problem I am talking about is for LabVIEW 2010 with the f2 patch running in Win7.  I am actually running it using VMware Fusion 3.1.3 on a 2009 Mac Pro running Lion.  The Mac drivers are all updated.  Since it is VMware Fusion machine, the video driver on the Windows side is part of the VMware Tools installation, which is up to date.
    After searching the forums, I've tried all the other potential solutions I could find:  1) repaired LV2010 using add/remove programs and 2) tried using the compatibilty mode settings to turn off Aero. 
    Interestingly, 3D graphs work fine on the Mac side for LV2010 for Mac.  
    Even more insterestingly, 3D graphs work fine on Win7 for LV 8.5, which I still have installed.  The fact that it works fine for LV 8.5 would seem to indicate that Lion did not introduce the problem and that the video driver is working fine.
    Solved!
    Go to Solution.

    Yep, it's the same virtual machine.  I set it up almost 2 years ago and it has been extremely stable.  Both LabVIEW 8.5 and 2010 have been perfectly happy on it.  It's a great way to do LabVIEW on Win7.  I didn't notice any changes at all to the VM when I upgraded from Snow Leopard to Lion.  I installed LabVIEW 2010 before upgrading to Lion, but I didn't have occasion to work with 3D controls before the upgrade to Lion so I don't know if it would have worked on Snow Leopard.  The Mac versions of both LabVIEW 8.5 and LabVIEW 2010 also work great on the both Snow Leopard and Lion.
    I happen to have an XP virtual machine too, but I haven't installed LabVIEW there.  Let me know if that would be a worthwhile test.
    You might check with Marc Page--unless he has already upgraded again I think he has a similar machine to mine.
    The video card is the original stock:
    NVIDIA GeForce GT 120:
    Chipset Model: NVIDIA GeForce GT 120
    Type: GPU
    Bus: PCIe
    Slot: Slot-1
    PCIe Lane Width: x16
    VRAM (Total): 512 MB
    Vendor: NVIDIA (0x10de)
    Device ID: 0x0640
    Revision ID: 0x00a1
    ROM Revision: 3386
    Displays:
    Cinema HD Display:
    Resolution: 2560 x 1600
    Pixel Depth: 32-Bit Color (ARGB8888)
    Main Display: Yes
    Mirror: Off
    Online: Yes
    Rotation: Supported
    Display Connector:
    Status: No Display Connected

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

  • [SIT 5.0] Problem with running Simulink model dll on RT target

    Hello!
    This a continuation of my problem described here: http://forums.ni.com/ni/board/message?board.id=170&thread.id=431616
    At the moment I am using following versions of software:
    LabVIEW 8.6.1
    LabVIEW Real-Time 8.6.1
    NI-RIO 3.1.0
    Simulation Interface Toolkit 5.0.0
    Microsoft Visual C++ 6.0
    MATLAB 7.4.0 (R2007a)
    NI cRIO-9014
    I have done everything mentioned in http://digital.natinst.com/public.nsf/$CXIV/ATTACH-AEEE-7JSQXS/$FILE/readme_sit_vxworks.txt
    After that I was able to build nidll and nidll_vxworks using Matlab. Then I have configured SIT Connection manager, mapped controls and indicators, selected model dll etc. But when I have tried to deploy it on RT target I got following error message:
    Initializing...
    Calculating dependencies...
    Checking items for conflicts. This operation could take a while...
    Preparing items for download. This operation could take a while...
    Deploying NI_SIT_Replay.lvlib
    Deploying NI_SIT_driversupportVIs.lvlib
    Deploying NI_SIT_ClientConnMngr.lvlib
    Deploying NI_FileType.lvlib
    Deploying NI_SIT_Data Log.lvlib
    Deploying XDNodeRunTimeDep.lvlib
    Deploying NI_SIT_util.lvlib
    Deploying NI_SIT_SITServer.lvlib
    Deploying project01_Driver.lvproj
    Deploying NI-cRIO9014-00E9D6B1(successfully deployed target settings)
    Deploying MD5Checksum pad.vi(8,86 K)
    Deploying NI_SIT_Replay.lvlib:Read Select Data Packet FIFO.vi(24,89 K)
    Deploying NI_SIT_driversupportVIs.lvlibIT Driver FP Strings.vi(2,39 K)
    Deploying NI_SIT_Data Log.lvlib:Allocate Data Log State Machine Buffers.vi(10,17 K)
    Deploying compatWriteText.vi(9,04 K)
    Deploying NI_SIT_Replay.lvlib:Wait for Ack.vi(5,29 K)
    Deploying NI_SIT_SITServer.lvlibITs Read Data Buffer.vi(20,24 K)
    Deploying NI_SIT_ClientConnMngr.lvlib:Find Channel.vi(8,23 K)
    Deploying NI_SIT_Data Log.lvlib:Get Current Configuration from Queue.vi(9,46 K)
    Deploying NI_SIT_Data Log.lvlibend New Group Probe List.vi(5,82 K)
    Deploying NI_SIT_Replay.lvlib:Write to Active FIFO.vi(8,71 K)
    Deploying NI_SIT_Replay.lvlib:Create Configuration FIFO.vi(6,29 K)
    Deploying NI_SIT_driversupportVIs.lvlib:sit Microsecond Timer.vi(9,62 K)
    Deploying NI_SIT_Data Log.lvlib:Get All Configurations from Queue.vi(9,30 K)
    Deploying NI_SIT_Data Log.lvlibwitch Active Configuration.vi(9,77 K)
    Deploying NI_SIT_Data Log.lvlib:Update Current Configuration Log Filename.vi(8,85 K)
    Deploying NI_SIT_SITServer.lvlibITs Send Packet.vi(26,80 K)
    Deploying Invalid Config Data Reference.vi(2,86 K)
    Deploying NI_SIT_driversupportVIs.lvlibIT Set Project Directory Path.vi(16,94 K)
    Deploying NI_SIT_Replay.lvlib:Update TCL Position FIFO.vi(16,39 K)
    Deploying XDNodeRunTimeDep.lvlib:loadlvalarms.vi(32,39 K)
    Deploying NI_SIT_driversupportVIs.lvlibIT Task Loop.vi
    Failed to download NI_SIT_driversupportVIs.lvlibIT Task Loop.vi
    LabVIEW:  Failed to load shared library SITs.*:TaskTakeOneStep:C on RT target device.
    Deployment completed with errors
    I was hoping that upgrading my software will fix all problems. But sadly, it didn't. Any idea? Many thanks for help!

    Hello,
    I also had quite a lot of problems using Labview 8.6.1, RT and SIT 5.0.1. I upgraded a software using Labview 7.1 and SIT 2.0.3 beeing used for 5 years now and it was real pain.
    I not using the SIT as you are (just load the model from a DLL, use a timeloop to step the model and finally close the model) but it seems that SIT 5.0.1 has a bug (confirmed recently by NI tech support) concerning inputs and outputs if you are using an array.
    It seems that if you use an array for the input during the transcoding of the simulink model to the DLL an index is not well taken into account resulting in a model not beeing able to read its intputs. In my case whatever the inputs data could be the outputs were always 0.
    The model has been changed to use only scalar data and everything works fine, ... well using the developpement software :
    I cannot generate an RT target executable as during the deployment it fails all the time.
    I saw once a message concerning SIT VIs deployment errors and it happened shortly after i upgraded my target : SIT 2.0.3 was still installed after SIT 5.0.
    I spent a few years without updating Labview and i am amazed at how many problems occurs with all versions above 8.0.
    Good luck,

  • Simulink R2014a model and LabView

    Hi,
    I am involved in a project in which we are trying to integrate a model developped in Simulink R2014a in an existing LabView 2011 application.
    We are looking at different alternatives without much success so far.
    - Simulation Interface Toolkit: Seems obsolete, and compatible only with quite old versions of Simulink.
    - Model Interface Toolkit (MIT):  Eventually we are ready to upgrade the labview application to Labview 2013 in order to use Model Interface Toolkit (MIT) functionalities. In some NI pages we have found information which assumes that one uses MATLAB Real-Time Workshop® , the problem is that this is not part of R2014a anymore. Currently MATLAB reccomends the use of "Simulink coder" or "Embedded coder" in order to generate compiled models in .dll format.
    Has anyone succeded in doig this? 
    Any link/help on which are the steps to follow?
    Thanks

    Hello,
    These threads might provide some insight into the options available:
    - http://forums.ni.com/t5/LabVIEW/Simulink-generated-c-code-to-DLL-Labview/m-p/2814284
    - http://forums.ni.com/t5/LabVIEW/Using-Simulink-data-in-labview/m-p/2846534
    It might be useful to explain what form your Simulink model is in - e.g. small or large, s-function based (and type), solver used, etc
    Hope this helps.
    Consultant Control Engineer
    www-isc-ltd.com

  • LabView talking with Simulink model

    I have a problem sending a real number to a Simulink model. Simulink
    only understand the format with full stop as indicater (2.5) but
    labview only want to send with comma (2,5).
    I´m Using a danish windows XP, but I can´t see that this is the
    problem, because I have tryed to change the settings to match the
    english number system.
    Please point me i the direction to fix this problem.
    Thanks
    M.Olsen

    Hello M
    In LabVIEW you are able to set the decimal point in Tools >> Options >> Front Panel. You are able to set it up to use the localized decimal point. When the localized decimal point is not used then its a dot that's used as decimal point. If you change that setting remember to reboot LabVIEW.
    Regards
    Mohadjer
    NI-DK
    Message Edited by mohadjer on 09-27-2005 08:30 AM

  • 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 

  • Converting CMYK color model vlaues (0-100) to liquid color volume using labview

    Hellow all,
    How I can convert CMYK color model vlaues (0-100) to liquid color volume using labview?
    best regards

    What does "liquid color volume" mean?
    You should continue in your original message thread and not create a new one.  CMYK colors mixing icon or vi

  • 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

  • Connect hardware I/O to simulink model

    Hello,
    i developed a controller using simulink. It's already been testet by connecting signal generators via "simulation interface toolkit" between labview and simulink. That worked out very well. The next step would be testing the controleron the real process. Therefore I have to connect the inputs and outputs of the simulink model to measurements and manipulated variables of the real process.
    Since there is no real time hardware on wich I could apply the .dll of the Simulink model for testing purpose I have to find a different way.
    So here's my question: Is there a possibility to connect Simulink IN and OUTs to measurements within LabVIEW? And apart from that I want to send the manipulated variable which is calculated by simulink back to LabVIEW and via Rs232 e.g. to the real process.
    I would be thankful for every answer or hint on how to fix this problem.
    Solved!
    Go to Solution.

    Hey,
    Yes, it's possible to connect IOs via customized code in the realtime driver VI.
    Please have a look at the following two webcasts (they are in German, I assume you are from Germany) where this will be explained in detail.
    http://zone.ni.com/wv/app/doc/p/id/wv-619 (Das LabVIEW Simulation Interface Toolkit – Teil I – Grundlagen)
    http://zone.ni.com/wv/app/doc/p/id/wv-621 (Das LabVIEW Simulation Interface Toolkit – Teil II – für Fortgeschrittene)
    Christian

  • How to use multiple Simulink Models on on Target and One Host VI?

    My ultimate goal is to run two Simulink models simultaneously from one Real Time Target PC from one LabVIEW VI. As I understand it, this is possible but I have not found a solution or example on how to do this. For debugging and demonstration purposes, I would also like to run the same setup on my windows machine. We have had SIT (and VeriStand) working with one Simulink Model for some time now.  I have tried using the SIT connection manager and coping the code, but I have not had success doing this. We are using LV 2009 and Matlab 2009. Any thoughts or inputs would be appreciated. Thanks for your help.

    Just dawned on me to try and open two instances of Matlab, then set the SIT server on the second instance of matlab to a different port. This worked as I got two different simulink models to run. The question is, is there a better more efficent way of doing this? Any thoughts would be welcome.

Maybe you are looking for