11-08-2014 03:43 AM
Hello,
i'm developing an image processing application. As a template i'm using the 'queued message handler'. In my app I need to store some images, arrays, and so on in RAM. Now the question is if i should store that data in the message loop's shift register (in a cluster) or somewhere else.
At the moment i have hidden front panel indicators where i store all my data. This isn't good practise, is it?
thanks alot
MN
11-08-2014 04:20 AM
@nollMarvin wrote:
Hello,
i'm developing an image processing application. As a template i'm using the 'queued message handler'. In my app I need to store some images, arrays, and so on in RAM. Now the question is if i should store that data in the message loop's shift register (in a cluster) or somewhere else.
At the moment i have hidden front panel indicators where i store all my data. This isn't good practise, is it?
thanks alot
MN
No that is not good practice.
A Shift register is a much better place to store data in memory it does that without creating copies the OS must interperate for display. (Yeah the displaying of data to a user is a different concept than having data in memory) Ben's famous Action Engine Nugget is always a good read. http://forums.ni.com/t5/LabVIEW/Community-Nugget-4-08-2007-Action-Engines/m-p/503801
And a basic concept to LabVIEW that attending a training session (or asking questions on these forums) will help you master
11-08-2014 04:54 AM
Thanks for your reply.
Lets say i have about 5 images, which i have to access(read and write) from several locations in my application. If i use a functional global (or action engine) then i would use a FG which stores an array of images, right?
Furthermore i have several arrays which contain measurement data. Should i use one FG which stores a cluster containing all of them?
11-08-2014 08:34 AM - edited 11-08-2014 08:35 AM
@nollMarvin wrote:
Thanks for your reply.
Lets say i have about 5 images, which i have to access(read and write) from several locations in my application. If i use a functional global (or action engine) then i would use a FG which stores an array of images, right?
Furthermore i have several arrays which contain measurement data. Should i use one FG which stores a cluster containing all of them?
Clusters are a little easier to work with than arrays since you can bundle/unbundle elements by name and not have to keep track of array indexes. And yes, you can put your five images and your arrays into one cluster and FG. No need to get any more complicated than that.