NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
arunhsc
Posts: 6
0 Kudos

Is there a limit of NI VeriStand Inports and Outports that can be used in a simulink model?

I was trying to Add Simulation Model to my project. The model has 178 Inports and Outports inclusive (66 Inports and 112 Outports). I am referring to the NI Veristand Inport and Outport that can be added to the model from the Simulink Library.

 

When I add this model into the the project only 79 ports are added. 66 Inports and only 13 Outports. Is there a limit on number of inports and outports that Veristand can handle?

Member
Holt
Posts: 10
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outports that can be used in a simulink model?

Arunhcs,

 

I'm not sure what the limitation is on inports and outports that can be imported into VeriStand (hopefully someone posts this info), but I'm wondering if the reason your model has so many is due to the fact that your simulink model has vectors that are being flattened to scalers when imported into VeriStand.  VeriStand's default setting is to convert these vectors to scalers.  If this is the case then you might consider changing this setting in VeriStand when you import the model.  Here is a screenshot of how to do this:

 

Import model setting.jpg

Member
arunhsc
Posts: 6
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outports that can be used in a simulink model?

Thanks Todd.

I tried this out but it had the same result. Only 79 ports were added.

Active Participant
StephenB
Posts: 430
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outports that can be used in a simulink model?

There isn't a limit. Something must be going wrong...

 

Would it be possible for you to post your DLL and MDL? At a minimum.. the DLL.

Stephen B
Member
arunhsc
Posts: 6
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outports that can be used in a simulink model?

Hi Stephen,

 

Thank you very much for the reply. I would not be able to post the mdls here but I can send it to you over e-mail.

 

Regards,

Arun

Active Participant
StephenB
Posts: 430
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outports that can be used in a simulink model?

Arun,

 

Can you open a service request with our engineering team to do that? They will then have this request tracked through their support data base and can better handle it than I personally can (travel, etc).

 

www.ni.com/support

 

You can do phone or email

Stephen B
Member
pierrecollette
Posts: 3
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outposts that can be used in a simulink model?

I have the same problem, with NI veristand 2011, The model Simulink is composed by more 150 input and ouput, and each port (input and ouput) are not only 1 dimensions. if I delete some input in the model, Veristand can correctly import, but not with all inputs and outputs. Can you help 

Member
arunhsc
Posts: 6
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outposts that can be used in a simulink model?

Greetings,

 

This happens becaue there is a limit on the total number of characters as a path string Veristand can import.

 

for eg if there are two inputs

/controller/My_model/First_variable

/controller/My_model/Second_variable then this would account as 35+36 = 71 characters.

 

There are three possible solutions that worked for me:

 

1. Convert the model into a s-function or dll and then import. All the varibles will get imported.

2. If making the model into s-function or dll isnt an option then you can split the model into smaller models and then import them

3. If that is not an option either then you would have to reduce the number of characters by shortening the variable name, sub system names, model names etc etc.

 

Hope this helps.

 

Cheers,

Arun

                                        

Member
pierrecollette
Posts: 3
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outposts that can be used in a simulink model?

[ Edited ]

ok thanks ,  do you know what  the limit is ?  I use a script to spilt some buses, and that will me more easier to find an ohter way if I know the limit .

thanks again for your help

 

Active Participant
StephenB
Posts: 430
0 Kudos

Re: Is there a limit of NI VeriStand Inports and Outports that can be used in a simulink model?

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page