BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

A call for obfuscated LabVIEW code

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.

=====================
LabVIEW 2012


0 Kudos
Message 71 of 85
(13,161 Views)

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.

0 Kudos
Message 72 of 85
(13,155 Views)

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 Smiley Embarassed

=====================
LabVIEW 2012


0 Kudos
Message 73 of 85
(13,147 Views)

@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... 😞

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 74 of 85
(13,138 Views)

@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).

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 75 of 85
(13,129 Views)

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.

=====================
LabVIEW 2012


Message 76 of 85
(13,122 Views)

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...

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 77 of 85
(13,089 Views)

Hello? Hello? I this thread still on? I would consider the following obfuscated code. The real example I inherited was worse.

 

Obfuscated code.png

 

 

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 78 of 85
(13,084 Views)

@PaulG. wrote:

Hello? Hello? I this thread still on? I would consider the following obfuscated code. The real example I inherited was worse.

 

Obfuscated code.png

 

 


 

Well we never did settle on a winner. You will have to post more than an image to play.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 79 of 85
(13,068 Views)

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.

0 Kudos
Message 80 of 85
(12,930 Views)