How do I get access to the full image data in TwinCAT?

135 Views Asked by At

I am trying to find a method to access a full frame of image data in TwinCAT. Looking at:

https://infosys.beckhoff.com/english.php?content=../content/1033/tf7xxx_tc3_vision/6997345803.html&id=

It seems that I am able to access only one row at a time, and that is a waste of time, in this case. My purpose is to access the image data from a continuously running camera and store that data on disk one full frame at a time.

Any suggestions are welcome - thank you!

BR, Rainer

1

There are 1 best solutions below

0
Rainer Bärs On

Problem solved!

Use:

F_VN_ExportImageSize()

to get the required buffer size (in bytes) to store the image data.

And then

F_VN_ExportImage()

to export the image data into that buffer (e.g. an array).