06-27-2012 11:33 AM
Ouch! What version of LabVIEW and OS? I have some VIs set to run as subroutine priority. Other than that I cannot think of any reason it would lock up your computer.
06-27-2012 11:37 AM
WIndows 7 64 bit, LabVIEW 2011SP1 32 bit, 3GB RAM, Core2duo laptop.
Everything got really sluggish and all windows became unresponsive (mouse still worked, but jumpy). Unable to even bring up task manager. Unable to "ctrl+." out of run mode.
06-27-2012 11:56 AM
I just tried it on my work computer with no problems. I then tried it on a virtual machine and everything was very sluggish. It eventually worked (printed hello, world). I clicked the red X and it eventually stopped and the virtual machine was responsive again.
I put a Wait (ms) with a zero wired to it in the "Disk Controller" loop and that fixed it on the virtual machine. I would have sworn that I didn't have any greedy loops but after a change I made to how the disk controller works I guess I forgot.
One of the drawbacks of developing on a monster i7 machine is that these things can slip by
06-27-2012 12:13 PM - edited 06-27-2012 12:19 PM
@altenbach wrote:
@Steve Chandler wrote:
Ok I am really REALLY late to this thread.
Running it locked up my computer completely. 😞
Running diagram cleanup almost did the same to mine! 🙂 Then I pressed Run... 😞
06-27-2012 12:41 PM
@Steve Chandler wrote:
[...]
I put a Wait (ms) with a zero wired to it in the "Disk Controller" loop and that fixed it on the virtual machine. [...]
I put a 0 and had to shut down my computer with the power button. 1 ms was managable, but I didn't see "Hello world" (it just cleared all of the '@'s and sat).
06-27-2012 01:30 PM
Well how embarrassing. I am surprised it works so horribly slow and it runs nice and smooth on my machine. I was able to duplicate this on a virtual machine. I had to make some subVIs run as subroutine in order to get the emulator to run as fast as a real Apple. Those VIs don't really do much.
Oh well. Don't run this unless you have a really fast machine.
06-28-2012 05:16 AM
Don't be embarassed because of my shoddy kit. Yours could probably run an infite loop in just a few seconds. Mine seems like it takes forever...
06-28-2012 06:25 AM - edited 06-28-2012 06:27 AM
Hello? Hello? I this thread still on? I would consider the following obfuscated code. The real example I inherited was worse.
06-28-2012 08:13 AM
@PaulG. wrote:
Hello? Hello? I this thread still on? I would consider the following obfuscated code. The real example I inherited was worse.
Well we never did settle on a winner. You will have to post more than an image to play.
Ben
06-20-2013 08:12 AM
hi,ben.i try to use one draw rect.vi to creat 54 rectangles.get a little inspire for your obfuse_picture.vi but still can not make it right.can u give me an simple example?thx.