06-12-2008 08:44 AM
Ok I have a confession...for most of my LabVIEW career I have been an overuser of both sequences and local variables. Slowly I have been going through some of my old code and trying to do things the right way, i.e., moving more towards shift registers and event structures. One particular vi I that I made was a simple multiplot example. I have seen many other examples on the forums dealing with this topic that are very well done.
In the interest of learner what I did wrong, I decided to post my code to see if some of you experts can pick it apart and show me how to do the same thing in one elegant frame 🙂
Regards,
-SS
06-12-2008 09:04 AM
Hi ShotSimon,
here is my solution for your vi.
Mike
06-12-2008 09:08 AM - edited 06-12-2008 09:08 AM
06-12-2008 09:16 AM
MikeS81,
Wow that was fast! I guess I really have to change the way I think regarding LabVIEW programming. GerdW was your solution identical? It's one of those things after I see the solution it makes sense and it's easy...but before hand I honestly could not think of how to do it and not use a local variable 🙂
Do you think there is a considerable performance difference between my original code and the new code?
Thanks again for the quick response,
-SS
06-12-2008 09:19 AM
Hi ShotSimon,
attached is the vi. ![]()
So you can try it.
Mike
06-12-2008 09:19 AM
Hello,
Well, I try to use the minimum as possible of local variables. See my idea.
06-12-2008 09:19 AM
06-12-2008 09:20 AM - edited 06-12-2008 09:21 AM