03-27-2013 08:20 AM
@.aCe. wrote:
Horror!
Found here: http://forums.ni.com/t5/LabVIEW/Running-LED-in-FPGA/m-p/2332192#M730755
The snippet is a bit misleading, because it turned all local variables into generic property nodes with references. Still, the original VI seems to do all integer calcuations in floating point (DBL!). All terminals disconnected and all using local variables. (e.g. A1 is read from 21 different local varaibles in the first frame)
03-27-2013 12:42 PM
Looks like a microprocessor schematic from a distance.
03-27-2013 05:53 PM
It should also make the Local abuse thread.. A candidate to post an idea on how to improve Locals by making them 3D (or something foolish)
03-27-2013 08:18 PM
View Locals as Icons
03-27-2013 08:57 PM
ROFL!!
03-27-2013 10:49 PM
@JÞB wrote:
View Locals as Icons
I had already considered posting that Idea exchange thread around the 1st of next month (Apr 1st). I then thought Oh, C@#p! What if it gets a bazillion kudos? Could I deal with my forum alias being "Credited" with that new feature?
Locals are not evil- but, they do cause a few problems when miss used! I recall my Greek authors. I believe Aesop's tortoise was snorting opiates, The hare might have been dropping 'Ludes. A classic "Race Condition!"
03-27-2013 11:34 PM - edited 03-27-2013 11:35 PM
Seen over here. Although, I made the assumption it was one long, \n delimited string, but I think it was actually separate strings just multiple examples for us to work with. A plain old scan from string works if it is separate strings.
04-19-2013 10:53 AM - edited 04-19-2013 10:57 AM
On FPGA you could make a case structure with a constant in 17 cases, or you could use scale by a power of 2. Good thing it wasn't a 64 bit number....
I should add, I guess I could have a constant array and index it, because the "i" is actually an input in the real code, with no for loop.
04-19-2013 10:58 AM
@for(imstuck) wrote:
On FPGA you could make a case structure with a constant in 17 cases, or you could use scale by a power of 2. Good thing it wasn't a 64 bit number....
I'm curious if there's another way to get a 0 as the first element without using the select (and without a build array after the loop). Any takers?
What's the point of your code? Since all inputs are constant, you might as well create a lookup table and use no code at all. (most likely that's what the compiler does anyway ;))
04-19-2013 11:06 AM
Something like this?