LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where to store data (queued message handler)

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

0 Kudos
Message 1 of 4
(2,653 Views)

@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


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(2,633 Views)

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?

 

 

0 Kudos
Message 3 of 4
(2,625 Views)

@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.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
Message 4 of 4
(2,602 Views)