12-03-2019 08:43 AM
Thanks @gerd and @thols
/Y
12-03-2019 10:37 AM
If you haven't tried this already, try creating a brand new VI and pasting the contents of the offending VI into the new one.
12-03-2019 10:51 AM
@pallen wrote:
If you haven't tried this already, try creating a brand new VI and pasting the contents of the offending VI into the new one.
Just to clarify a bit, that means the block diagram contents, not the front panel!
12-03-2019 09:35 PM
hey Crossrulz,
You are right,so the code goes to 7.4, the code in't quite complex but yes, quite a lot of duplicated code which unfortunately i cannot find out a way to avoid that duplicate right now,
I tried to decrease the limit but seems no obvious change.
That pretty frustrating
Eric
12-03-2019 09:39 PM
I actually tried to delete some VI and i can see the slow problem can be avoid significantly.
that's say it is a problem with my code structures,
but all my other if case have almost the same structure as i posted in the first page,
there is no several layer vi in those two if case
12-04-2019 03:46 AM
@ericyuan wrote:
hey Crossrulz,
You are right,so the code goes to 7.4, the code in't quite complex but yes, quite a lot of duplicated code which unfortunately i cannot find out a way to avoid that duplicate right now,
Step one would be to create a sub-vi of that code so you only have a few instances of a vi.
/Y
12-04-2019 02:09 PM
@ericyuan wrote:
quite a lot of duplicated code which unfortunately i cannot find out a way to avoid that duplicate right now
2 options:
1. For things that are the same in every case of a Case Structure, it should be moved to be outside of the case structure.
2. Other random duplicate code should be turned into a subVI which you can call from many places.
Both of those will help reduce your complexity.