Jump to content
Sign in to follow this  
VisSim Forum Archives

Variable definition: Removed connector causes "connection loop"

Recommended Posts

Submitted by ParryKestrel on Mon, 07/16/2012 - 20:59 

I was wondering if someone can tell me the difference between these variable definitions. One has the variable with the output connector and the other is with the output connector removed. I have a simulation that runs fine however, when I begin removing the output connectors on variable definitions to clean up it begins to fail. It fails with the error "Connection Loop". I have seen the other forum post on that error and installed the most updated version available on the website. I am using V7.0A. I am curious as to how there is any difference at all between the definitions. Please see the image. http://imgur.com/ZPPIn

Also similarly, I am in the habit of removing the large black arrow when I use a defined variable. I remove the arrow since it is already defined and there is no need for inputing a signal into an already defined variable. When I do this am I altering the variable somehow?

Vissim Variable definition error.bmp

Share this post


Link to post
Share on other sites

Submitted by Anders89 on Mon, 07/16/2012 - 22:00.

There should be no difference in sim behavior between variables with and without input pins so long as there is at least one instance of the variable name with it's input connected. Removing the input pin on non-defining instances of a variable should not have any effect on the simulation. Likewise, removing the output pin on a defining instance should also have no effect.

Share this post


Link to post
Share on other sites

Submitted by ParryKestrel on Mon, 07/16/2012 - 22:48.

Thanks for your quick reply.

I don't know what else it could be. It definitely seems to be linked to removing the output pin.

I have a simulation that I can run 100+ times in a row without error. When I remove the output pins on two globally defined constants like in the picture [ZERO and ONE], it crashes every time after 31 simulations.

When I remove all of the output pins on every block where they are not necessary it doesn't run once.

It won't let me upload the vissims but I can email a copy of what I'm experiencing if you wouldn't mind taking a look.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...