BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Cool code demos

Here is a thread for all those really great small VIs that just do cool things.

 

 - Ok, I can't find it. I remember recently reading a post that was about 5 years old (possibly by muks) but I'm looking for the really cool VI that was posted as a tribute to Douglas Adams proving that 9 x ? = 42 (if you work in base 13). I'd love to see that again - especially with an explanation of how it was done!

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2022 SP1 installed
0 Kudos
Message 1 of 18
(16,242 Views)
Well, the VI I posted here (the one called multiply.vi) doesn't work in base 13, but it does work if you enable highlight execution. Is that the one you were refering to?

___________________
Try to take over the world!
0 Kudos
Message 2 of 18
(16,229 Views)

Could be, It was in a different thread, so someone might have pinched it and reposted it, but it certainly is the VI. It works for me with or with highlight execution on, now how does it work Brain?

 

Pinky

CLD; LabVIEW since 8.0, Currently have LabVIEW 2022 SP1 installed
0 Kudos
Message 3 of 18
(16,222 Views)
How it works is left as an exercise to the reader. You have the code, figure it out.

___________________
Try to take over the world!
0 Kudos
Message 4 of 18
(16,215 Views)

Arrrrrrrrghhhhhhhhhhhhhh.

 

I genuinely thought you'd done something special to the function there. Turns out block diagram cleanup is a handy feature to have when the mouse is tricking you. Smiley Mad

 

I seriously thought the base system of the calcluation had changed.

 

Naughty mouse, go back on your cage! You will have to try your evil plans again tomorrow. Smiley Wink

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2022 SP1 installed
0 Kudos
Message 5 of 18
(16,206 Views)

At first I thought this was going to be another obfuscated code thread.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 18
(16,195 Views)

No tbob, I was hoping people would post cool and funky bits of code here that do fun things. Ratherlike the "Funny threads" thread, I thought this could be "cool code" or "funky code" or whatever term you want to use to describe code that does something abnormal but fun.

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2022 SP1 installed
0 Kudos
Message 7 of 18
(16,147 Views)

Magic dot.png

Careful- for demo purposes only! (the vi is er.....um.... unlimited reenterant and will eat you processor usage)  but somewhat cool in that you have a movable coersion dot for any other use but this one. 


"Should be" isn't "Is" -Jay
Message 8 of 18
(16,021 Views)
Awesome Jeff
CLD; LabVIEW since 8.0, Currently have LabVIEW 2022 SP1 installed
0 Kudos
Message 9 of 18
(15,982 Views)

How about code with unexpected results? Here's something I posted a while back but forgot where. Just drag it over and run it. For some reason, when this VI adds the two numbers together, it gives a bad result.

 

bad result.png

 

 

Richard






Message 10 of 18
(15,918 Views)