10-18-2007 01:07 PM
10-26-2007 08:45 PM
10-30-2007 08:06 AM
Ben
11-09-2007 12:50 AM
11-30-2007 09:54 AM
DFGray provides some serious enlightenment on a novel use of single-element queues. The thread starts here and the good stuff comes after I blunder about a bit.
Problem: need 500 MB worth of images in memory simultaneously and need random access to them for processing. Can't get enough contiguous memory to create a 3D array.
Solution: Create an 1000's of single-element queues which each hold a single 2D image array. Store these queue refs in a 1D array.
Neato Factor: The wire for the "outer" 1D array of queue refs can be branched off to processing code without big memory penalties. It doesn't *contain* the 500 MB of data, it just contains a few thousand pointers to provide access to the 500 MB. The array of pointers can be copied pretty efficiently...
-Kevin P.
12-21-2007 12:51 PM
Discusion of coercion and buffer copies is updated by NI after researching with R&D.
Ben
12-22-2007 11:24 AM
Ben, I don't want to hijack the thread, but how can you guys read threads in reverse order? Why not in chronological order?
Anyway, it's helpful if at least when you post a link, it will be in ascending order (this can be changed from the Thread Options button).
12-31-2007 04:05 PM - edited 12-31-2007 04:05 PM
01-01-2009 04:10 AM
Cebaily shows an how-to for distributing wires evenly (can be used vertical and horizontal):
Ton
01-06-2009 08:01 PM - edited 01-06-2009 08:07 PM
Since I spent the better part of 2 days trying to determine the best way to do this to find out LabVIEW had it, I figured I should let others know in case they didn't know either and ever had use for it. A customer wanted Vista-style buttons in a project, and I was struggling with the best way to handle the highlight. Since Booleans don't support dynamic image changing, I was looking at ring controls, pictures, and was working on an X-Control when I thought to look at the System Boolean, as I knew it had a highlight when the mouse was over the button.
The System Boolean has 6 images instead of 4. The last two images are the highlight images. The 5th is the False highlight, the 6th the True highlight. The System Boolean doesn't highlight the True case, but I have verified if I change this image it will. LabVIEW will allow you to modify the System Boolean to have custom images.
Note that this functionality appears to have been added in LabVIEW 8.x. Even though the system Boolean has 6 images in LabVIEW 7.1, it doesn't appear to highlight.
The attached ctl will show the highlight. The VI with the control either has to be running or in run mode for the highlighting to show up. My example also does not highlight the True state, just the False.