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

Similar Messages

  • Import from Final Cut Pro not working correctly

    I have a very simple project in FCP. (Ver 6) It is a HD clip that is about 5 min long with 7 chapter markers.
    I exported the project as an XML file and imported that into Premiere Pro empty project.
    I wind up with two assets, a .mov with same name as the .mov in FCP and a sequence with the same named sequence in FCP.
    Right clicking on the .mov and selecting "New sequence from clip" creates a new sequence with the .mov on the timeline.
    There are no markers.
    Right clicking on the sequence asset and selecting "New sequence from clip" creates another sequence with the same name and the .mov on the timeline.
    The markers are inside the .mov and audio tracks, not up on the top ruler line where markers appear when manually adding markers.
    The keystrokes to move to markers do not work.
    The "Clear all Markers" function is greyed out , like it is when no markers exist.
    If a "Dynamic link to Encore is performed, there is no markers in Encore.
    If you enter chapter markers manually and look at the project file (an XML file) you will see indexes with the chapter points , durations and names as children named "Markers" with attribute"ObjectID='22'.under "//PremiereData"
    Following , in sequential order, are subsequent objects "Markers", ObjectID='23" through "ObjectID=n
    However, if you look at the project file after importing a FCP project, this same function occurs, except that it is "Markers" "ObjectID=30 with the indexes and marker data 31 through n (further down in the file). This area is empty when adding the markers manually in Premiere Pro.
    FYI , the project file is littered with the word "Marker" and "Markers" throughout the file, only their attributes make any node unique.
    I am at 99.9 &% finished with a VB program to create / modify nodes, values and attributes, except that the XML date changes format at the node named "//WorkspaceSettings" so I am not able to edit values to make a file that will not crash when opening.
    I would very much like the import from Final Cut Pro to work, or someone explain how to work with the nodes under "//WorkspaceSettings"
    Thank millions for a solution.

    It's a 2007 iMac with 2.4 GHz Intel Core 2 Duo.  I had been using Final Cut Pro without any problems right until I upgraded to Yosemite.  I'm hoping that upgrading to Yosemite doesn't mean I can't continue using Final Cut Pro - that would be extremely frustrating. 

  • Data Transfer using DataSink from DataSource to MediaLocator not working

    I wrote this pretty straightforward program to transfer from a DataSource to a MediaLocator and when i run it nothing happens. I waited for around 10 minutes and still nothing happened. I manually closed the program to see if any data has been transferred to the destination file but the destination file timpu.mp3 is empty. Can someone tell me why it isn't working?
    import javax.swing.*;
    import javax.media.*;
    import java.net.*;
    import java.io.*;
    import javax.media.datasink.*;
    import javax.media.protocol.*;
    class Abc implements DataSinkListener
         DataSource ds;
         DataSink dsk;
         public void transfer() throws Exception
              ds=Manager.createDataSource(new MediaLocator(new File("G:/java files1/jmf/aa.mp3").toURL()));
              MediaLocator mc=new MediaLocator(new File("G:/java files1/jmf/timpu.mp3").toURL());
              dsk=Manager.createDataSink(ds,mc);
              System.out.println(ds.getContentType()+"\n"+dsk.getOutputLocator().toString());
              dsk.open();
              dsk.start();
              dsk.addDataSinkListener(this);
         public void dataSinkUpdate(DataSinkEvent event)
              if(event instanceof EndOfStreamEvent)
                   try
                        System.out.println("EndOfStreamEvent");
                        dsk.stop();
                        dsk.close();
                        System.exit(1);
                   catch(Exception e)
    public class JMFCapture5
         public static void main(String args[]) throws Exception
              Abc a=new Abc();
              a.transfer();          
    }Message was edited by:
    qUesT_foR_knOwLeDge

    Have thrown this together - so it's not pretty, but should give you an idea
    public class ABC extends JFrame implements DataSinkListener, ControllerListener, ActionListener{
        private Container cont;
        private JButton jBRecord;
        private boolean bRecording = false;
        private Processor recordingProcessor;
        private DataSource recordingDataSource;
        private DataSink recordingDataSink;
        private Processor mainProcessor;
        private DataSource mainDataSource;
         public ABC(){
            super("Basic WebCam Handler");
            cont = getContentPane();
            cont.setLayout(new BorderLayout());
            //     control panel buttons
            jBRecord = new JButton("R+");
            jBRecord.setToolTipText("Record On / Off");
            cont.add(jBRecord, BorderLayout.NORTH);
            //     & Listeners
            jBRecord.addActionListener(this);
            addMyCamera();
            pack();
            setVisible(true);
        private void addMyCamera()
            Vector vCDs = CaptureDeviceManager.getDeviceList(null); //     get Devices supported
            Iterator iTCams = vCDs.iterator();
            while(iTCams.hasNext())
                CaptureDeviceInfo cDI = (CaptureDeviceInfo)iTCams.next();
                if(cDI.getName().startsWith("vfw:"))
                    try{
                        MediaLocator mL = cDI.getLocator();
                        mainDataSource = Manager.createCloneableDataSource(Manager.createDataSource(mL));
                        mainProcessor = Manager.createProcessor(mainDataSource);
                        mainProcessor.addControllerListener(this);
                        mainProcessor.configure();
                        break;
                    }catch(Exception eX){
                        eX.printStackTrace();
         private void startRecording(){
             if(!bRecording){
                  try{
                    System.out.println("startRecording");
                    recordingDataSource = ((SourceCloneable)mainDataSource).createClone();
                    recordingProcessor = Manager.createProcessor(recordingDataSource);
                    recordingProcessor.addControllerListener(this);
                    recordingProcessor.configure();
                    bRecording = true;
                  }catch(Exception eX){
                       eX.printStackTrace();
         private void stopRecording(){
             if(bRecording){
                System.out.println("stopRecording");
                bRecording = false;
                try{
                    recordingProcessor.close();
                    recordingDataSink.stop();
                    recordingDataSink.close();
                }catch(Exception eX){
                     eX.printStackTrace();
        public void actionPerformed(ActionEvent e)
            Object obj = e.getSource();
            if(obj == jBRecord)
                if(jBRecord.getText().equals("R+"))
                    jBRecord.setText("R-");
                    startRecording();
                else
                    jBRecord.setText("R+");
                    stopRecording();
         *     ControllerListener
        public void controllerUpdate(ControllerEvent e)
              Processor p = (Processor)e.getSourceController();
             if(e instanceof ConfigureCompleteEvent){
                   System.out.println("ConfigureCompleteEvent-" + System.currentTimeMillis());
                   if(p == recordingProcessor){
                     try{
                         VideoFormat vfmt = new VideoFormat(VideoFormat.CINEPAK);
                         TrackControl [] tC = p.getTrackControls();
                         tC[0].setFormat(vfmt);
                         tC[0].setEnabled(true);
                         p.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.QUICKTIME));
                         Control control = p.getControl("javax.media.control.FrameRateControl");
                         if(control != null && control instanceof FrameRateControl){
                              FrameRateControl fRC = (FrameRateControl)control;
                             fRC.setFrameRate(30.0f);
                     catch(Exception eX)
                         eX.printStackTrace();
                   else{
                        p.setContentDescriptor(null);
                   p.realize();
             else if(e instanceof RealizeCompleteEvent){
                   System.out.println("RealizeCompleteEvent-" + System.currentTimeMillis());
                   try{
                        if(p == mainProcessor){
                             Component c = p.getVisualComponent();
                             if(c != null){
                                  cont.add(c);
                             p.start();
                             validate();
                        else if(p == recordingProcessor){
                         GregorianCalendar gC = new GregorianCalendar();
                             File f = new File("C:/Workspace/" + gC.get(Calendar.YEAR) + gC.get(Calendar.MONTH) +
                                 gC.get(Calendar.DAY_OF_MONTH) + gC.get(Calendar.HOUR_OF_DAY) +
                                 gC.get(Calendar.MINUTE) + gC.get(Calendar.SECOND) + ".mov");
                         MediaLocator mL = new MediaLocator(f.toURL());
                         recordingDataSink = Manager.createDataSink(p.getDataOutput(), mL);
                         p.start();
                         recordingDataSink.open();
                         recordingDataSink.start();
                   }catch(Exception eX){
                        eX.printStackTrace();
             else if(e instanceof EndOfMediaEvent){
                  System.out.println("EndOfMediaEvent-" + System.currentTimeMillis());
                p.stop();
             else if(e instanceof StopEvent){
                System.out.println ("StopEvent-" + System.currentTimeMillis());
                p.close();
         public void dataSinkUpdate(DataSinkEvent event)
              if(event instanceof EndOfStreamEvent){
                   try{
                        System.out.println("EndOfStreamEvent-" + System.currentTimeMillis());
                        recordingDataSink.stop();
                        recordingDataSink.close();
                   }catch(Exception e){
         public static void main(String args[]) throws Exception
              ABC a=new ABC();
    //          a.transfer();          
    }

  • Import  from Memory id is not working

    Hi All,
    In the program SAPF110V for Tcode : F110 , I have written an enhancement where when user clicks printout button then a popup will come which will ask for whether date should be printed in the check or not. for this i have used FM : POPUP_TO_CONFIRM . here i am exporting the value if user clicks no (value is 2 for NO).
    exoprt statemnt written :
    export l_v_answer from l_v_answer to memory ID 'ANS'.
    In the driver program for check printing i am importing the value .if value = 2 then i am clearing the date that has to be printed in the check.
    import stmt :
    Import l_v_answer to l_v_answer from memory ID 'ANS'.
    however the value is not getting imported here.
    not able to find the reason why the value is not getting picked with import. please let me know the solution.
    Thanks,
    Preethi.

    called program
    REPORT  ZTEST7.
    selection-screen begin of block b1.
    parameters: a like mara-matnr.
    selection-screen end of block b1.
    types: begin of tp_sel_tab.
          include structure zstr2.
    types: end of tp_sel_tab.
    data: t_sel_tab type standard table of tp_sel_tab with header line.
    data: w_t_sel_tab type tp_sel_tab.
    *call screen 9100.
    start-of-selection.
    select ernam from mara into corresponding fields of table t_sel_tab where matnr = a.
    export t_sel_tab to memory id 'ZTEST7'.
    loop at t_sel_tab into w_t_sel_tab.
    write:/ w_t_sel_tab-ernam.
    endloop.
    calling program
    REPORT  ZTEST8.
    *types: begin of tp_sel_tab.
         include structure zstr2.
    *types: end of tp_sel_tab.
    data: begin of t_sel_tab occurs 0,
          ernam like mara-ernam,
          end of t_sel_tab.
    data: begin of sel_tab occurs 0,
          ernam like mara-ernam,
          end of sel_tab.
    *data: t_sel_tab type standard table of tp_sel_tab.
    *types:  begin of tp_sel_tab1,
           ernam like mara-ernam,
    end of tp_sel_tab1.
    *data: sel_tab type standard table of tp_sel_tab .
    data: w_sel_tab type zstr2.
    submit ztest7 with a = '000000000000000939' and return.
    import  sel_tab = t_sel_tab from memory id 'ZTEST7'.
    loop at sel_tab into w_sel_tab..
    write:/ w_sel_tab-ernam.
    endloop.
    please reward points

  • Lr5 does not import from d800 tether does not work either.

    When i connect D800 to my Win7pro laptop win sees the camera but LR5 does not.
    It freezes when i try to import and it does not recognize it for tether, I can tether other program.

    @Denyerec, Hi! Just so you are aware this is a user to user forum so the replies you will get here are mainly from users like your self. To have someone understand exactly what your problem is and respond with anything constructive you will need to supply a lot more details.
    What system are you useing Mac or PC what OS? What are you attempting to do when you have a problem? Do you get an error message? If so exactly what does it say? Was Lightroom working properly prior to this problem? Is your camera a Nikon D800 also?

  • Import from illustrator to flash not working (PNG/SWF)

    I spent 2 days making some lovely pictures in illustrator,
    all ready to go into flash. I first exported them into PNG from
    illustrator and tried importing that that way but after clicking OK
    nothing appeared on the stage or in the library. There were no
    error messages. I then tried exporting from illustrator in swf
    format. This time the picture appeared on the stage, with
    associated symbols etc. in the library, but when I came to publish
    the movie, the picture wasn't there at all. I finally tried copying
    and pasting from illustrator. This simply crashed flash every time.
    Has this happened to anyone else before? Or does anyone have
    any suggestions as to what the problem might be or how i could go
    about resolving it? Any help greatly appreciated. I'm begging for
    your help. Thanks.
    Adobe Illustrator CS2, Flash 8, Mac. (Png attached)

    This never happened to me.
    I use Illustrator 10 and Flash 8 Pro.
    Don't use .png (too heavy files).
    Use, as you did, export .swf in Illustrator.
    But be careful with export parameters!
    Which ones did you use?
    In Flash, did you group the parts and convert them to a
    symbo

  • After "upgrade" to new firefox, bookmarks didn't transfer. Help tells how to import from another browser but not old firefox. Also my anti virus (latest update) apparently not compatible with 4.0 Can I restore my old version

    Question
    After "upgrading" to new firefox none of my bookmarks are in new bookmarks help topics tell me how to import from another browser but not from previous version of firefox. Another problem is my anti virus ( most up to date) is apparently not compatible with 4.0 liked the old firefox would never have "upgraded" had I known my anti virus wouldn't work. Can I get old version back

    Check with Kaspersky as to what versions of Firefox their programs are compatible with. It is up to Kaspersky to keep their stuff up to date as Mozilla releases new versions of Firefox. And if they are unwilling or incapable of doing it, they should inform their customers of such and maybe refund their customers instead of stringing them along.
    http://forum.kaspersky.com/

  • Help!!! I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.

    I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.
    Sorry for my english i'm spanish

    I have not tried that...I will look up the process so that I can do it correctly (and still transfer all of my files, contacts, etc).  Any suggestions?  What is the advantage of restoring as a new device..is this more akin to a complete wipe of a hard drive?

  • How can apple send out an os update that renders an important function of the software/hardware to not work? They knowingly have sent out this new os update for iPad which makes airplay nonfunctining! I need this for my business!

    How can apple send out an os update that renders an important function of the software/hardware to not work? They knowingly have sent out this new os update for iPad which makes airplay nonfunctining! I need this for my business!  I could understand if they didn't know, but it is all over the Internet! When I went in to have it revert back to os6 (which worked fine!) I was actually asked if I had done any research before I installed the upgrade! As if this is the consumer's fault for being dumb enough to fall for the upgrade!

    That is not what I have discovered, nor what others have discovered, nor what I was told when I went the Genius Bar.  I cannot remotely mirror to my MacBook Pro and it only started the day after I installed the upgrade.  We tested it with an iPad that had not been upgraded, no problem.

  • HT1202 The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.

    The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.
    How can I transfer my music to a second computer iTune?
    Thanks,

    See this user tip
    Syncing iPhone to a "New" Computer or replacing a "crashed" Hard Drive

  • In OS Yosemite the search function in Mail, Finder, Spotlight- does not work

    MacBook Pro (Retina, 15-inch, Late 2013)
    2,6 GHz Intel Core i7
    16 GB 1600 MHz DDR3
    NVIDIA GeForce GT 750M 2048 MB
    OS Yosemite,
    Finder versión 10.10.1
    Mail Versión 8.1 (1993)
    In OS Yosemite the search function in Mail, Finder, Spotlight… does not work. Messages or documents with the search criteria are there and one could find them manually, but the search function fails to find them. Following advice from Apple Support (728965377):
    1. I applied an Apple protocol for adware removal (Remove unwanted adware that displays pop-up ads and graphics on your Mac); I had none, because I had formally utilized a similar protocol that I had found in Internet, actually an app that implemented automatically Apple's adware removal protocol.
    2. I rebuild the post boxes in Mail (Mail (Yosemite): Reconstruir buzones); It took a while but it functioned properly
    3. I re-install the System (OS X Yosemite: Reinstalar OS X); It took about 4 hours but there was no problem whatsoever with the installation.
    Afterwards I searched for messages in Mail, and documents in Finder and Spotlight, without any difficulty. The search function in all of them was working properly. But the next time that I needed to search messages or documents, an hour later or so, the problem reappear and a couple of new issues occurred:
    1. in app RagTime 6.5.2 (Build 1821), www.ragtime.de, the menu bar disappears (it is invisible), when one performs certain operations, e. g., calculating a value with a formula, whether it is in a spreadsheet or some other component (text, drawing, etc.). After touching with the cursor the menu bar is visible again.
    2. after reading an e-mail in Mail or copying an address, this is seeing as a floating object in the finder and over every application. There is no logical way to get rid of the floating object and neither copying or deleting or cutting it. It is not a big issue but nonetheless bothersome.
    3. In Mail, messages with Flag or in VIP contacts cannot be seen in the appropriate folders, only in the Incoming mail folder, together with other messages. It seems to me, this issue is part of same search function problem.
    4. The preview function within Mail does not show the attached documents to a message, whether it is in the IN, OUT or Draft boxes.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try again to re-index Spotlight. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name or email address, may appear in the log. Anonymize before posting.

  • Reopen All Windows from Last Session is not working

    The option Reopen All Windows from Last Session is not working, is there any other way to recover the tabs from my last session?
    Last night I fell asleep and my friend shut down my laptop.
    When I woke up in the morning I couldn't restore my last session which had several tabs opened for my research.
    I don't know the exact date when I found them, so I haven't been able to find them in History either.
    I've looked around on the internet, but haven't been able to find anything that helped me out.
    Hope you can help me! Thanks.

    Restart your Mac.
    Check the box for:  Reopen windows when logging back in
    Then check History >  Reopen Windows from Last Session

  • The search function in the itunes store does not work.  It will accept a request and suggest searches but then it locks up and will not search.  Clicking on the magnifying glass or a suggested search does nothing.  Re-installing itunes has not helped.

    The search function in the itunes store does not work.  It will accept a request and suggest searches but then it locks up and will not search.  Clicking on the magnifying glass or a suggested search does nothing.  Re-installing itunes has not helped.

    everything you stated here is exactly what i have done and have got nowhere. i have windows 7 64 bit on a hp 8 g of ram desktop. im also looking for help

  • HT201210 trying to download an instal ios 7 on my iphone 4s, after half an hour into the download it came up with a message saying failed and everytime i try again the download doesnt start. tried downloading from itunes aswel but not working. anyone know

    trying to download an instal ios 7 on my iphone 4s, after half an hour into the download it came up with a message saying failed and everytime i try again the download doesnt start. tried downloading from itunes aswel but not working. anyone know why?

    The servers are overloaded. There are a hundred million people all trying to download iOS 7 at one time. Try again later

  • The search function on my "sent" mail does not work - can anyone help?

    The search function on my "sent" mail does not work. When I type in more than two letters into the saerch box - the sent mail screen goes blank. Any ideas how to fix this? Apple technical support has not been much help for the past five days...

    As this is the forum for the MacBook Pro hardware, your question will be better answered in the OS X Snow Leopard forum where the Mail app is discussed.

Maybe you are looking for