04-21-2010 07:23 AM
04-21-2010 08:01 PM - edited 04-21-2010 08:02 PM
Just a slight variation on the previous subject.
Let's index an array to get an element, build that element into a 1 element 1-D array, then replace that element with itself.
Also local abuse, and doing a + 1 and -1 when increment and decrement should work. No idea why it is in a simulation loop.
Seen here. If this is somehow legitimate code, please let me know.
04-27-2010 02:41 PM - edited 04-27-2010 02:43 PM
Instead of just using an array, let's insert it into an empty array. Seen here.
04-27-2010 05:31 PM - edited 04-27-2010 05:32 PM
This is my code for helping someone who wanted to split a string and make it multiple lines if it had more characters than would fit in a column width on a multi column listbox. I'm not positive it's rube, but I'm assuming it so I'm just going to post it and let you all have at it!
04-27-2010 06:00 PM
for(imstuck) wrote:... I'm not positive it's rube, but I'm assuming it so I'm just going to post it and let you all have at it!
04-27-2010 10:14 PM
04-28-2010 01:19 PM
To wait a minimum amount of time one must not use the Wait function, because, after all, it's not designed to errrr... wait. No, we need to use a while loop:
04-28-2010 01:26 PM - edited 04-28-2010 01:29 PM
Looks to me like more of a quarter-second CPU warmer. (What's ironic here, to throttle the loop you NEED a Wait primitive...) And just to give the original author the benefit of the doubt, maybe it's to make room for future expansion (notice loop size) using more termination conditions. (That seems pretty optimistic...)
05-03-2010 05:19 PM - edited 05-03-2010 05:20 PM
Um, I have no idea where my mind was the day I did this. But, I am so incredibly guilty of a rube here it's almost comical. And yes, I could use 256 when doing the subtraction, but I wanted to keep everything U8 ints.
05-04-2010 07:41 AM - edited 05-04-2010 07:42 AM
Both a small Rube Goldberg and Localitis:
found here http://forums.ni.com/ni/board/message?board.id=170&message.id=495992#M495992