11-26-2008 10:34 AM
altenbach wrote:
Random sightings....
![]()
Ah, Altenbach, again you show how you just don't understand computers. This is clearly done because the value is also changed elsewhere and the new value is written between the writing in the top terminal and the reading in the low terminal. I mean, come on.
11-26-2008 10:39 AM
tst wrote:
altenbach wrote:
Random sightings....
![]()
Ah, Altenbach, again you show how you just don't understand computers. This is clearly done because the value is also changed elsewhere and the new value is written between the writing in the top terminal and the reading in the low terminal. I mean, come on.
Concidering that there an outstanding bug where LV is NOT doing all of the property stuff in a single switch to the UI thread, your description could actually occur!
Ben
12-01-2008 02:33 AM
How to get a index in a time array:
Or

12-03-2008 08:30 PM
To allow an angle setting with either a numeric control or a set of 66 LEDs, we could code it with:
or we could get away with:
If our salary depends on the number of locals, the first solution is preferred. 😄
(read more here)
12-04-2008 07:07 PM - edited 12-04-2008 07:08 PM
We want an output array containing the difference between adjacent elements of a given array.
The lumberjack version uses two "split array", discarding 50% of the outputs.
A simpler version could use "array subset" instead.
(spotted here)
12-05-2008 09:32 AM
Oh, I'm a lumberjack and I'm Okay, I sleep all night and I work all day...
Just had to say that. 🙂
The splits aren't discarding 50% of the arrays though... Only one element. One at each end. So, I'm in a strange enough mood today to argue that that's not throwing out 50% of the outputs.
Rob
12-05-2008 10:14 AM
Well, we have 4 outputs and only 2 are used. That's exactly 50% for me. 😄
The problem is less well defined if we want to express it in terms of array contents. In the special case of an input array with two elements it would be 50% of the array contents and with an input array containing only one element, we would throw away 100% overall. There is nothing left at the end.
We don't know what the compiler does, it might not even generate the values for the disconnected outputs. Who knows? 😉
Of course you can use a pair of pliers to loosen a bolt, a knife to tighten a screw, a blowtorch to heat your lunch, or a Mack truck to get coffee. It still does not make it the right tool. 😄
The array tools are often incorrectly used. This is along the same lines of using "delete from array" to take a subset. We see that all the time here. 😮
12-05-2008 10:24 AM
My father always said that you should always use the right tool for the right job and that if it worked it was obviously the right tool. 🙂
It took a while, but I finally got him to admit that some tools are faster and more efficient than others.
My favourite tool has always been explosives. I just haven't figured out how to program in LabVIEW with them yet. 😉
Rob
12-06-2008 09:53 AM
Rob, real programmers use butterflies!
Of course, if you set the explosives just right, they should move the mouse by as much as you want.
12-07-2008 11:20 AM - edited 12-07-2008 11:24 AM
This weekend I picked up this golden nugget from the Labview forum. I have decided not to disclose the user behind it. I have not even decoded the function. But it has something to do with selecting time intervals in a random fashion. I have programmed a Cray supercomputer to decode the function. And I will have an answer next week perhaps. In the meantime I will give kudos to all users who are able to solve the problem. I guess even the programmer behind it, is somewhat uncertain about the function. I quote
“Hi,
I have found a solution but it is very heavy, with multiple case structure. I guess that it will work but it is very difficult to check if there is no mistake”
I have posted it as I found it on this forum. It is quite large The top level VI is "essai VI 30.vi" Have fun