04-24-2009 12:06 AM
The VI i created is gettin slow after execution of a particular set of event in an event structure(Calling VI).Is it because of improper use of shift register?
I have attatched the VIs...Please run GUIdev and suggest solutions.Its really gettin on my nerves.
04-24-2009 12:35 AM
Hi Sankar,
I gone through your VI. There is nothing there to slowdown the VI's execution. And also it didn't got slowdown in my PC. But for your information the GUIdev.vi will not come out of the outter while loop. Because, you have given the timeout value of -1 (infinity) for your event structure. So it will always be in the event structure, if no event occurs. So there is no chance for getting functionality of the stop button which stops the outter while loop. So better always use a time out value of 100 ms to your event structure.
MRK (CLAD)
04-24-2009 12:38 AM
sankar227,
The VI you attached ('GUIdev.vi') is missing the 'LoadAndRun.vi' sub VI. The other top level VI (GUI_dev.vi) is broken. Can you please attach a complete set of VIs?
Chris M
04-24-2009 12:45 AM
Chris
I have send the VIs again..plz chk it..
04-24-2009 01:03 AM
Hi MRK
i have chgd the time as u had suggested.But can u chk if after u click on the sliding buttons for a few times whether the movement of the sliding buttons slows down????
thanks
Sankar
04-24-2009 01:10 AM
Yes, some subVIs are missing. Still, you probably should start out with a few simple tutorials because most of your code makes no sense.
SubVI#.vi: All subVIs have a single "CPU burner" loop that tries to consume ALL CPU while spinning millions of times per second. Running any of these will make the computer sluggish. Any polling loop needs a small wait statement!
GUIdev.vi: Contains a lof of questionable and unecessary code.
Can you explain in a bit more detail what you are actually trying to achieve with all this? Thanks! :
04-24-2009 01:58 AM
04-24-2009 03:12 AM
Well, here's a quick draft showing some of the ideas (LabVIEW 8.6.1). There are probably bugs. Modify as needed. Lots of things can still be simplified.
Your small FOR loops only make sense if you want some animation. In this case, you would need a delay inside the loop.
04-24-2009 04:00 AM
Hi altenbach
totally awesome.....tht was a superb code...i still have to make out hw u did all tht stuff...now i knw whom i hav to bug wen i face more probs....
Sankar