BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


@altenbach wrote:

Is this supposed to run on an FPGA?

So who can translate it into postage stamp sized code e.g. using boolean arrays instead?


No, it is not for FPGA. Actually author wants to create simple 4-bit shift register with decoder and would like to keep "low-level" logic where one wire according to single bitI was just impressed how accurate all wires placed and arranged on the BD.

As next step probably he will trty to recreate whole Intel 4004 processor as pure Block Diagram:

4004-lajos-schematics.gif

Smiley Happy

0 Kudos
Message 1481 of 2,635
(10,896 Views)

Oh please tell me someone has tried the block diagram clean up?  There is a limit to how big a BD can be it might choke and die on it as it blows up the size attempting to cleanup.

0 Kudos
Message 1482 of 2,635
(10,871 Views)

how many zeros.PNG

PaulG.
Retired
0 Kudos
Message 1483 of 2,635
(10,830 Views)

@Hooovahh wrote:

Oh please tell me someone has tried the block diagram clean up?  There is a limit to how big a BD can be it might choke and die on it as it blows up the size attempting to cleanup.


I just tried the block diagram cleanup in LabVIEW 2011 SP1.

 

Kudos to whoever coded the block diagram cleanup feature, it completed in about half a second and wasn't too big.

I wouldn't describe the result as beautiful, but you can't expect an algorithm to compete with an artist.

 

4bit.png

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Message 1484 of 2,635
(10,782 Views)

@PaulG. wrote:

how many zeros.PNG


There's only 44 zeros there. It could be worse.

0 Kudos
Message 1485 of 2,635
(10,680 Views)

@Hornless.Rhino wrote:

@PaulG. wrote:

how many zeros.PNG


There's only 44 zeros there. It could be worse.


It is worse... I count 46 zeros (if you include the dbl at the init-array and the one on the select), there's probably another one just outside the image region on the other select primative at the far left. Smiley Surprised

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 1486 of 2,635
(10,677 Views)

@TroyK wrote:

@Hornless.Rhino wrote:

@PaulG. wrote:

how many zeros.PNG


There's only 44 zeros there. It could be worse.


It is worse... I count 46 zeros (if you include the dbl at the init-array and the one on the select), there's probably another one just outside the image region on the other select primative at the far left. Smiley Surprised


Yep I missed 2. Good catch.

0 Kudos
Message 1487 of 2,635
(10,601 Views)

Found here.

 

Not the OP's code, but old Newport example code for motion control. No wonder the poor guy is intimidated by it!

 

There's a state machine under all that if you dig deep enough.

 

propnodes.png

---
CLA
0 Kudos
Message 1488 of 2,635
(10,455 Views)

I'm not surprised.  In my experience, companies like Newport ask their C programmers do also include a labview driver and examples, even though they have zero experience with labview.  And this is the result... 

0 Kudos
Message 1489 of 2,635
(10,422 Views)

In comparison, the Aerotech example libraries weren't that bad.

 

I mean, we still rewrote them as soon as we wanted to use them in anger, but as far as examples go they were reasonable starts.

---
CLA
0 Kudos
Message 1490 of 2,635
(10,419 Views)