Model interface toolkit (MIT) code generation failes in simulink

Hello,
I'm running into an odd Simulink Coder failure and I can't tell if this is due to an NI/MIT but or a general Simulink Coder issue.
System:
Windows 7
Matlab/Simulink R2013b w/ Simulink Coder
MIT 2013 SP1
System target file = "NIVeriStand_VxWorks.tlc"
Not that we even get to this point but... my "WindRiver GNU Toolchain Setup Path" is properly configured to: c:\gccdist\supplemental\setup-gcc.bat
The attached image shows the error I'm getting:
          "Error: Invalid character in: 'SMA_model/SMA Driven Arm/wire/Heat Transfer Model/ ', exiting code generation. The name cannot end with / character".
In the image you can see that the "Heat Transfer Model" subsystem in fact does not have a "/" in the name. 
Has anyone else ever run into this code generation problem before? If so, any suggestions on how to get around it?
Thanks.
Solved!
Go to Solution.
Attachments:
SimulinkCoderError.png ‏92 KB

That error is actually being reported by Simulink® before the build process begins. I'm guessing you would see it regardless of the TLC file you choose. Interestingly, in my tests here Simulink® doesn't allow me to leave a subsystem with a "/" at the end of the name. It automatically changes the name back to what it was before I tried to add the "/." That same error you see in the compilation window is displayed in the command line output when I attempt it. It looks like I'm running a different version than you though. 
The screen shot doesn't really confirm the subsystem block name itself, at least the hierarchy at the top of the window appears to have parsed out all backlashes. Could you provide a screenshot of the heat transfer model subsystem block? 
MATLAB®, Simulink®, and Real-Time Workshop® are registered trademarks of The MathWorks, Inc.  All other trademarks are the property of their respective owners.
Applications Engineer
National Instruments
CLD Certified

