05-07-2014 02:53 AM
@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 bit. I 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:
05-07-2014 07:34 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-07-2014 09:52 AM
05-07-2014 05:02 PM - edited 05-07-2014 05:07 PM
@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.
05-12-2014 10:26 PM
@PaulG. wrote:
There's only 44 zeros there. It could be worse.
05-12-2014 10:33 PM
@Hornless.Rhino wrote:
@PaulG. wrote:
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.
05-14-2014 11:06 PM
@TroyK wrote:
@Hornless.Rhino wrote:
@PaulG. wrote:
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.
Yep I missed 2. Good catch.
06-10-2014 01:58 PM
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.
06-11-2014 02:27 AM
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...
06-11-2014 02:46 AM
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.