LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Empty picture constant?

HI,
I have a for loop that uses several subVI's each of which takes a picture as an input. My question is what is better (in terms of making my program more efficient): to wire one empty picture constant on the outside of the for loop and have the wire split off into separate paths through the for loop OR just wire single picture constants throughout the for loop, anywhere that I need them? Give me pros/cons of each if one method is not better than another,
Thanks
0 Kudos
Message 1 of 3
(3,146 Views)
,

In order to answer this, I need to know what type of picture you are referring to. Is this an IMAQ Picture, or just an image picture? I can help you if it is an IMAQ Picture, but someone else may have to field it if it is not.

For IMAQ, a picture is just a cluster that is a pointer to a block of memory created to hold the image, and the label of that pointer. Therefore, you would have to have seperate 'constants' for each image.

I am not sure what the useage is for the other picture type. I would have to imagine that as the other doesn't seem to me to be a reference/pointer, that you can just use a single constant outside your loop. However; I would get clarification on this from NI or someone well versed in picture useage to be sure.

Good lu
ck, and be sure to post your results.
0 Kudos
Message 2 of 3
(3,146 Views)
Yeah I was referring to just the regular picture control/constant that you get from the functions pallette. I am not sure what the IMAQ picture is? I think the constant outside the loop is better but that's based on guessing and no particlar knowledge whatsoever so I was hoping to get clarification.
0 Kudos
Message 3 of 3
(3,146 Views)