08-01-2011 04:14 AM
Hi, I am developing a VI with a very long flat sequence. While I was "drawing" my sequence, suddenly the graphic editor appear to crash: the sequence appears truncated and if I try to enlarge it, the sequence became very thin in horizontal direction.
If I try to restore the VI moving its components, I'm not able to return to initial conditions. Sometimes the fatal error "fpsane.cpp line 42" appears.
What could be the problem? Is there a length limit in Labview graphical editor?
Regards
08-01-2011 05:15 AM
Hi hex_cro
Actually I don't know if there is some error in the graphical editor, but what sounds to me, odd and bizzare is that you are using a very long flat sequence in your code. Why? You can chenge the flat sequence you are using with a stacket sequence structure which also is more practice.
Think easy to solve you problem!
Regards!
08-01-2011 05:33 AM
The question is different: is there a limit on the length of flat sequence? I don't know any warning related to their length.
You can't say "think easy" if you don't know the project and if you don't know why I have preferred to use flat sequence than stacked one. If you say "think easy", it seems that you know there is a problem related to length of flat sequences...
Bye
08-01-2011 05:41 AM
I'm sorry, but the "Think easy to solve your problem!" is a general saying, it wasn't a specific suggestion about your problem!
I don't know your problem but I think it isn't a good way to use a flat sequence with a lot of case, it is better to use the stacked sequence such as I have already suggested to use to do that, actually the best solution would be a state machine structure.
08-01-2011 09:21 AM
You're problem isn't going to be the length of the flat sequence, or number of stacked sequence frames as far as LabVIEW is concerned.
What g-Ricky is suggesting is that if you already think you are going to need to use that many frames that you think LabVIEW could have a problem (which it won't), you are going to have huge problems with your architecture down the road. Especially when someone comes in and says, "Hey, let's add this", "Hey can we make it go back to frame 3 if the test in frame 6 comes out True."
Without knowing anything about what you are trying to do, I can safely say forget sequence structures. You should be looking at a state machine architecture.
08-01-2011 09:29 AM
With respect to the error, fpsane errors refer to front panel drawing errors, so it sounds like something is corrupt with your VI. Perhaps a front panel control. Are you using any ActiveX or .NET controls? Go back to an earlier version (you ARE using source code control, right?) of the VI and see if the same thing happens. Make incremental changes to see when you start getting the error.
As suggested, it sounds like you have a poor architecture to start with. The state machine has been suggested. You should read this article: Application Design Patterns: State Machines
08-01-2011 10:03 AM
Thanks, but...my sequence is linear, I think a state machine is not necessary...
08-01-2011 10:04 AM
Thanks, but...my sequence is linear, I think a state machine is not necessary...
08-01-2011 10:08 AM
@hex_cro wrote:
Thanks, but...my sequence is linear, I think a state machine is not necessary...
If I had a dime for every time I've heard that...
08-01-2011 10:14 AM
I hope you'll be very soon rich...