From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error compiling simulink model for Veristand

Hello,

 

I'm trying to compile a simulink model to a DLL for use on a veristand system. I've been able to do this before but have since updated my computer system and now it doesn't make it through the build process.

 

I'm getting the following error message...

 

"Error: NI VeriStand Error: Invalid character in: 'c7_vat_development_2018_update/Trans Output Simulation/', exiting code generation. The name cannot start or end with / character.
Component: Simulink | Category: Block error"

 

It looks like it has an issue with the / at the end of the Trans Output Simulation, which is a block in the simulink model. However the / doesn't actually exist! In the naming convention above it just represents the model hierarchy! Is this a known or common issue?

 

Thanks

 

 

0 Kudos
Message 1 of 7
(3,958 Views)

Hi DTS_PBO 

 

The first thing i would check in cases such as this is that you have compatible versions installed. 

https://www.ni.com/en/support/documentation/compatibility/22/veristand-model-generation-support-and-...

 

I found a couple of similar cases, that were solved with this. 

 

Regards.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Unofficial Forum Rules and Guidelines
0 Kudos
Message 2 of 7
(3,924 Views)

Hi, yes I think that may be the case.

 

I have Verustand 2016, Matlab 2014b and Visual Studio 2013 installed.

 

It looks like maybe Visual Studio 2013 isn't compatible?

0 Kudos
Message 3 of 7
(3,920 Views)

Hi, yeah i think that would be the case. 

If you could get your hand on 2010 i think it would be worth trying. 

 

I think it also can be worth looking at this: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YI5RCAW&l=en-US

 

Regards 

 

There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Unofficial Forum Rules and Guidelines
0 Kudos
Message 4 of 7
(3,905 Views)

Hello,

I think we experienced the same error some years ago because some names (at different levels) in the model were empty or contained special characters. In your sample 'c7_vat_development_2018_update/Trans Output Simulation/' I had expected something more after the last '/'

Hope this can help. HAGD.

0 Kudos
Message 5 of 7
(3,894 Views)

Thanks for all the suggestions. I think I have solved the problem...

 

With the 2D lookup table I'd copied in another 1-D lookup table which did some basic sign switching of the signal. Somehow this block was nameless, giving this a name solved the problem compiling the lookup table. One of those annoying issues that's so simple yet take so long to find!

 

The issue with the S-function looks to have been caused by a missing external file that it was trying to reference.

Message 6 of 7
(3,879 Views)

great! all simulink blocks need to have a name! this solved the problem for me! thank you so much!

0 Kudos
Message 7 of 7
(293 Views)