Similar Messages

  • (MIT)Model Interface Toolkit和veristand有什么区别?

    RT

    Relationship to NI VeriStand
    The NI VeriStand real-time testing software and the Model Interface Toolkit share the same DVD and installer. Both products also share components that provide support for compiling models.
    NI VeriStand is a software environment for efficiently creating real-time testing applications. NI VeriStand helps you configure a multicore-ready real-time engine to execute tasks such as real-time stimulus generation and data acquisition for high-speed and conditioned measurements. For more information about NI VeriStand, refer toni.com/veristand.
    MIT是一个接口

  • Model Interface Toolkit Evaluation

    I have a need to integrate a Matlab/Simulink model into LabVIEW.  Luckily I saw that NI has a few options.  Recently NI had updated their toolkit and call it the Model Interface Toolkit and include it with Veristand 2013.  So I downloaded Veristand and installed the toolkit.  I then went to the Example Finder and opened the MIT User-Interface with F-14 Model to see it work.
    The problem is the VI is broken, and reports "This VI or item belongs to a library that is in evaluation mode."  Well yeah so what I want to evaluate it to make sure it works with my stuff before buying it, isn't that the purpose of an evaluation?  This seems like a bug that VIs won't run in evaluation mode.  That would be like evaluating LabVIEW but not have a run button.  What good is the evaluation?
    Can someone at NI help me to get a working evaluation of the Model Interface Toolkit before I decide if the product is right for our application?  Thanks.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

    I must be missing something here.  So for all other LabVIEW toolkits I've ever used, you download it and install it.  During the install on the newer ones they will say, do you want to enter your serial number or just run in evaluation for a little while.  I selected evaluation which gave me 7 day with the option to extend.  When I launch LabVIEW it shows that the Module Interface Toolkit is installed and in Evaluation (2 days remaining at the moment).  I choose to Launch LabVIEW anyway.  Every example in the Example Finder that uses the Load Model function is broken.  This is all examples other then the "Importing Model and Setting Light.vi" example.
    I do not have the Control Design and Simulation Toolkit installed.  Is it requried?  I don't need to make simulations I need to control already made models which is what the Model Interface Toolkit looks like it does.  Thanks.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Package was not created because the code generation failed.

    The installable package was not created because the code generation failed. help me please 

    I am having the exact problem. Been stuck here for 4 days now! For some reason, I cannot successfully generate the packages. I have exported the script from touchdevelop into an app into appstudios successfully though. This error occurs for both Windows
    8.1 and Windows Phone.
    Please help!!
    Thanks,
    LPK.

  • Does the Model Interface Toolkit support the new Linux based cRIO-9068?

    Hello, I have a cRIO-9068 and am needing to integrate a Simulink model into my controller. Does the Model Interface Toolkit support the new Linux based cRIO-9068? For that matter, does Veristand? This page implies that it does not:
    http://digital.ni.com/public.nsf/allkb/2AE33E926BF2CDF2862579880079D751
    Thanks,
    Solved!
    Go to Solution.

    Hi Southern_Cross,
    Based on the readme:
    http://digital.ni.com/public.nsf/allkb/D3F40C101B66128186257D020049D679
    It looks like it is now supported! These resources should provide some additional details:
    http://zone.ni.com/reference/en-XX/help/374160B-01/vsmithelp/mit_model_support/
    http://digital.ni.com/public.nsf/allkb/E552B0CD4E48215586257DF7005BE055
    Please note that NI VeriStand 2014 does not currently support he NI Linux Real-Time targets. 
    Regards,
    Joel I.
    Applications Engineer
    National Instruments

  • FPGA Code Generation fails with error codes 7 and -1

    Hi all,
    I have been having a weird issue with my LV FPGA compilation in the last couple of days, no matter what I try to compile LV fails to generate the FPGA code files and returns with errors 7 and -1 and complains that the file is not found. This happens no matter what I am trying to compile even a VI with just a while loop. I followed the discussion forum here without any luck, also followed the NI article here and that did not help either. The error codes always get generated at the start of the Generating Intermediate files step #7 (out of 7).
    Attached to this post is a screenshot of the error I am getting (error -1 just says internal error and to contact NI support), bellow is basically the error I get for error code 7
    An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
    Error 7 occurred at Read from Text File in nirviGetInstantiation_cRIO-IDSel_Timer.vi->nirviGetInstantiation_cRIO-IDSel_Timer.vi.ProxyCaller
    Possible reason(s):
    LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS X, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    =========================
    NI-488: Nonexistent GPIB interface.
    C:\NIFPGA\compilation\cRioController_8-SlotFPGA_FPGA-TriggerTest_C06156E2\IDSel_Timer.vhd
    I tried to do some digging to see what could possibly be happening, and I noticed that LV is looking for the vhdl files in the wrong folder (see the line highlighted in red above), when generating the vhdl files, LV will place them inside the "source_files" folder under the compilation project, but for some reason it is trying to find them under the root folder not inside the source_files folder!!!
    Does anyone have any idea why LV would be looking for these files in the wrong subfolder? 
    Thank you,
    Aws
    Attachments:
    Code Generation Errors.png ‏35 KB

    Hi Aws_Khudhair,
    What version of LabVIEW are you using? And what version of the FPGA module? From what I found, it seems as though this is primarily an issue with LabVIEW 8.6 and 8.6.1.
    http://digital.ni.com/public.nsf/allkb/A711119FE89E39E78625754E00075E92
    This forum also discusses a similar issue:
     http://forums.ni.com/t5/Real-Time-Measurement-and/FPGA-compile-errors-after-generating-intemediate-f...
    It may also be worth repairing/reinstalling the FPGA Module and the Xilinx compile tools.
    Catherine B.
    Applications Engineer
    National Instruments

  • LabVIEW code generation failed to execute.

    Hello, I'm having a problem that already was posted. When I'm trying to change a resistor value on the "sensor de presiones" VI, I get the error that is mentioned in the subject.
    I read on other posts that a possible cause would be that some drivers were installed incorrectly, so I uninstalled and then installed again both LabVIEW and NI-DAQmx9.9 (in that order) and I still get the same error, so I can't change that value.
    Screenshots of the situation were attached.
    Please, any help is appreciated.
    Thanks a lot!
    Attachments:
    error.PNG ‏55 KB
    error1.PNG ‏72 KB

    There you go
    Thanks for helping me!
    Attachments:
    Control 2.1.vi ‏273 KB

  • Math Interface Toolkit in Matlab: Can I interact with a VI as a parallel process

    I'm curious if it's possible to create a Matlab MEX file using the LabVIEW Math Interface Toolkit (MIT) that can be called in matlab and accessed while running?
    I'd like it to effectively work just like any other object in matlab.  I'd like to be able to query the object while it's running, dump values out of a buffer, and even hook events if possible.
    As it currently stands, the VI to MEX setup seems to just allow me to call a VI, run it, and then drop out.  I want to be able to continuously acquire and access the data as it's coming in and interact with it from matlab (i.e. fully integrate the VI into my matlab code as a separate object).
    Is this possible in some form or am I stuck with dedicating the matlab interface to the VI whenever I want to call it?
    Thanks

    Hi GusLott,
    You are correct that when you call a VI the command line will not continue until the output is obtained.  This makes sense since in LabVIEW that is how a VI operates (a subVI does not ouput until all outputs are obtained).  I believe this is also how commands in MATLAB work as well (correct me if I am wrong).  On the otherhand this is not a disadvantage in labVIEW since you can run VIs in parallel.  If you can create some way to run parallel threads in MATLAB then you will be able to do two (or more) MEX calls at once. 
    As far as object oriented programming goes, there is a labVIEW OOP, but I do not think it has been tested in conjuction with the Math Interface Toolkit.
    Brian K.

  • How do i pass a daqmx task from labview to matlab using the math interface toolkit?

    I want to use DAQMX functions from Matlab using the Math Interface Toolkit (MIT). How can I have a labview function output (return) the DAQMX task to matlab via the MIT?
    I want to do this so I can start a DAQMX task in Labview from a matlab function and return control to matlab without losing the task.

    Hi Mark,
    (I already posted this answer in your other thread, but let's keep THIS thread alive - it makes more sense here in the LabVIEW forum than in Instrument Control forum.)
    Since the DAQmx Task is not a native data type that can be passed directly to MATLAB from LAbVIEW, try flattening the DAQmx Task to a string before passing to MATLAB. However, I doubt that you can access the task from within MATLAB, but feel free to give it a try.
    Good luck!
    - Philip Courtois, Thinkbot Solutions

  • Math interface toolkit install

    Hi,
    Please is there any chance to download somewhere a trial of the math interface toolkit?
    I want to use my VIs on matlab as a GUI, and I guess this is the tool to make it works...
    Thanks, Pierre

    I installed evaluation version of Math interface toolkit to convert VI into Mex functions.
    but the toolkit only allows me to make LNX functions, there is not Mex function tab.
    I installed the evaluation version...and in the tools menu it says "math interface toolkit for xmath"  which I think is not the toolkit i'm looking for.
     I downloaded it from the link :
    http://zone.ni.com/devzone/cda/tut/p/id/2716 
    I tried both links on the above page i.e  NI LabVIEW Math Interface Toolkit (MIT)  and NI LabVIEW Math Interface Toolkit. but both install it for xmath and only make LNX function.
    where I can get the right toolkit?

  • Math interface toolkit

    I installed evaluation version of Math interface toolkit to convert VI into Mex functions.
    but the toolkit only allows me to make LNX functions, there is not Mex function tab.
    I installed the evaluation version...and in the tools menu it says "math interface toolkit for xmath"  which I think is not the toolkit i'm looking for.
     I downloaded it from the link :
    http://zone.ni.com/devzone/cda/tut/p/id/2716 
    I tried both links on the above page i.e  NI LabVIEW Math Interface Toolkit (MIT)  and NI LabVIEW Math Interface Toolkit. but both install it for xmath and only make LNX function.
    where I can get the right toolkit?

    What part did you not understand?
    Posting the same question, multiple times is just impolite and does not get it answered quicker. You posted this thread 10 minutes after you posted the first question. The majority of the people here are volunteers who take a break from work to help. By marking this post as a duplicate, I made it so people would not waste time responding to both of your posts. Let's keep it to your original. Have a little patience.

  • Error 1092 happened while running the executalbe file from an example code of Simulation Interface Toolkit

    With Simulation Interface Toolkit 3.0.1 and LabVIEW 8.0, I built the example code Sine Wave.vi to be an executable file. I made no modification to the code except setting Real-Time Target to be localhost in SIT Connection Manager. Everything was OK during the building process. But when I run it, error 1092 was reported. Here is the error message.
    Error 1092 occurred at Invoke Node in sit Traverse.vi->sit Traverse for References.vi->sit Find Object By Label.vi->sit Get RPS-Control-Indicator Refs.vi->sit Init Model.vi->Sine Wave.vi (Traverse Initialization Failed)
    I cannot find out any helpful information about this error code. Can anybody help me? Thanks a lot!
    帖子被zhuang在09-13-2006 08:01 AM时编辑过了

    To my knowledge, building an EXE out of a SIT host VI is not supported.  The SIT host VI utilizes functionality in LabVIEW that is not exposed in the LabVIEW Runtime Engine (i.e., with built EXEs and DLLs).
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Problem with Web Service Model code generation

    Hello,
    I'm importing two different web services into the same web dynpro component, which both contains properties "allGroup2" of type "All2".
    This causes some problems with the code generation, first of all the Model-classes can't be generated because they don't know which of the two All2-classes to use. If I fix that problem (which can be easily done by adding the correct import statement) I still can't use the models in my web dynpro component, since it too doesn't know which of the All2-classes to use.
    Even though I can fix this by adding imports and fixing the code, it of course gets regenerated next time I rebuild the project, and my changes are lost.
    Does anyone know how to solve this?

    Apparently this is a known bug which is fixed in SP15.
    Regards mattias

  • Export Adaptive Filter Toolkit Algorithm To C Using LabVIEW C Code Generation Toolkit

    I want to evaluate the performance of some of the standard adaptive filters & have planned to use "Adaptive Filter Toolkit" from NI. Once the desired adaptive filter is selected I want to implement the same filter algorithm in FreeScale controller.
    I understand that LabVIEW C code generation toolkit exports the LabVIEW code to ANSI C code. However, I'm interested in knowing if this toolkit would be able to export Adaptive filter toolkit algorithm as well (since the underlying IP would be in the form of DLL's).
    Any help on this matter would highly be appreciated !!

    I want to evaluate the performance of some of the standard adaptive filters & have planned to use "Adaptive Filter Toolkit" from NI. Once the desired adaptive filter is selected I want to implement the same filter algorithm in FreeScale controller.
    I understand that LabVIEW C code generation toolkit exports the LabVIEW code to ANSI C code. However, I'm interested in knowing if this toolkit would be able to export Adaptive filter toolkit algorithm as well (since the underlying IP would be in the form of DLL's).
    Any help on this matter would highly be appreciated !!

  • Receiving Error Message : Cost Of Goods Sold Account Generation Failed

    Hi All,
    We need some assistance with this issue...for a given item when the Customer RMA order Line is being received into a given organization/sub inventory/locator we are getting this error message in the Receiving Transactions Interface ( RTI ) as mentioned below.
    Cost Of Goods Sold Account Generation Failed with error :RVTII-030: Subroutine rvtiicreate() returned error
    Cause: Subroutine rvtiicreate() returned an internal error.
    We checked for this item in the organization the Cost of Goods Sold Account has been defined in the Costing Tab in the Item-Org Assignment and this GL account is also enabled on the GL side and is Active.
    The scenario is like this :
    1. Firstly this item is shipped out on an Outbound order line to the customer location and we checked for the valid Sales Order Issue transaction against this item for this order. We checked for its Inventory Distributions as well.. these look to be valid.
    It shows : Inventory valuation account is decremented while the Deferred Cogs of Goods Sold account is incremented.
    2. Then this item is being entered on Return order line and after booking the order line . It goes to Awaiting Return status. Next the user tries to attempt the Receipt for the Customer RMA order line for this item we are getting the error mentioned below in the RTI tables :
    Cost Of Goods Sold Account Generation Failed with error :RVTII-030: Subroutine rvtiicreate() returned error
    Cause: Subroutine rvtiicreate() returned an internal error.
    Coudl someone please assist us with this issue as this is happening in Production instance ..that would be very helpfull of you..
    This is an urgent issue
    thanks

    Hi,
    Standard workflow "OM : Generate Cost of Goods Sold Account" has following steps:
    1/ Start generating Code Combination
    2/ Get CCID for a line
    3/ Copy Values from Code Combination
    4/ Validate Code Combination
    5/ End generating Code Combination
    If I want to modify the segment4, the custom function to set the attribute FND_FLEX_SEGMENT4 need to be inserted just after the step "Copy Values from Code Combination" (NOT just after "Get CCID for a line").
    Is it what you have done?
    J.

