VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling Simulink model for linux RT target error

Solved!
Go to solution

Hello! 

I've been attempting to compile a model in simulink with the 'NIVeriStand_Linuyx_64.tlc' target file. I have downloaded the only version of LabView Realtime (2019) that I could according to the instructions. However I get the same error when attempting to compile. My MATLAB version is R2017b and I am using VeriStand 2018 SP1 with the patch installed. 

 

=== Build (Elapsed: 23 sec) ===
    ### Generating code and artifacts to 'Model specific' folder structure
    ### Generating code into build folder: C:\Users\Digital\Desktop\MATLAB_models\WD2_niVeriStand_Linux_64_rtw
    Warning:Root level output logging in 'Dataset' format is not supported in this simulation or code generation mode for model 'WD2'. No data will be logged.
    ### VeriStand 2018.1.1.0 (2018 SP1f1) code generation started
    ### Invoking Target Language Compiler on WD2.rtw
    ### Using System Target File: C:\VeriStand\2018\ModelInterface\tmw\target\NIVeriStand_Linux_64.tlc
    ### Loading TLC function libraries
    ### Initial pass through model to cache user defined code
    .
    ### Caching model source code
    ### Writing header file WD2_types.h
    ### Writing header file WD2.h
    ### Writing header file rtwtypes.h
    ### Writing header file builtin_typeid_types.h
    .
    ### Writing header file multiword_types.h
    ### Writing header file zero_crossing_types.h
    ### Writing source file WD2.c
    ### Writing header file WD2_private.h
    ### Writing header file rtmodel.h
    ### Writing source file WD2_data.c
    ### Writing header file rt_nonfinite.h
    .
    ### Writing source file rt_nonfinite.c
    ### Writing header file rt_defines.h
    ### Writing header file rtGetInf.h
    ### Writing source file rtGetInf.c
    ### Writing header file rtGetNaN.h
    ### Writing source file rtGetNaN.c
    ### TLC code generation complete.
    ### Generating TLC interface API.
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Modifying source file WD2.c
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Modifying source file WD2_data.c
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Writing header file ni_pglobals.h
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Modifying header file WD2.h
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Generating Ports Readme file
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Generating Signals Readme file
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Generating Parameters Readme file
    ### VeriStand 2018.1.1.0 (2018 SP1f1) Copying support files
            1 file(s) copied.
            1 file(s) moved.
            1 file(s) copied.
            1 file(s) copied.
    ### VeriStand 2018.1.1.0 (2018 SP1f1) code generation done
    ### VeriStand 2018.1.1.0 (2018 SP1f1) code compilation started
    .
    ### Processing Template Makefile: C:\VeriStand\2018\ModelInterface\tmw\target\NIVeriStand_Linux_64.tmf
    ### Wrapping unrecognized make command (angle brackets added)
    ###    <C:\VeriStand\2018\ModelInterface\tmw\toolchain\Linux_64_GNU_Setup.bat && cs-make>
    ### in default batch file
    ### WD2.mk which is generated from C:\VeriStand\2018\ModelInterface\tmw\target\NIVeriStand_Linux_64.tmf is up to date
    ### Building WD2: .\WD2.bat
    C:\Users\Digital\Desktop\MATLAB_models\WD2_niVeriStand_Linux_64_rtw>set MATLAB=C:\Program Files\MATLAB\R2017b
    C:\Users\Digital\Desktop\MATLAB_models\WD2_niVeriStand_Linux_64_rtw>C:\VeriStand\2018\ModelInterface\tmw\toolchain\Linux_64_GNU_Setup.bat   && cs-make -f WD2.mk  ISPROTECTINGMODEL=NOTPROTECTING EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 TMW_EXTMODE_TESTING=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0 MAT_FILE=1 NIDEBUG=0 NIOPT="Default" OPTS=""
    Setting environment for using NI Linux Real-Time 2017 64-bit tools.
    Error locating the NI Linux Real-Time 2017 toolchain. Confirm the C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition 2017 was properly installed.
    ### Aborted due to an error in the build procedure for model: WD2
    Error:Error(s) encountered while building "WD2"
0 Kudos
Message 1 of 6
(5,074 Views)

Hey brayfalls,

 

That is the incorrect download. There is a problem with our site, and you were directed to the wrong software.  You don't actually need the Real-Time Module. You need the NI Linux Real-Time compile tools for Windows. 

 

I am currently working on getting the public link for the download back up and will post here with a link when it is available. If this is an urgent request, you can create a service request, and we should be able to get you the correct software.

 

Thanks,

Andy 

Product Support Engineer

0 Kudos
Message 2 of 6
(5,065 Views)

Hello,

I'm using LV 2017 and VS 2017 and I'm not able to compile a VI like a model for Linux target. It is related to this post?

I opened this post:

https://forums.ni.com/t5/NI-VeriStand/Error-15-occured-at-Compile-DLL-Stub-for-linux-vi/td-p/3947055

 

0 Kudos
Message 3 of 6
(5,002 Views)

Looks like the same problem just LabView instead.

0 Kudos
Message 4 of 6
(5,000 Views)

I opened a service request some days ago... For me it is urgent. I'm going to inform the AE.

 

Thanks,

Fabio

0 Kudos
Message 5 of 6
(4,997 Views)
Solution
Accepted by topic author brayfalls

Hello all,

 

All of the download links for Eclipse and GCC should be back up now. In case you still get redirected, I had to clear the cache for my browser in order to not get to the pages. 

 

Thanks,

Andy

Message 6 of 6
(4,955 Views)