LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ MEMORY LOCATION CALLING

Hi 

 

I have Imaq Create in a loop that creates different memory locations for a sequence of images. (about 10)

I want to call on each of these memory locations in a different. Is this possible just to call the memory locations name?

 

As i don't have seperate wires for each different  memory location.

 

thanks 

Simon

0 Kudos
Message 1 of 10
(3,383 Views)

Hi Simon,

 

Thanks for your post and I hope your well today.

 

Whenever you call this VI, you should give a unique name to the Image Name input, as this will allocate a new image buffer. Occasionally, the same Image Name is passed to the IMAQ Create.vi. If you call this VI multiple times with the same Image Name, whatever data was present inside the image buffer is deleted and replaced by a 'NULL' image. This does not create a new space in memory, it simply overwrites the image. In general, you should always use a unique name.

 

Then to create several place this in a for loop with an array image name input - and then you'll have the multiple references you require.

 

Hope this helps,

Message Edited by Hillman on 02-02-2009 03:01 PM
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 10
(3,378 Views)

Hi

 

Thanks for the reply.

My for loop does create the memory locations with different names. What I am wondering is how can I call up these memory location. Will just wiring a string to the image imput of a different Vi call this location?

 

Simon

0 Kudos
Message 3 of 10
(3,374 Views)

Hi Simon,

 

Thanks for the reply.

 

How would you / what VI would be using to call this image?

 

Normally with a sequence you'd use the  IMAQ Sequence VI which just requires the reference. I am refer to some code in the NI Example Finder titled Sequence and Save to AVI. 

 

 I would be guessing by the reference is what LabVIEW would use to get to the memory locations rather than the name. The name is more for the user when looking at the file in  the file structure...

 

May I ask a bit more about what your trying to acheive?

 

Let me know what you think, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 4 of 10
(3,369 Views)

Hi

 

What I am trying to do is grab an unspecified number of images from a camera and after taken the images convert them to arrays. 

 

Thanks 

Simon

0 Kudos
Message 5 of 10
(3,366 Views)

Hi Simon,

 

Thanks for the update.


As I tried to explain before the Image Reference is used for downstream processing of the image. You need to keep the reference to all the images you create. Then by using something like IMAQ ImageToArray VI you can get LabVIEW arrays from your images.

 

Does this helps at all?

 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 6 of 10
(3,359 Views)

Sorry not really. I am probably being silly here.

 

What i am doing is basically.

 

For i to 10


{

Imaq Create (image name= i) wire to grab sequence
}

 

then I want to do. 

{

 For i to 10

IMAQ Image to Array (image name i)

place into array at index i

 }

 

Can i use the image name string as the image input for IMAQ Image to array?

 

0 Kudos
Message 7 of 10
(3,357 Views)

Hi Simon,

 

So why wouldn't this work?

 

 

 

Kind Regards,
James.

Message Edited by Hillman on 02-02-2009 04:53 PM
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 8 of 10
(3,337 Views)
Hi thanks for that all sorted
0 Kudos
Message 9 of 10
(3,331 Views)

Hi Simon,

 

Thanks for your post and please let me know if you have any other issues.

 

Happy to help! Best wishes. 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 10 of 10
(3,324 Views)