Maybe you are looking for

  • Connecting Macbook to Samsung TV

    I purchased a mini dvi to video adapter, a yellow video cable and headphone to red/white audio cable. However when attempting to connect to my Samsung tv all I get is 'no signal'. I am unable to change the tv source to PC as this remains greyed out o

  • SQL Report help needed

    Hi All, I am creating a report which is having 2 sql queries ,1 for the main columns that i need to show and 2 from total sum and count. Report is something as given below SET TAB OFF; set linesize 1500; set pagesize 50; SET FEEDBACK OFF; SET WRAP OF

  • Search Incremental Crawl is not getting triggered at the scheduled time.

    Hello All, Since 1 week i am observing that the incremental crawl is not getting triggered on the scheduled day & time but the next schedule is moving to next day. Let me put down in a detail. Content Incremental crawl is scheduled to run daily at 5.

  • Keeping text formatted in Windows

    I put up a new site today and realized that 50% of my text changed it's formatting if viewed on a PC. Any suggestions for keeping it formatted across both platforms? I was using text choices that were already used in places on the "Road Trip" templat

  • Loading Thumbnails

    Hi. I'm creating a photo gallery, with thumbnails and a holder. I have several sections with different photos, and i want the thumbnails to be loaded in the moment a section is selected. Can anyone help me, please?